clients

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceCompare added in v1.2.0

type NamespaceCompare struct {
	Name                           string             `json:"name"`
	Description                    *string            `json:"description,omitempty"`
	OwnerEmail                     *string            `json:"ownerEmail,omitempty"`
	WorkflowExecutionRetentionDays int                `json:"workflowExecutionRetentionDays,omitempty"`
	Data                           *map[string]string `json:"data,omitempty"`
	HistoryArchivalState           string             `json:"historyArchivalState,omitempty"`
	HistoryArchivalUri             *string            `json:"historyArchivalUri,omitempty"`
	VisibilityArchivalState        string             `json:"visibilityArchivalState,omitempty"`
	VisibilityArchivalUri          *string            `json:"visibilityArchivalUri,omitempty"`
}

type NamespaceService

type NamespaceService interface {
	DescribeNamespaceByName(ctx context.Context, name string) (*core.TemporalNamespaceObservation, error)

	CreateNamespace(ctx context.Context, namespace *core.TemporalNamespaceParameters) error
	UpdateNamespaceByName(ctx context.Context, namespace *core.TemporalNamespaceParameters) error
	DeleteNamespaceByName(ctx context.Context, name string) (*string, error)

	MapToNamespaceCompare(namespace interface{}) (*NamespaceCompare, error)
}

func NewNamespaceService added in v1.2.0

func NewNamespaceService(configData []byte) (NamespaceService, error)

type SearchAttributeCompare added in v1.2.0

type SearchAttributeCompare struct {
	Name                  string  `json:"name"`
	Type                  string  `json:"type"`
	TemporalNamespaceName *string `json:"temporalNamespaceName,omitempty"`
}

type SearchAttributeService added in v1.2.0

type SearchAttributeService interface {
	DescribeSearchAttributeByName(ctx context.Context, namespace string, name string) (*core.SearchAttributeObservation, error)

	CreateSearchAttribute(ctx context.Context, searchAttribute *core.SearchAttributeParameters) error
	DeleteSearchAttributeByName(ctx context.Context, namespace string, name string) error

	MapToSearchAttributeCompare(searchAttribute interface{}) (*SearchAttributeCompare, error)
}

func NewSearchAttributeService added in v1.2.0

func NewSearchAttributeService(configData []byte) (SearchAttributeService, error)

type TemporalServiceConfig

type TemporalServiceConfig struct {
	HostPort string `json:"hostPort"`
}

type TemporalServiceImpl

type TemporalServiceImpl struct {
	// contains filtered or unexported fields
}

func NewTemporalService

func NewTemporalService(configData []byte) (*TemporalServiceImpl, error)

func (*TemporalServiceImpl) CreateNamespace

func (s *TemporalServiceImpl) CreateNamespace(ctx context.Context, namespace *core.TemporalNamespaceParameters) error

func (*TemporalServiceImpl) CreateSearchAttribute added in v1.2.0

func (s *TemporalServiceImpl) CreateSearchAttribute(ctx context.Context, searchAttribute *core.SearchAttributeParameters) error

func (*TemporalServiceImpl) DeleteAllNamespaces

func (s *TemporalServiceImpl) DeleteAllNamespaces(ctx context.Context) ([]*string, error)

func (*TemporalServiceImpl) DeleteNamespaceByName

func (s *TemporalServiceImpl) DeleteNamespaceByName(ctx context.Context, name string) (*string, error)

func (*TemporalServiceImpl) DeleteSearchAttributeByName added in v1.2.0

func (s *TemporalServiceImpl) DeleteSearchAttributeByName(ctx context.Context, namespace string, name string) error

func (*TemporalServiceImpl) DescribeNamespaceByName

func (s *TemporalServiceImpl) DescribeNamespaceByName(ctx context.Context, name string) (*core.TemporalNamespaceObservation, error)

func (*TemporalServiceImpl) DescribeSearchAttributeByName added in v1.2.0

func (s *TemporalServiceImpl) DescribeSearchAttributeByName(ctx context.Context, namespace string, name string) (*core.SearchAttributeObservation, error)

func (*TemporalServiceImpl) ListAllNamespaces

func (*TemporalServiceImpl) ListSearchAttributesByNamespace added in v1.2.0

func (s *TemporalServiceImpl) ListSearchAttributesByNamespace(ctx context.Context, namespace string) ([]*core.SearchAttributeObservation, error)

func (*TemporalServiceImpl) MapToNamespaceCompare added in v1.2.0

func (s *TemporalServiceImpl) MapToNamespaceCompare(namespace interface{}) (*NamespaceCompare, error)

func (*TemporalServiceImpl) MapToSearchAttributeCompare added in v1.2.0

func (s *TemporalServiceImpl) MapToSearchAttributeCompare(searchAttribute interface{}) (*SearchAttributeCompare, error)

func (*TemporalServiceImpl) UpdateNamespaceByName

func (s *TemporalServiceImpl) UpdateNamespaceByName(ctx context.Context, namespace *core.TemporalNamespaceParameters) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL