@@ -39,8 +39,8 @@ const (
39
39
// DefaultHostPort is the host:port which is used if not passed with options.
40
40
DefaultHostPort = internal .LocalHostPort
41
41
42
- // DefaultDomainName is the domain name which is used if not passed with options.
43
- DefaultDomainName = internal .DefaultDomainName
42
+ // DefaultNamespace is the namespace name which is used if not passed with options.
43
+ DefaultNamespace = internal .DefaultNamespace
44
44
45
45
// QueryTypeStackTrace is the build in query type for Client.QueryWorkflow() call. Use this query type to get the call
46
46
// stack of the workflow. The result will be a string encoded in the encoded.Value.
92
92
// or
93
93
// ExecuteWorkflow(ctx, options, workflowExecuteFn, arg1, arg2, arg3)
94
94
// The errors it can return:
95
- // - EntityNotExistsError, if domain does not exists
95
+ // - EntityNotExistsError, if namespace does not exists
96
96
// - BadRequestError
97
97
// - InternalServiceError
98
98
//
@@ -144,7 +144,7 @@ type (
144
144
// Note: options.WorkflowIDReusePolicy is default to WorkflowIDReusePolicyAllowDuplicate in this API;
145
145
// while in StartWorkflow/ExecuteWorkflow APIs it is default to WorkflowIdReusePolicyAllowDuplicateFailedOnly.
146
146
// The errors it can return:
147
- // - EntityNotExistsError, if domain does not exist
147
+ // - EntityNotExistsError, if namespace does not exist
148
148
// - BadRequestError
149
149
// - InternalServiceError
150
150
SignalWithStartWorkflow (ctx context.Context , workflowID string , signalName string , signalArg interface {},
@@ -214,12 +214,12 @@ type (
214
214
// completed event will be reported; if err is CanceledError, activity task cancelled event will be reported; otherwise,
215
215
// activity task failed event will be reported.
216
216
// An activity implementation should use activityID provided in ActivityOption to use for completion.
217
- // domain name, workflowID, activityID are required, runID is optional.
217
+ // namespace name, workflowID, activityID are required, runID is optional.
218
218
// The errors it can return:
219
219
// - ErrorWithDetails
220
220
// - TimeoutError
221
221
// - CanceledError
222
- CompleteActivityByID (ctx context.Context , domain , workflowID , runID , activityID string , result interface {}, err error ) error
222
+ CompleteActivityByID (ctx context.Context , namespace , workflowID , runID , activityID string , result interface {}, err error ) error
223
223
224
224
// RecordActivityHeartbeat records heartbeat for an activity.
225
225
// taskToken - is the value of the binary "TaskToken" field of the "ActivityInfo" struct retrieved inside the activity.
@@ -234,7 +234,7 @@ type (
234
234
// The errors it can return:
235
235
// - EntityNotExistsError
236
236
// - InternalServiceError
237
- RecordActivityHeartbeatByID (ctx context.Context , domain , workflowID , runID , activityID string , details ... interface {}) error
237
+ RecordActivityHeartbeatByID (ctx context.Context , namespace , workflowID , runID , activityID string , details ... interface {}) error
238
238
239
239
// ListClosedWorkflow gets closed workflow executions based on request filters.
240
240
// Retrieved workflow executions are sorted by start time in descending order.
@@ -270,9 +270,9 @@ type (
270
270
ListWorkflow (ctx context.Context , request * workflowservice.ListWorkflowExecutionsRequest ) (* workflowservice.ListWorkflowExecutionsResponse , error )
271
271
272
272
// ListArchivedWorkflow gets archived workflow executions based on query. This API will return BadRequest if Temporal
273
- // cluster or target domain is not configured for visibility archival or read is not enabled. The query is basically the SQL WHERE clause.
273
+ // cluster or target namespace is not configured for visibility archival or read is not enabled. The query is basically the SQL WHERE clause.
274
274
// However, different visibility archivers have different limitations on the query. Please check the documentation of the visibility archiver used
275
- // by your domain to see what kind of queries are accept and whether retrieved workflow executions are ordered or not.
275
+ // by your namespace to see what kind of queries are accept and whether retrieved workflow executions are ordered or not.
276
276
// The errors it can return:
277
277
// - BadRequestError
278
278
// - InternalServiceError
@@ -352,32 +352,32 @@ type (
352
352
CloseConnection () error
353
353
}
354
354
355
- // DomainClient is the client for managing operations on the domain .
356
- // CLI, tools, ... can use this layer to manager operations on domain .
357
- DomainClient interface {
358
- // Register a domain with temporal server
355
+ // NamespaceClient is the client for managing operations on the namespace .
356
+ // CLI, tools, ... can use this layer to manager operations on namespace .
357
+ NamespaceClient interface {
358
+ // Register a namespace with temporal server
359
359
// The errors it can throw:
360
- // - DomainAlreadyExistsError
360
+ // - NamespaceAlreadyExistsError
361
361
// - BadRequestError
362
362
// - InternalServiceError
363
- Register (ctx context.Context , request * workflowservice.RegisterDomainRequest ) error
363
+ Register (ctx context.Context , request * workflowservice.RegisterNamespaceRequest ) error
364
364
365
- // Describe a domain . The domain has 3 part of information
366
- // DomainInfo - Which has Name, Status, Description, Owner Email
367
- // DomainConfiguration - Configuration like Workflow Execution Retention Period In Days, Whether to emit metrics.
365
+ // Describe a namespace . The namespace has 3 part of information
366
+ // NamespaceInfo - Which has Name, Status, Description, Owner Email
367
+ // NamespaceConfiguration - Configuration like Workflow Execution Retention Period In Days, Whether to emit metrics.
368
368
// ReplicationConfiguration - replication config like clusters and active cluster name
369
369
// The errors it can throw:
370
370
// - EntityNotExistsError
371
371
// - BadRequestError
372
372
// - InternalServiceError
373
- Describe (ctx context.Context , name string ) (* workflowservice.DescribeDomainResponse , error )
373
+ Describe (ctx context.Context , name string ) (* workflowservice.DescribeNamespaceResponse , error )
374
374
375
- // Update a domain .
375
+ // Update a namespace .
376
376
// The errors it can throw:
377
377
// - EntityNotExistsError
378
378
// - BadRequestError
379
379
// - InternalServiceError
380
- Update (ctx context.Context , request * workflowservice.UpdateDomainRequest ) error
380
+ Update (ctx context.Context , request * workflowservice.UpdateNamespaceRequest ) error
381
381
382
382
// CloseConnection closes underlying gRPC connection.
383
383
CloseConnection () error
@@ -412,16 +412,16 @@ func NewClient(options Options) (Client, error) {
412
412
return internal .NewClient (options )
413
413
}
414
414
415
- // NewDomainClient creates an instance of a domain client, to manage lifecycle of domains .
416
- func NewDomainClient (options Options ) (DomainClient , error ) {
417
- return internal .NewDomainClient (options )
415
+ // NewNamespaceClient creates an instance of a namespace client, to manage lifecycle of namespaces .
416
+ func NewNamespaceClient (options Options ) (NamespaceClient , error ) {
417
+ return internal .NewNamespaceClient (options )
418
418
}
419
419
420
420
// make sure if new methods are added to internal.Client they are also added to public Client.
421
421
var _ Client = internal .Client (nil )
422
422
var _ internal.Client = Client (nil )
423
- var _ DomainClient = internal .DomainClient (nil )
424
- var _ internal.DomainClient = DomainClient (nil )
423
+ var _ NamespaceClient = internal .NamespaceClient (nil )
424
+ var _ internal.NamespaceClient = NamespaceClient (nil )
425
425
426
426
// NewValue creates a new encoded.Value which can be used to decode binary data returned by Temporal. For example:
427
427
// User had Activity.RecordHeartbeat(ctx, "my-heartbeat") and then got response from calling Client.DescribeWorkflowExecution.
0 commit comments