client

package
v0.0.10-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationHeader       = "Authorization"
	AuthorizationHeaderPrefix = "Bearer"
)
View Source
const (
	TemporalCloudAPIVersionHeader = "temporal-cloud-api-version"
	TemporalCloudAPIVersion       = "2023-10-01-00"
)

Variables

This section is empty.

Functions

func AccountIDFromAdminRoleID

func AccountIDFromAdminRoleID(in string) string

func AwaitRequestStatus

func AwaitRequestStatus(ctx context.Context, c requestservice.RequestServiceClient, op *request.RequestStatus) error

func NewAPIKeyRPCCredential

func NewAPIKeyRPCCredential(apikey string, allowInsecure bool) credentials.PerRPCCredentials

Types

type Store

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

Store is a client for the Temporal Cloud API.

func NewConnectionWithAPIKey

func NewConnectionWithAPIKey(addrStr string, allowInsecure bool, apiKey string, opts ...grpc.DialOption) (*Store, error)

func (*Store) AccountServiceClient

func (c *Store) AccountServiceClient() accountservice.AccountServiceClient

func (*Store) CloudServiceClient

func (c *Store) CloudServiceClient() cloudservicev1.CloudServiceClient

func (*Store) GetCurrentAccountID

func (c *Store) GetCurrentAccountID(ctx context.Context) (string, error)

func (*Store) RequestServiceClient

func (c *Store) RequestServiceClient() requestservice.RequestServiceClient

Jump to

Keyboard shortcuts

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