temporalcloudcli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 69 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLoginRequired = errors.New("login required")
View Source
var Version = "0.0.0-DEV"

Version is the value put as the default command version. This is often replaced at build time via ldflags.

Functions

func ClearDeprecatedFieldsInterceptor

func ClearDeprecatedFieldsInterceptor(
	ctx context.Context,
	method string,
	req, reply any,
	cc *grpc.ClientConn,
	invoker grpc.UnaryInvoker,
	opts ...grpc.CallOption,
) error

clearDeprecatedFieldsInterceptor is a gRPC unary client interceptor that strips deprecated fields from every response. Any proto field whose name ends with "_deprecated" or that is marked with [deprecated = true] is cleared; nested messages, repeated message fields, and map fields with message values are visited recursively.

func CreateAuditLogSinkKinesis

func CreateAuditLogSinkKinesis(ctx context.Context, params CreateAuditLogSinkKinesisParams) error

func CreateAuditLogSinkPubSub

func CreateAuditLogSinkPubSub(ctx context.Context, params CreateAuditLogSinkPubSubParams) error

func CreateAzureBlobExportSink added in v0.0.4

func CreateAzureBlobExportSink(ctx context.Context, params CreateAzureBlobExportSinkParams) error

func CreateGCSExportSink

func CreateGCSExportSink(ctx context.Context, params CreateGCSExportSinkParams) error

func CreateNamespace

func CreateNamespace(ctx context.Context, params CreateNamespaceParams) error

CreateNamespace builds the NamespaceSpec from the given params, prompts for confirmation, calls the API, and dispatches the result via HandleResult.

func CreatePrivateConnectivityRule

func CreatePrivateConnectivityRule(ctx context.Context, params CreatePrivateConnectivityRuleParams) error

CreatePrivateConnectivityRule creates a new private VPC connectivity rule.

func CreatePublicConnectivityRule

func CreatePublicConnectivityRule(ctx context.Context, params CreatePublicConnectivityRuleParams) error

CreatePublicConnectivityRule creates a new public internet connectivity rule.

func CreateS3ExportSink

func CreateS3ExportSink(ctx context.Context, params CreateS3ExportSinkParams) error

func DeleteAuditLogSink

func DeleteAuditLogSink(ctx context.Context, params DeleteAuditLogSinkParams) error

func DeleteConnectivityRule

func DeleteConnectivityRule(ctx context.Context, params DeleteConnectivityRuleParams) error

DeleteConnectivityRule deletes a connectivity rule by ID. Always fetches the rule first to show a diff before deletion.

func DeleteExportSink

func DeleteExportSink(ctx context.Context, params DeleteExportSinkParams) error

func DisableAuditLogSink

func DisableAuditLogSink(ctx context.Context, params DisableAuditLogSinkParams) error

func DisableExportSink

func DisableExportSink(ctx context.Context, params DisableExportSinkParams) error

func EnableAuditLogSink

func EnableAuditLogSink(ctx context.Context, params EnableAuditLogSinkParams) error

func EnableExportSink

func EnableExportSink(ctx context.Context, params EnableExportSinkParams) error

func Execute

func Execute(ctx context.Context, options CommandOptions)

Execute runs the Temporal CLI with the given context and options. This intentionally does not return an error but rather invokes Fail on the options.

func GetAuditLogSink

func GetAuditLogSink(ctx context.Context, params GetAuditLogSinkParams) error

func GetAuditLogs

func GetAuditLogs(ctx context.Context, params GetAuditLogsParams) error

func GetConnectivityRule

func GetConnectivityRule(ctx context.Context, params GetConnectivityRuleParams) error

GetConnectivityRule retrieves details of a specific connectivity rule by ID.

func GetExportSink

func GetExportSink(ctx context.Context, params GetExportSinkParams) error

func GetRetention

func GetRetention(ctx context.Context, params GetRetentionParams) error

func GetToken

func GetToken(ctx context.Context, config *oauth2.Config, token *oauth2.Token) (*oauth2.Token, bool, error)

func GraftErrors added in v0.0.3

func GraftErrors(err error, toWrap error) error

GraftErrors encapsulates err and wraps toWrap, as if err had wrapped toWrap originally. This is primarily useful when an external library does not wrap errors itself, but the original error is available via other means

func ListAuditLogSinks

func ListAuditLogSinks(ctx context.Context, params ListAuditLogSinksParams) error

func ListConnectivityRules

func ListConnectivityRules(ctx context.Context, params ListConnectivityRulesParams) error

ListConnectivityRules retrieves connectivity rules, optionally filtered by namespace.

func ListExportSinks

func ListExportSinks(ctx context.Context, params ListExportSinksParams) error

func Login

func Login(ctx context.Context, config *oauth2.Config, options ...oauth2.AuthCodeOption) (*oauth2.Token, error)

func ParseRoleARN

func ParseRoleARN(roleARN string) (roleName, accountID string, err error)

ParseRoleARN extracts the IAM role name and AWS account ID from an IAM role ARN of the form "arn:aws:iam::<account>:role/<name>".

func ParseServiceAccountEmail

func ParseServiceAccountEmail(email string) (saID, projectID string, err error)

ParseServiceAccountEmail extracts the service account ID (local part) and GCP project ID from an email of the form "<sa-id>@<project-id>.iam.gserviceaccount.com".

func SetRetention

func SetRetention(ctx context.Context, params SetRetentionParams) error

func TestCommand

func TestCommand(t *testing.T, command CommandIfc, opts TestCommandOptions)

func UnmarshalProtoJSONWithOptions

func UnmarshalProtoJSONWithOptions(b []byte, m proto.Message, jsonShorthandPayloads bool) error

func UpdateAuditLogSinkKinesis

func UpdateAuditLogSinkKinesis(ctx context.Context, params UpdateAuditLogSinkKinesisParams) error

func UpdateAuditLogSinkPubSub

func UpdateAuditLogSinkPubSub(ctx context.Context, params UpdateAuditLogSinkPubSubParams) error

func UpdateAzureBlobExportSink added in v0.0.4

func UpdateAzureBlobExportSink(ctx context.Context, params UpdateAzureBlobExportSinkParams) error

func UpdateGCSExportSink

func UpdateGCSExportSink(ctx context.Context, params UpdateGCSExportSinkParams) error

func UpdateS3ExportSink

func UpdateS3ExportSink(ctx context.Context, params UpdateS3ExportSinkParams) error

func ValidateAuditLogSinkKinesis

func ValidateAuditLogSinkKinesis(ctx context.Context, params ValidateAuditLogSinkKinesisParams) error

func ValidateAuditLogSinkPubSub

func ValidateAuditLogSinkPubSub(ctx context.Context, params ValidateAuditLogSinkPubSubParams) error

func ValidateAzureBlobExportSink added in v0.0.4

func ValidateAzureBlobExportSink(ctx context.Context, params ValidateAzureBlobExportSinkParams) error

func ValidateGCSExportSink

func ValidateGCSExportSink(ctx context.Context, params ValidateGCSExportSinkParams) error

func ValidateS3ExportSink

func ValidateS3ExportSink(ctx context.Context, params ValidateS3ExportSinkParams) error

func VersionString

func VersionString() string

Types

type AsyncOperationHandler

type AsyncOperationHandler interface {
	// HandleOperation dispatches a successfully started operation: prints immediately (async)
	// or polls until completion (sync).
	HandleOperation(op *operation.AsyncOperation, id string) error
	// HandleCreateErr handles an error from a create call: swallows AlreadyExists
	// errors when idempotent, propagates all others.
	HandleCreateErr(err error) error

	HandleUpdateErr(err error) error

	HandleDeleteErr(err error) error
}

AsyncOperationHandler handles the async operation lifecycle.

func NewOperationHandler

func NewOperationHandler(cctx *CommandContext, asyncOpts AsyncOperationOptions, clientOpts ClientOptions) AsyncOperationHandler

type AsyncOperationOptions

type AsyncOperationOptions struct {
	Idempotent       bool
	AsyncOperationId string
	Async            bool
	PollInterval     cliext.FlagDuration
	FlagSet          *pflag.FlagSet
}

func (*AsyncOperationOptions) BuildFlags

func (v *AsyncOperationOptions) BuildFlags(f *pflag.FlagSet)

type AsyncOperationPoller

type AsyncOperationPoller struct {
	CloudClient cloudservice.CloudServiceClient
}

func (*AsyncOperationPoller) PollAsyncOperation

func (p *AsyncOperationPoller) PollAsyncOperation(
	cctx *CommandContext,
	operationID string,
	id string,
) error

pollAsyncOperation polls an async operation until it reaches a terminal state. It prints status updates every second and returns the final AsyncOperation.

The cloudClient should be pre-built using cctx.BuildCloudClient().

AIDEV-NOTE: This function takes a pre-built cloudClient. Commands should build the client using cctx.BuildCloudClient() and pass it directly.

type AsyncOperationResponse

type AsyncOperationResponse interface {
	GetAsyncOperation() *operation.AsyncOperation
}

AsyncOperationResponse is implemented by gRPC responses that carry an async operation.

type CaCertificateOptions

type CaCertificateOptions struct {
	CaCertificate     string
	CaCertificateFile string
	FlagSet           *pflag.FlagSet
}

func (*CaCertificateOptions) BuildFlags

func (v *CaCertificateOptions) BuildFlags(f *pflag.FlagSet)

type CertificateFilterOptions

type CertificateFilterOptions struct {
	CertificateFilter     []string
	CertificateFilterFile string
	FlagSet               *pflag.FlagSet
}

func (*CertificateFilterOptions) BuildFlags

func (v *CertificateFilterOptions) BuildFlags(f *pflag.FlagSet)

type ClientOptions

type ClientOptions struct {
	ApiKey  string
	Server  string
	FlagSet *pflag.FlagSet
}

func (*ClientOptions) BuildFlags

func (v *ClientOptions) BuildFlags(f *pflag.FlagSet)

type CloudAccountAuditLogCommand

type CloudAccountAuditLogCommand struct {
	Parent  *CloudAccountCommand
	Command cobra.Command
}

func NewCloudAccountAuditLogCommand

func NewCloudAccountAuditLogCommand(cctx *CommandContext, parent *CloudAccountCommand) *CloudAccountAuditLogCommand

type CloudAccountAuditLogListCommand

type CloudAccountAuditLogListCommand struct {
	Parent  *CloudAccountAuditLogCommand
	Command cobra.Command
	ClientOptions
	PageSize  int
	PageToken string
	StartTime cliext.FlagTimestamp
	EndTime   cliext.FlagTimestamp
}

type CloudAccountAuditLogSinkCommand

type CloudAccountAuditLogSinkCommand struct {
	Parent  *CloudAccountAuditLogCommand
	Command cobra.Command
}

type CloudAccountAuditLogSinkGetCommand

type CloudAccountAuditLogSinkGetCommand struct {
	Parent  *CloudAccountAuditLogSinkCommand
	Command cobra.Command
	ClientOptions
	Name string
}

type CloudAccountAuditLogSinkKinesisCommand

type CloudAccountAuditLogSinkKinesisCommand struct {
	Parent  *CloudAccountAuditLogSinkCommand
	Command cobra.Command
}

type CloudAccountAuditLogSinkKinesisCreateCommand

type CloudAccountAuditLogSinkKinesisCreateCommand struct {
	Parent  *CloudAccountAuditLogSinkKinesisCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	Name           string
	RoleName       string
	DestinationUri string
	Region         string
}

type CloudAccountAuditLogSinkKinesisValidateCommand

type CloudAccountAuditLogSinkKinesisValidateCommand struct {
	Parent  *CloudAccountAuditLogSinkKinesisCommand
	Command cobra.Command
	ClientOptions
	RoleName       string
	DestinationUri string
	Region         string
}

type CloudAccountAuditLogSinkListCommand

type CloudAccountAuditLogSinkListCommand struct {
	Parent  *CloudAccountAuditLogSinkCommand
	Command cobra.Command
	ClientOptions
	PageSize  int
	PageToken string
}

type CloudAccountAuditLogSinkPubsubCommand

type CloudAccountAuditLogSinkPubsubCommand struct {
	Parent  *CloudAccountAuditLogSinkCommand
	Command cobra.Command
}

type CloudAccountAuditLogSinkPubsubCreateCommand

type CloudAccountAuditLogSinkPubsubCreateCommand struct {
	Parent  *CloudAccountAuditLogSinkPubsubCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	Name                string
	ServiceAccountEmail string
	TopicName           string
}

type CloudAccountAuditLogSinkPubsubUpdateCommand

type CloudAccountAuditLogSinkPubsubUpdateCommand struct {
	Parent  *CloudAccountAuditLogSinkPubsubCommand
	Command cobra.Command
	ClientOptions
	ResourceVersionOptions
	AsyncOperationOptions
	Name                string
	ServiceAccountEmail string
	TopicName           string
}

type CloudAccountAuditLogSinkPubsubValidateCommand

type CloudAccountAuditLogSinkPubsubValidateCommand struct {
	Parent  *CloudAccountAuditLogSinkPubsubCommand
	Command cobra.Command
	ClientOptions
	ServiceAccountEmail string
	TopicName           string
}

type CloudAccountCommand

type CloudAccountCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudAccountCommand

func NewCloudAccountCommand(cctx *CommandContext, parent *CloudCommand) *CloudAccountCommand

type CloudAccountMetricsCertCaCommand

type CloudAccountMetricsCertCaCommand struct {
	Parent  *CloudAccountMetricsCommand
	Command cobra.Command
}

type CloudAccountMetricsCertCaListCommand

type CloudAccountMetricsCertCaListCommand struct {
	Parent  *CloudAccountMetricsCertCaCommand
	Command cobra.Command
	ClientOptions
}

type CloudAccountMetricsCommand

type CloudAccountMetricsCommand struct {
	Parent  *CloudAccountCommand
	Command cobra.Command
}

func NewCloudAccountMetricsCommand

func NewCloudAccountMetricsCommand(cctx *CommandContext, parent *CloudAccountCommand) *CloudAccountMetricsCommand

type CloudApikeyCommand

type CloudApikeyCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudApikeyCommand

func NewCloudApikeyCommand(cctx *CommandContext, parent *CloudCommand) *CloudApikeyCommand

type CloudApikeyCreateForMeCommand

type CloudApikeyCreateForMeCommand struct {
	Parent  *CloudApikeyCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	DisplayName    string
	Description    string
	ExpiryTime     cliext.FlagTimestamp
	ExpiryDuration cliext.FlagDuration
}

func NewCloudApikeyCreateForMeCommand

func NewCloudApikeyCreateForMeCommand(cctx *CommandContext, parent *CloudApikeyCommand) *CloudApikeyCreateForMeCommand

type CloudApikeyCreateForServiceAccountCommand

type CloudApikeyCreateForServiceAccountCommand struct {
	Parent  *CloudApikeyCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ServiceAccountId string
	DisplayName      string
	Description      string
	ExpiryTime       cliext.FlagTimestamp
	ExpiryDuration   cliext.FlagDuration
}

type CloudApikeyDeleteCommand

type CloudApikeyDeleteCommand struct {
	Parent  *CloudApikeyCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	KeyId string
}

func NewCloudApikeyDeleteCommand

func NewCloudApikeyDeleteCommand(cctx *CommandContext, parent *CloudApikeyCommand) *CloudApikeyDeleteCommand

type CloudApikeyDisableCommand

type CloudApikeyDisableCommand struct {
	Parent  *CloudApikeyCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	KeyId string
}

func NewCloudApikeyDisableCommand

func NewCloudApikeyDisableCommand(cctx *CommandContext, parent *CloudApikeyCommand) *CloudApikeyDisableCommand

type CloudApikeyEnableCommand

type CloudApikeyEnableCommand struct {
	Parent  *CloudApikeyCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	KeyId string
}

func NewCloudApikeyEnableCommand

func NewCloudApikeyEnableCommand(cctx *CommandContext, parent *CloudApikeyCommand) *CloudApikeyEnableCommand

type CloudApikeyGetCommand

type CloudApikeyGetCommand struct {
	Parent  *CloudApikeyCommand
	Command cobra.Command
	ClientOptions
	KeyId string
}

func NewCloudApikeyGetCommand

func NewCloudApikeyGetCommand(cctx *CommandContext, parent *CloudApikeyCommand) *CloudApikeyGetCommand

type CloudApikeyListCommand

type CloudApikeyListCommand struct {
	Parent  *CloudApikeyCommand
	Command cobra.Command
	ClientOptions
	UserId           string
	UserEmail        string
	ServiceAccountId string
	PageSize         int
	PageToken        string
}

func NewCloudApikeyListCommand

func NewCloudApikeyListCommand(cctx *CommandContext, parent *CloudApikeyCommand) *CloudApikeyListCommand

type CloudApikeyUpdateCommand

type CloudApikeyUpdateCommand struct {
	Parent  *CloudApikeyCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	KeyId       string
	DisplayName string
	Description string
	Disabled    bool
}

func NewCloudApikeyUpdateCommand

func NewCloudApikeyUpdateCommand(cctx *CommandContext, parent *CloudApikeyCommand) *CloudApikeyUpdateCommand

type CloudAsyncOperationAwaitCommand

type CloudAsyncOperationAwaitCommand struct {
	Parent  *CloudAsyncOperationCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationId string
	PollInterval     cliext.FlagDuration
}

type CloudAsyncOperationCommand

type CloudAsyncOperationCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudAsyncOperationCommand

func NewCloudAsyncOperationCommand(cctx *CommandContext, parent *CloudCommand) *CloudAsyncOperationCommand

type CloudAsyncOperationGetCommand

type CloudAsyncOperationGetCommand struct {
	Parent  *CloudAsyncOperationCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationId string
}

type CloudCommand

type CloudCommand struct {
	Command cobra.Command
	ClientOptions
	cliext.CommonOptions
	ConfigDir    string
	DisablePopUp bool
	AutoConfirm  bool
}

func NewCloudCommand

func NewCloudCommand(cctx *CommandContext) *CloudCommand

type CloudConnectivityCommand

type CloudConnectivityCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudConnectivityCommand

func NewCloudConnectivityCommand(cctx *CommandContext, parent *CloudCommand) *CloudConnectivityCommand

type CloudConnectivityGetCommand

type CloudConnectivityGetCommand struct {
	Parent  *CloudConnectivityCommand
	Command cobra.Command
	ClientOptions
	Id string
}

type CloudConnectivityListCommand

type CloudConnectivityListCommand struct {
	Parent  *CloudConnectivityCommand
	Command cobra.Command
	ClientOptions
	ProjectId string
	Namespace string
	PageSize  int
	PageToken string
}

type CloudConnectivityPrivateCommand

type CloudConnectivityPrivateCommand struct {
	Parent  *CloudConnectivityCommand
	Command cobra.Command
}

type CloudConnectivityPrivateCreateCommand

type CloudConnectivityPrivateCreateCommand struct {
	Parent  *CloudConnectivityPrivateCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ProjectId         string
	ConnectionId      string
	Region            string
	GcpProjectId      string
	AzurePeResourceId string
}

type CloudConnectivityPublicCommand

type CloudConnectivityPublicCommand struct {
	Parent  *CloudConnectivityCommand
	Command cobra.Command
}

type CloudConnectivityPublicCreateCommand

type CloudConnectivityPublicCreateCommand struct {
	Parent  *CloudConnectivityPublicCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ProjectId       string
	EnableStableIps bool
}

type CloudCustomRoleCommand

type CloudCustomRoleCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudCustomRoleCommand

func NewCloudCustomRoleCommand(cctx *CommandContext, parent *CloudCommand) *CloudCustomRoleCommand

type CloudCustomRoleCreateCommand

type CloudCustomRoleCreateCommand struct {
	Parent  *CloudCustomRoleCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	Spec string
}

func NewCloudCustomRoleCreateCommand

func NewCloudCustomRoleCreateCommand(cctx *CommandContext, parent *CloudCustomRoleCommand) *CloudCustomRoleCreateCommand

type CloudCustomRoleGetCommand

type CloudCustomRoleGetCommand struct {
	Parent  *CloudCustomRoleCommand
	Command cobra.Command
	ClientOptions
	RoleIdOptions
}

func NewCloudCustomRoleGetCommand

func NewCloudCustomRoleGetCommand(cctx *CommandContext, parent *CloudCustomRoleCommand) *CloudCustomRoleGetCommand

type CloudCustomRoleListCommand

type CloudCustomRoleListCommand struct {
	Parent  *CloudCustomRoleCommand
	Command cobra.Command
	ClientOptions
	PageSize  int
	PageToken string
}

func NewCloudCustomRoleListCommand

func NewCloudCustomRoleListCommand(cctx *CommandContext, parent *CloudCustomRoleCommand) *CloudCustomRoleListCommand

type CloudLoginCommand

type CloudLoginCommand struct {
	Parent      *CloudCommand
	Command     cobra.Command
	Domain      string
	Audience    string
	ClientId    string
	RedirectUrl string
	Reset       bool
}

func NewCloudLoginCommand

func NewCloudLoginCommand(cctx *CommandContext, parent *CloudCommand) *CloudLoginCommand

type CloudLogoutCommand

type CloudLogoutCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
	Domain  string
}

func NewCloudLogoutCommand

func NewCloudLogoutCommand(cctx *CommandContext, parent *CloudCommand) *CloudLogoutCommand

type CloudNamespaceApiKeyCommand added in v0.0.2

type CloudNamespaceApiKeyCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceApiKeyCommand added in v0.0.2

func NewCloudNamespaceApiKeyCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceApiKeyCommand

type CloudNamespaceApiKeyDisableCommand added in v0.0.2

type CloudNamespaceApiKeyDisableCommand struct {
	Parent  *CloudNamespaceApiKeyCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	AsyncOperationOptions
	ResourceVersionOptions
}

func NewCloudNamespaceApiKeyDisableCommand added in v0.0.2

func NewCloudNamespaceApiKeyDisableCommand(cctx *CommandContext, parent *CloudNamespaceApiKeyCommand) *CloudNamespaceApiKeyDisableCommand

type CloudNamespaceApiKeyEnableCommand added in v0.0.2

type CloudNamespaceApiKeyEnableCommand struct {
	Parent  *CloudNamespaceApiKeyCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	AsyncOperationOptions
	ResourceVersionOptions
}

func NewCloudNamespaceApiKeyEnableCommand added in v0.0.2

func NewCloudNamespaceApiKeyEnableCommand(cctx *CommandContext, parent *CloudNamespaceApiKeyCommand) *CloudNamespaceApiKeyEnableCommand

type CloudNamespaceApiKeyGetCommand added in v0.0.2

type CloudNamespaceApiKeyGetCommand struct {
	Parent  *CloudNamespaceApiKeyCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

func NewCloudNamespaceApiKeyGetCommand added in v0.0.2

func NewCloudNamespaceApiKeyGetCommand(cctx *CommandContext, parent *CloudNamespaceApiKeyCommand) *CloudNamespaceApiKeyGetCommand

type CloudNamespaceApplyCommand

type CloudNamespaceApplyCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
	ClientOptions
	DiffOptions
	Spec             string
	ProjectId        string
	AsyncOperationId string
	Idempotent       bool
	Async            bool
	ResourceVersion  string
}

func NewCloudNamespaceApplyCommand

func NewCloudNamespaceApplyCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceApplyCommand

type CloudNamespaceCapacityCommand

type CloudNamespaceCapacityCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceCapacityCommand

func NewCloudNamespaceCapacityCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceCapacityCommand

type CloudNamespaceCapacityGetCommand

type CloudNamespaceCapacityGetCommand struct {
	Parent  *CloudNamespaceCapacityCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

type CloudNamespaceCodecCommand

type CloudNamespaceCodecCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceCodecCommand

func NewCloudNamespaceCodecCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceCodecCommand

type CloudNamespaceCodecGetCommand

type CloudNamespaceCodecGetCommand struct {
	Parent  *CloudNamespaceCodecCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

type CloudNamespaceCodecSetCommand

type CloudNamespaceCodecSetCommand struct {
	Parent  *CloudNamespaceCodecCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	AsyncOperationOptions
	ResourceVersionOptions
	Endpoint                         string
	PassAccessToken                  bool
	IncludeCrossOriginCredentials    bool
	CustomErrorMessageDefaultMessage string
	CustomErrorMessageDefaultLink    string
}

type CloudNamespaceCommand

type CloudNamespaceCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudNamespaceCommand

func NewCloudNamespaceCommand(cctx *CommandContext, parent *CloudCommand) *CloudNamespaceCommand

type CloudNamespaceConnectivityCommand

type CloudNamespaceConnectivityCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

type CloudNamespaceCreateCommand

type CloudNamespaceCreateCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	CodecServerOptions
	CaCertificateOptions
	CertificateFilterOptions
	Name                    string
	Region                  []string
	RetentionDays           int
	ApiKeyAuthEnabled       bool
	MtlsAuthEnabled         bool
	EnableDeleteProtection  bool
	EnableTaskQueueFairness bool
	SearchAttribute         []string
	ConnectionRuleId        []string
	ProjectId               string
	Description             string
}

func NewCloudNamespaceCreateCommand

func NewCloudNamespaceCreateCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceCreateCommand

type CloudNamespaceDeleteCommand

type CloudNamespaceDeleteCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
	ClientOptions
	Namespace        string
	AsyncOperationId string
	Async            bool
	Idempotent       bool
	ResourceVersion  string
}

func NewCloudNamespaceDeleteCommand

func NewCloudNamespaceDeleteCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceDeleteCommand

type CloudNamespaceDescriptionCommand added in v0.1.0

type CloudNamespaceDescriptionCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceDescriptionCommand added in v0.1.0

func NewCloudNamespaceDescriptionCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceDescriptionCommand

type CloudNamespaceDescriptionGetCommand added in v0.1.0

type CloudNamespaceDescriptionGetCommand struct {
	Parent  *CloudNamespaceDescriptionCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

func NewCloudNamespaceDescriptionGetCommand added in v0.1.0

func NewCloudNamespaceDescriptionGetCommand(cctx *CommandContext, parent *CloudNamespaceDescriptionCommand) *CloudNamespaceDescriptionGetCommand

type CloudNamespaceDescriptionSetCommand added in v0.1.0

type CloudNamespaceDescriptionSetCommand struct {
	Parent  *CloudNamespaceDescriptionCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	AsyncOperationOptions
	ResourceVersionOptions
	Value string
}

func NewCloudNamespaceDescriptionSetCommand added in v0.1.0

func NewCloudNamespaceDescriptionSetCommand(cctx *CommandContext, parent *CloudNamespaceDescriptionCommand) *CloudNamespaceDescriptionSetCommand

type CloudNamespaceEditCommand

type CloudNamespaceEditCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
	ClientOptions
	DiffOptions
	Namespace        string
	AsyncOperationId string
	Idempotent       bool
	Async            bool
	ResourceVersion  string
}

func NewCloudNamespaceEditCommand

func NewCloudNamespaceEditCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceEditCommand

type CloudNamespaceExportAzureBlobCommand added in v0.0.4

type CloudNamespaceExportAzureBlobCommand struct {
	Parent  *CloudNamespaceExportCommand
	Command cobra.Command
}

func NewCloudNamespaceExportAzureBlobCommand added in v0.0.4

func NewCloudNamespaceExportAzureBlobCommand(cctx *CommandContext, parent *CloudNamespaceExportCommand) *CloudNamespaceExportAzureBlobCommand

type CloudNamespaceExportAzureBlobUpdateCommand added in v0.0.4

type CloudNamespaceExportAzureBlobUpdateCommand struct {
	Parent  *CloudNamespaceExportAzureBlobCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	AsyncOperationOptions
	ResourceVersionOptions
	ExportSinkOptions
	TenantId       string
	SubscriptionId string
	ResourceGroup  string
	StorageAccount string
	ContainerName  string
}

func NewCloudNamespaceExportAzureBlobUpdateCommand added in v0.0.4

func NewCloudNamespaceExportAzureBlobUpdateCommand(cctx *CommandContext, parent *CloudNamespaceExportAzureBlobCommand) *CloudNamespaceExportAzureBlobUpdateCommand

type CloudNamespaceExportCommand

type CloudNamespaceExportCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceExportCommand

func NewCloudNamespaceExportCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceExportCommand

type CloudNamespaceExportGcsCommand

type CloudNamespaceExportGcsCommand struct {
	Parent  *CloudNamespaceExportCommand
	Command cobra.Command
}

type CloudNamespaceExportListCommand

type CloudNamespaceExportListCommand struct {
	Parent  *CloudNamespaceExportCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

type CloudNamespaceExportS3Command

type CloudNamespaceExportS3Command struct {
	Parent  *CloudNamespaceExportCommand
	Command cobra.Command
}

type CloudNamespaceFairnessCommand

type CloudNamespaceFairnessCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceFairnessCommand

func NewCloudNamespaceFairnessCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceFairnessCommand

type CloudNamespaceFairnessGetCommand

type CloudNamespaceFairnessGetCommand struct {
	Parent  *CloudNamespaceFairnessCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

type CloudNamespaceGetCommand

type CloudNamespaceGetCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
	ClientOptions
	Namespace string
	Spec      bool
}

func NewCloudNamespaceGetCommand

func NewCloudNamespaceGetCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceGetCommand

type CloudNamespaceHaCommand

type CloudNamespaceHaCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceHaCommand

func NewCloudNamespaceHaCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceHaCommand

type CloudNamespaceHaFailoverCommand

type CloudNamespaceHaFailoverCommand struct {
	Parent  *CloudNamespaceHaCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	AsyncOperationOptions
	Region string
}

type CloudNamespaceHaGetCommand

type CloudNamespaceHaGetCommand struct {
	Parent  *CloudNamespaceHaCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

func NewCloudNamespaceHaGetCommand

func NewCloudNamespaceHaGetCommand(cctx *CommandContext, parent *CloudNamespaceHaCommand) *CloudNamespaceHaGetCommand

type CloudNamespaceHaRegionCommand

type CloudNamespaceHaRegionCommand struct {
	Parent  *CloudNamespaceHaCommand
	Command cobra.Command
}

type CloudNamespaceHaRegionListCommand

type CloudNamespaceHaRegionListCommand struct {
	Parent  *CloudNamespaceHaRegionCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

type CloudNamespaceLifecycleCommand

type CloudNamespaceLifecycleCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceLifecycleCommand

func NewCloudNamespaceLifecycleCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceLifecycleCommand

type CloudNamespaceLifecycleGetCommand

type CloudNamespaceLifecycleGetCommand struct {
	Parent  *CloudNamespaceLifecycleCommand
	Command cobra.Command
	ClientOptions
	Namespace string
}

type CloudNamespaceLifecycleSetCommand

type CloudNamespaceLifecycleSetCommand struct {
	Parent  *CloudNamespaceLifecycleCommand
	Command cobra.Command
	ClientOptions
	DiffOptions
	Namespace              string
	EnableDeleteProtection bool
	AsyncOperationId       string
	Async                  bool
	Idempotent             bool
	ResourceVersion        string
}

type CloudNamespaceListCommand

type CloudNamespaceListCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
	ClientOptions
	PageSize  int
	PageToken string
	Name      string
	ProjectId string
}

func NewCloudNamespaceListCommand

func NewCloudNamespaceListCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceListCommand

type CloudNamespaceMoveToProjectCommand added in v0.1.1

type CloudNamespaceMoveToProjectCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	ResourceVersionOptions
	DestinationProjectId string
	SourceProjectId      string
	ConnectivityRuleId   []string
	NoConnectivityRules  bool
	AsyncOperationId     string
	Async                bool
	PollInterval         cliext.FlagDuration
}

func NewCloudNamespaceMoveToProjectCommand added in v0.1.1

func NewCloudNamespaceMoveToProjectCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceMoveToProjectCommand

type CloudNamespaceMtlsCertCaCommand added in v0.0.2

type CloudNamespaceMtlsCertCaCommand struct {
	Parent  *CloudNamespaceMtlsCommand
	Command cobra.Command
}

func NewCloudNamespaceMtlsCertCaCommand added in v0.0.2

func NewCloudNamespaceMtlsCertCaCommand(cctx *CommandContext, parent *CloudNamespaceMtlsCommand) *CloudNamespaceMtlsCertCaCommand

type CloudNamespaceMtlsCertCaListCommand added in v0.0.2

type CloudNamespaceMtlsCertCaListCommand struct {
	Parent  *CloudNamespaceMtlsCertCaCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

func NewCloudNamespaceMtlsCertCaListCommand added in v0.0.2

func NewCloudNamespaceMtlsCertCaListCommand(cctx *CommandContext, parent *CloudNamespaceMtlsCertCaCommand) *CloudNamespaceMtlsCertCaListCommand

type CloudNamespaceMtlsCertFilterCommand added in v0.0.2

type CloudNamespaceMtlsCertFilterCommand struct {
	Parent  *CloudNamespaceMtlsCommand
	Command cobra.Command
}

func NewCloudNamespaceMtlsCertFilterCommand added in v0.0.2

func NewCloudNamespaceMtlsCertFilterCommand(cctx *CommandContext, parent *CloudNamespaceMtlsCommand) *CloudNamespaceMtlsCertFilterCommand

type CloudNamespaceMtlsCertFilterCreateCommand added in v0.0.2

type CloudNamespaceMtlsCertFilterCreateCommand struct {
	Parent  *CloudNamespaceMtlsCertFilterCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	AsyncOperationOptions
	ResourceVersionOptions
	CommonName             string
	Organization           string
	OrganizationalUnit     string
	SubjectAlternativeName string
}

func NewCloudNamespaceMtlsCertFilterCreateCommand added in v0.0.2

func NewCloudNamespaceMtlsCertFilterCreateCommand(cctx *CommandContext, parent *CloudNamespaceMtlsCertFilterCommand) *CloudNamespaceMtlsCertFilterCreateCommand

type CloudNamespaceMtlsCertFilterDeleteCommand added in v0.0.2

type CloudNamespaceMtlsCertFilterDeleteCommand struct {
	Parent  *CloudNamespaceMtlsCertFilterCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	AsyncOperationOptions
	ResourceVersionOptions
	CommonName             string
	Organization           string
	OrganizationalUnit     string
	SubjectAlternativeName string
}

func NewCloudNamespaceMtlsCertFilterDeleteCommand added in v0.0.2

func NewCloudNamespaceMtlsCertFilterDeleteCommand(cctx *CommandContext, parent *CloudNamespaceMtlsCertFilterCommand) *CloudNamespaceMtlsCertFilterDeleteCommand

type CloudNamespaceMtlsCertFilterListCommand added in v0.0.2

type CloudNamespaceMtlsCertFilterListCommand struct {
	Parent  *CloudNamespaceMtlsCertFilterCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

func NewCloudNamespaceMtlsCertFilterListCommand added in v0.0.2

func NewCloudNamespaceMtlsCertFilterListCommand(cctx *CommandContext, parent *CloudNamespaceMtlsCertFilterCommand) *CloudNamespaceMtlsCertFilterListCommand

type CloudNamespaceMtlsCommand added in v0.0.2

type CloudNamespaceMtlsCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceMtlsCommand added in v0.0.2

func NewCloudNamespaceMtlsCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceMtlsCommand

type CloudNamespaceMtlsDisableCommand added in v0.0.2

type CloudNamespaceMtlsDisableCommand struct {
	Parent  *CloudNamespaceMtlsCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	AsyncOperationOptions
	ResourceVersionOptions
}

func NewCloudNamespaceMtlsDisableCommand added in v0.0.2

func NewCloudNamespaceMtlsDisableCommand(cctx *CommandContext, parent *CloudNamespaceMtlsCommand) *CloudNamespaceMtlsDisableCommand

type CloudNamespaceMtlsEnableCommand added in v0.0.2

func NewCloudNamespaceMtlsEnableCommand added in v0.0.2

func NewCloudNamespaceMtlsEnableCommand(cctx *CommandContext, parent *CloudNamespaceMtlsCommand) *CloudNamespaceMtlsEnableCommand

type CloudNamespaceMtlsGetCommand added in v0.0.2

type CloudNamespaceMtlsGetCommand struct {
	Parent  *CloudNamespaceMtlsCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

func NewCloudNamespaceMtlsGetCommand added in v0.0.2

func NewCloudNamespaceMtlsGetCommand(cctx *CommandContext, parent *CloudNamespaceMtlsCommand) *CloudNamespaceMtlsGetCommand

type CloudNamespaceRetentionCommand

type CloudNamespaceRetentionCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceRetentionCommand

func NewCloudNamespaceRetentionCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceRetentionCommand

type CloudNamespaceRetentionGetCommand

type CloudNamespaceRetentionGetCommand struct {
	Parent  *CloudNamespaceRetentionCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

type CloudNamespaceSearchAttributeCommand

type CloudNamespaceSearchAttributeCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

type CloudNamespaceServiceAccountCommand added in v0.0.3

type CloudNamespaceServiceAccountCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceServiceAccountCommand added in v0.0.3

func NewCloudNamespaceServiceAccountCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceServiceAccountCommand

type CloudNamespaceServiceAccountListCommand added in v0.0.3

type CloudNamespaceServiceAccountListCommand struct {
	Parent  *CloudNamespaceServiceAccountCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	PageSize  int
	PageToken string
}

func NewCloudNamespaceServiceAccountListCommand added in v0.0.3

func NewCloudNamespaceServiceAccountListCommand(cctx *CommandContext, parent *CloudNamespaceServiceAccountCommand) *CloudNamespaceServiceAccountListCommand

type CloudNamespaceTagCommand

type CloudNamespaceTagCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceTagCommand

func NewCloudNamespaceTagCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceTagCommand

type CloudNamespaceTagListCommand

type CloudNamespaceTagListCommand struct {
	Parent  *CloudNamespaceTagCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
}

type CloudNamespaceUserCommand added in v0.0.3

type CloudNamespaceUserCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceUserCommand added in v0.0.3

func NewCloudNamespaceUserCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceUserCommand

type CloudNamespaceUserGroupCommand added in v0.0.3

type CloudNamespaceUserGroupCommand struct {
	Parent  *CloudNamespaceCommand
	Command cobra.Command
}

func NewCloudNamespaceUserGroupCommand added in v0.0.3

func NewCloudNamespaceUserGroupCommand(cctx *CommandContext, parent *CloudNamespaceCommand) *CloudNamespaceUserGroupCommand

type CloudNamespaceUserGroupListCommand added in v0.0.3

type CloudNamespaceUserGroupListCommand struct {
	Parent  *CloudNamespaceUserGroupCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	PageSize  int
	PageToken string
}

func NewCloudNamespaceUserGroupListCommand added in v0.0.3

func NewCloudNamespaceUserGroupListCommand(cctx *CommandContext, parent *CloudNamespaceUserGroupCommand) *CloudNamespaceUserGroupListCommand

type CloudNamespaceUserListCommand added in v0.0.3

type CloudNamespaceUserListCommand struct {
	Parent  *CloudNamespaceUserCommand
	Command cobra.Command
	ClientOptions
	NamespaceOptions
	PageSize  int
	PageToken string
}

func NewCloudNamespaceUserListCommand added in v0.0.3

func NewCloudNamespaceUserListCommand(cctx *CommandContext, parent *CloudNamespaceUserCommand) *CloudNamespaceUserListCommand

type CloudNexusCommand

type CloudNexusCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudNexusCommand

func NewCloudNexusCommand(cctx *CommandContext, parent *CloudCommand) *CloudNexusCommand

type CloudNexusEndpointAllowedNamespaceCommand

type CloudNexusEndpointAllowedNamespaceCommand struct {
	Parent  *CloudNexusEndpointCommand
	Command cobra.Command
}

type CloudNexusEndpointCommand

type CloudNexusEndpointCommand struct {
	Parent  *CloudNexusCommand
	Command cobra.Command
}

func NewCloudNexusEndpointCommand

func NewCloudNexusEndpointCommand(cctx *CommandContext, parent *CloudNexusCommand) *CloudNexusEndpointCommand

type CloudNexusEndpointCreateCommand

type CloudNexusEndpointCreateCommand struct {
	Parent  *CloudNexusEndpointCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	Name            string
	ProjectId       string
	TargetNamespace string
	TargetTaskQueue string
	AllowNamespace  []string
	Description     string
	DescriptionFile string
}

type CloudNexusEndpointGetCommand

type CloudNexusEndpointGetCommand struct {
	Parent  *CloudNexusEndpointCommand
	Command cobra.Command
	ClientOptions
	Name string
	Id   string
}

type CloudNexusEndpointListCommand

type CloudNexusEndpointListCommand struct {
	Parent  *CloudNexusEndpointCommand
	Command cobra.Command
	ClientOptions
	ProjectId string
	PageSize  int
	PageToken string
}

type CloudNexusEndpointUpdateCommand

type CloudNexusEndpointUpdateCommand struct {
	Parent  *CloudNexusEndpointCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	Name             string
	Id               string
	TargetNamespace  string
	TargetTaskQueue  string
	Description      string
	DescriptionFile  string
	UnsetDescription bool
}

type CloudOptions

type CloudOptions struct {
	ApiKey string
	Server string
	cliext.CommonOptions
	Logger log.Logger
}

func (*CloudOptions) GetAPIKey

func (c *CloudOptions) GetAPIKey(ctx context.Context) (string, error)

type CloudOptionsBuilder

type CloudOptionsBuilder struct {
	// CommonOptions contains common CLI options including profile config.
	CommonOptions cliext.CommonOptions
	// ClientOptions contains the client configuration from flags.
	ClientOptions ClientOptions
	// EnvLookup is the environment variable lookup function.
	// If nil, environment variables are not used for profile loading.
	EnvLookup envconfig.EnvLookup
	// Logger is the slog logger to use for the client. If set, it will be
	// wrapped with the SDK's structured logger adapter.
	Logger *slog.Logger
}

func (*CloudOptionsBuilder) Build

type CloudProjectApplyCommand added in v0.0.4

type CloudProjectApplyCommand struct {
	Parent  *CloudProjectCommand
	Command cobra.Command
	ClientOptions
	DiffOptions
	AsyncOperationOptions
	ResourceVersionOptions
	Spec string
}

func NewCloudProjectApplyCommand added in v0.0.4

func NewCloudProjectApplyCommand(cctx *CommandContext, parent *CloudProjectCommand) *CloudProjectApplyCommand

type CloudProjectCommand added in v0.0.4

type CloudProjectCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudProjectCommand added in v0.0.4

func NewCloudProjectCommand(cctx *CommandContext, parent *CloudCommand) *CloudProjectCommand

type CloudProjectCreateCommand added in v0.0.4

type CloudProjectCreateCommand struct {
	Parent  *CloudProjectCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	DisplayName            string
	Description            string
	EnableDeleteProtection bool
}

func NewCloudProjectCreateCommand added in v0.0.4

func NewCloudProjectCreateCommand(cctx *CommandContext, parent *CloudProjectCommand) *CloudProjectCreateCommand

type CloudProjectDeleteCommand added in v0.0.4

type CloudProjectDeleteCommand struct {
	Parent  *CloudProjectCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	ProjectId string
}

func NewCloudProjectDeleteCommand added in v0.0.4

func NewCloudProjectDeleteCommand(cctx *CommandContext, parent *CloudProjectCommand) *CloudProjectDeleteCommand

type CloudProjectEditCommand added in v0.0.4

type CloudProjectEditCommand struct {
	Parent  *CloudProjectCommand
	Command cobra.Command
	ClientOptions
	DiffOptions
	AsyncOperationOptions
	ResourceVersionOptions
	ProjectId string
}

func NewCloudProjectEditCommand added in v0.0.4

func NewCloudProjectEditCommand(cctx *CommandContext, parent *CloudProjectCommand) *CloudProjectEditCommand

type CloudProjectGetCommand added in v0.0.4

type CloudProjectGetCommand struct {
	Parent  *CloudProjectCommand
	Command cobra.Command
	ClientOptions
	ProjectId string
}

func NewCloudProjectGetCommand added in v0.0.4

func NewCloudProjectGetCommand(cctx *CommandContext, parent *CloudProjectCommand) *CloudProjectGetCommand

type CloudProjectListCommand added in v0.0.4

type CloudProjectListCommand struct {
	Parent  *CloudProjectCommand
	Command cobra.Command
	ClientOptions
	ProjectId []string
	PageSize  int
	PageToken string
}

func NewCloudProjectListCommand added in v0.0.4

func NewCloudProjectListCommand(cctx *CommandContext, parent *CloudProjectCommand) *CloudProjectListCommand

type CloudProjectServiceAccountCommand added in v0.0.4

type CloudProjectServiceAccountCommand struct {
	Parent  *CloudProjectCommand
	Command cobra.Command
}

func NewCloudProjectServiceAccountCommand added in v0.0.4

func NewCloudProjectServiceAccountCommand(cctx *CommandContext, parent *CloudProjectCommand) *CloudProjectServiceAccountCommand

type CloudProjectServiceAccountListCommand added in v0.0.4

type CloudProjectServiceAccountListCommand struct {
	Parent  *CloudProjectServiceAccountCommand
	Command cobra.Command
	ClientOptions
	ProjectId string
	PageSize  int
	PageToken string
}

func NewCloudProjectServiceAccountListCommand added in v0.0.4

func NewCloudProjectServiceAccountListCommand(cctx *CommandContext, parent *CloudProjectServiceAccountCommand) *CloudProjectServiceAccountListCommand

type CloudProjectUpdateCommand added in v0.0.4

type CloudProjectUpdateCommand struct {
	Parent  *CloudProjectCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	ProjectId              string
	DisplayName            string
	Description            string
	EnableDeleteProtection bool
}

func NewCloudProjectUpdateCommand added in v0.0.4

func NewCloudProjectUpdateCommand(cctx *CommandContext, parent *CloudProjectCommand) *CloudProjectUpdateCommand

type CloudProjectUserCommand added in v0.0.4

type CloudProjectUserCommand struct {
	Parent  *CloudProjectCommand
	Command cobra.Command
}

func NewCloudProjectUserCommand added in v0.0.4

func NewCloudProjectUserCommand(cctx *CommandContext, parent *CloudProjectCommand) *CloudProjectUserCommand

type CloudProjectUserGroupCommand added in v0.0.4

type CloudProjectUserGroupCommand struct {
	Parent  *CloudProjectCommand
	Command cobra.Command
}

func NewCloudProjectUserGroupCommand added in v0.0.4

func NewCloudProjectUserGroupCommand(cctx *CommandContext, parent *CloudProjectCommand) *CloudProjectUserGroupCommand

type CloudProjectUserGroupListCommand added in v0.0.4

type CloudProjectUserGroupListCommand struct {
	Parent  *CloudProjectUserGroupCommand
	Command cobra.Command
	ClientOptions
	ProjectId string
	PageSize  int
	PageToken string
}

func NewCloudProjectUserGroupListCommand added in v0.0.4

func NewCloudProjectUserGroupListCommand(cctx *CommandContext, parent *CloudProjectUserGroupCommand) *CloudProjectUserGroupListCommand

type CloudProjectUserListCommand added in v0.0.4

type CloudProjectUserListCommand struct {
	Parent  *CloudProjectUserCommand
	Command cobra.Command
	ClientOptions
	ProjectId string
	PageSize  int
	PageToken string
}

func NewCloudProjectUserListCommand added in v0.0.4

func NewCloudProjectUserListCommand(cctx *CommandContext, parent *CloudProjectUserCommand) *CloudProjectUserListCommand

type CloudRegionCommand

type CloudRegionCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudRegionCommand

func NewCloudRegionCommand(cctx *CommandContext, parent *CloudCommand) *CloudRegionCommand

type CloudRegionGetCommand

type CloudRegionGetCommand struct {
	Parent  *CloudRegionCommand
	Command cobra.Command
	ClientOptions
	Region string
}

func NewCloudRegionGetCommand

func NewCloudRegionGetCommand(cctx *CommandContext, parent *CloudRegionCommand) *CloudRegionGetCommand

type CloudRegionListCommand

type CloudRegionListCommand struct {
	Parent  *CloudRegionCommand
	Command cobra.Command
	ClientOptions
}

func NewCloudRegionListCommand

func NewCloudRegionListCommand(cctx *CommandContext, parent *CloudRegionCommand) *CloudRegionListCommand

type CloudServiceAccountCommand

type CloudServiceAccountCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudServiceAccountCommand

func NewCloudServiceAccountCommand(cctx *CommandContext, parent *CloudCommand) *CloudServiceAccountCommand

type CloudServiceAccountCreateCommand

type CloudServiceAccountCreateCommand struct {
	Parent  *CloudServiceAccountCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	Name            string
	Description     string
	AccountRole     string
	NamespaceAccess []string
	ProjectAccess   []string
	CustomRole      []string
}

type CloudServiceAccountCreateNamespaceScopedCommand

type CloudServiceAccountCreateNamespaceScopedCommand struct {
	Parent  *CloudServiceAccountCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	Name                string
	Description         string
	Namespace           string
	NamespacePermission string
}

type CloudServiceAccountCreateProjectScopedCommand added in v0.0.4

type CloudServiceAccountCreateProjectScopedCommand struct {
	Parent  *CloudServiceAccountCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	Name            string
	Description     string
	ProjectId       string
	ProjectRole     string
	NamespaceAccess []string
}

func NewCloudServiceAccountCreateProjectScopedCommand added in v0.0.4

func NewCloudServiceAccountCreateProjectScopedCommand(cctx *CommandContext, parent *CloudServiceAccountCommand) *CloudServiceAccountCreateProjectScopedCommand

type CloudServiceAccountDeleteCommand

type CloudServiceAccountDeleteCommand struct {
	Parent  *CloudServiceAccountCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	ServiceAccountId string
}

type CloudServiceAccountGetCommand

type CloudServiceAccountGetCommand struct {
	Parent  *CloudServiceAccountCommand
	Command cobra.Command
	ClientOptions
	ServiceAccountId string
}

type CloudServiceAccountListCommand

type CloudServiceAccountListCommand struct {
	Parent  *CloudServiceAccountCommand
	Command cobra.Command
	ClientOptions
	ProjectId string
	PageSize  int
	PageToken string
}

type CloudServiceAccountRemoveProjectAccessCommand added in v0.0.4

type CloudServiceAccountRemoveProjectAccessCommand struct {
	Parent  *CloudServiceAccountCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	ServiceAccountId string
	ProjectId        string
}

func NewCloudServiceAccountRemoveProjectAccessCommand added in v0.0.4

func NewCloudServiceAccountRemoveProjectAccessCommand(cctx *CommandContext, parent *CloudServiceAccountCommand) *CloudServiceAccountRemoveProjectAccessCommand

type CloudServiceAccountSetProjectAccessCommand added in v0.0.4

type CloudServiceAccountSetProjectAccessCommand struct {
	Parent  *CloudServiceAccountCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	ServiceAccountId string
	ProjectId        string
	ProjectRole      string
}

func NewCloudServiceAccountSetProjectAccessCommand added in v0.0.4

func NewCloudServiceAccountSetProjectAccessCommand(cctx *CommandContext, parent *CloudServiceAccountCommand) *CloudServiceAccountSetProjectAccessCommand

type CloudServiceAccountUpdateCommand

type CloudServiceAccountUpdateCommand struct {
	Parent  *CloudServiceAccountCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	CustomRoleOptions
	ServiceAccountId    string
	Name                string
	Description         string
	AccountRole         string
	NamespaceAccess     []string
	ProjectAccess       []string
	ProjectRole         string
	NamespacePermission string
}

type CloudUserCommand

type CloudUserCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudUserCommand

func NewCloudUserCommand(cctx *CommandContext, parent *CloudCommand) *CloudUserCommand

type CloudUserGetCommand

type CloudUserGetCommand struct {
	Parent  *CloudUserCommand
	Command cobra.Command
	ClientOptions
	UserIdentificationOptions
}

func NewCloudUserGetCommand

func NewCloudUserGetCommand(cctx *CommandContext, parent *CloudUserCommand) *CloudUserGetCommand

type CloudUserGroupCommand

type CloudUserGroupCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
}

func NewCloudUserGroupCommand

func NewCloudUserGroupCommand(cctx *CommandContext, parent *CloudCommand) *CloudUserGroupCommand

type CloudUserGroupCreateCloudGroupCommand

type CloudUserGroupCreateCloudGroupCommand struct {
	Parent  *CloudUserGroupCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	DisplayName     string
	AccountRole     string
	NamespaceAccess []string
	ProjectAccess   []string
	CustomRole      []string
}

type CloudUserGroupCreateGoogleGroupCommand

type CloudUserGroupCreateGoogleGroupCommand struct {
	Parent  *CloudUserGroupCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	DisplayName      string
	GoogleGroupEmail string
	AccountRole      string
	NamespaceAccess  []string
	ProjectAccess    []string
	CustomRole       []string
}

type CloudUserGroupCreateScimGroupCommand

type CloudUserGroupCreateScimGroupCommand struct {
	Parent  *CloudUserGroupCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	DisplayName     string
	ScimIdpId       string
	AccountRole     string
	NamespaceAccess []string
	ProjectAccess   []string
	CustomRole      []string
}

type CloudUserGroupGetCommand

type CloudUserGroupGetCommand struct {
	Parent  *CloudUserGroupCommand
	Command cobra.Command
	ClientOptions
	GroupIdOptions
}

func NewCloudUserGroupGetCommand

func NewCloudUserGroupGetCommand(cctx *CommandContext, parent *CloudUserGroupCommand) *CloudUserGroupGetCommand

type CloudUserGroupListCommand

type CloudUserGroupListCommand struct {
	Parent  *CloudUserGroupCommand
	Command cobra.Command
	ClientOptions
	PageSize                int
	PageToken               string
	Namespace               string
	ProjectId               string
	DisplayName             string
	GoogleGroupEmailAddress string
	ScimGroupIdpId          string
}

func NewCloudUserGroupListCommand

func NewCloudUserGroupListCommand(cctx *CommandContext, parent *CloudUserGroupCommand) *CloudUserGroupListCommand

type CloudUserGroupMembersCommand

type CloudUserGroupMembersCommand struct {
	Parent  *CloudUserGroupCommand
	Command cobra.Command
}

func NewCloudUserGroupMembersCommand

func NewCloudUserGroupMembersCommand(cctx *CommandContext, parent *CloudUserGroupCommand) *CloudUserGroupMembersCommand

type CloudUserGroupMembersListCommand

type CloudUserGroupMembersListCommand struct {
	Parent  *CloudUserGroupMembersCommand
	Command cobra.Command
	ClientOptions
	GroupIdOptions
	PageSize  int
	PageToken string
}

type CloudUserGroupRemoveProjectAccessCommand added in v0.0.4

type CloudUserGroupRemoveProjectAccessCommand struct {
	Parent  *CloudUserGroupCommand
	Command cobra.Command
	ClientOptions
	GroupIdOptions
	AsyncOperationOptions
	ResourceVersionOptions
	ProjectId string
}

func NewCloudUserGroupRemoveProjectAccessCommand added in v0.0.4

func NewCloudUserGroupRemoveProjectAccessCommand(cctx *CommandContext, parent *CloudUserGroupCommand) *CloudUserGroupRemoveProjectAccessCommand

type CloudUserGroupSetNamespacePermissionsCommand

type CloudUserGroupSetNamespacePermissionsCommand struct {
	Parent  *CloudUserGroupCommand
	Command cobra.Command
	ClientOptions
	GroupIdOptions
	AsyncOperationOptions
	ResourceVersionOptions
	NamespaceAccess []string
}

type CloudUserGroupSetProjectAccessCommand added in v0.0.4

type CloudUserGroupSetProjectAccessCommand struct {
	Parent  *CloudUserGroupCommand
	Command cobra.Command
	ClientOptions
	GroupIdOptions
	AsyncOperationOptions
	ResourceVersionOptions
	ProjectId   string
	ProjectRole string
}

func NewCloudUserGroupSetProjectAccessCommand added in v0.0.4

func NewCloudUserGroupSetProjectAccessCommand(cctx *CommandContext, parent *CloudUserGroupCommand) *CloudUserGroupSetProjectAccessCommand

type CloudUserGroupUpdateCommand

type CloudUserGroupUpdateCommand struct {
	Parent  *CloudUserGroupCommand
	Command cobra.Command
	ClientOptions
	GroupIdOptions
	AsyncOperationOptions
	ResourceVersionOptions
	CustomRoleOptions
	AccountRole     string
	NamespaceAccess []string
	ProjectAccess   []string
}

func NewCloudUserGroupUpdateCommand

func NewCloudUserGroupUpdateCommand(cctx *CommandContext, parent *CloudUserGroupCommand) *CloudUserGroupUpdateCommand

type CloudUserInviteCommand

type CloudUserInviteCommand struct {
	Parent  *CloudUserCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	Email           string
	AccountRole     string
	NamespaceAccess []string
	ProjectAccess   []string
	CustomRole      []string
}

func NewCloudUserInviteCommand

func NewCloudUserInviteCommand(cctx *CommandContext, parent *CloudUserCommand) *CloudUserInviteCommand

type CloudUserListCommand

type CloudUserListCommand struct {
	Parent  *CloudUserCommand
	Command cobra.Command
	ClientOptions
	PageSize  int
	PageToken string
	Email     string
	Namespace string
	ProjectId string
}

func NewCloudUserListCommand

func NewCloudUserListCommand(cctx *CommandContext, parent *CloudUserCommand) *CloudUserListCommand

type CloudUserRemoveProjectAccessCommand added in v0.0.4

type CloudUserRemoveProjectAccessCommand struct {
	Parent  *CloudUserCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	UserIdentificationOptions
	ProjectId string
}

func NewCloudUserRemoveProjectAccessCommand added in v0.0.4

func NewCloudUserRemoveProjectAccessCommand(cctx *CommandContext, parent *CloudUserCommand) *CloudUserRemoveProjectAccessCommand

type CloudUserSetNamespacePermissionsCommand

type CloudUserSetNamespacePermissionsCommand struct {
	Parent  *CloudUserCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	UserIdentificationOptions
	NamespaceAccess []string
}

func NewCloudUserSetNamespacePermissionsCommand

func NewCloudUserSetNamespacePermissionsCommand(cctx *CommandContext, parent *CloudUserCommand) *CloudUserSetNamespacePermissionsCommand

type CloudUserSetProjectAccessCommand added in v0.0.4

type CloudUserSetProjectAccessCommand struct {
	Parent  *CloudUserCommand
	Command cobra.Command
	ClientOptions
	AsyncOperationOptions
	ResourceVersionOptions
	UserIdentificationOptions
	ProjectId   string
	ProjectRole string
}

func NewCloudUserSetProjectAccessCommand added in v0.0.4

func NewCloudUserSetProjectAccessCommand(cctx *CommandContext, parent *CloudUserCommand) *CloudUserSetProjectAccessCommand

type CloudWhoamiCommand

type CloudWhoamiCommand struct {
	Parent  *CloudCommand
	Command cobra.Command
	ClientOptions
}

func NewCloudWhoamiCommand

func NewCloudWhoamiCommand(cctx *CommandContext, parent *CloudCommand) *CloudWhoamiCommand

type CodecServerOptions

type CodecServerOptions struct {
	CodecEndpoint                      string
	CodecPassAccessToken               bool
	CodecIncludeCrossOriginCredentials bool
	FlagSet                            *pflag.FlagSet
}

func (*CodecServerOptions) BuildFlags

func (v *CodecServerOptions) BuildFlags(f *pflag.FlagSet)

type CommandContext

type CommandContext struct {
	// This context is closed on interrupt
	context.Context
	Options                   CommandOptions
	DeprecatedEnvConfigValues map[string]map[string]string
	FlagsWithEnvVars          []*pflag.Flag

	// These values may not be available until after pre-run of main command
	Printer               *printer.Printer
	Logger                *slog.Logger
	JSONOutput            bool
	JSONShorthandPayloads bool

	// Is set to true if any command actually started running. This is a hack to workaround the fact
	// that cobra does not properly exit nonzero if an unknown command/subcommand is given.
	ActuallyRanCommand bool

	// Root/current command only set inside of pre-run
	RootCommand    *CloudCommand
	CurrentCommand *cobra.Command

	NamespaceClient NamespaceClient

	Poller Poller
	// contains filtered or unexported fields
}

func NewCommandContext

func NewCommandContext(ctx context.Context, options CommandOptions) (*CommandContext, context.CancelFunc, error)

NewCommandContext creates a CommandContext for use by the rest of the CLI. Among other things, this parses the env config file and modifies options/flags according to the parameters set there.

A CommandContext and CancelFunc are always returned, even in the event of an error; this is so the CommandContext can be used to print an appropriate error message.

func (*CommandContext) BindFlagEnvVar

func (c *CommandContext) BindFlagEnvVar(flag *pflag.Flag, envVar string)

func (*CommandContext) BuildCloudClient

func (cctx *CommandContext) BuildCloudClient(clientOpts ClientOptions) (*cloudclient.Client, error)

BuildCloudClient creates a CloudClient from the command's ClientOptions. It builds CloudOptions internally and then creates the client.

This is a convenience method for commands that need the CloudClient directly without needing to keep a reference to CloudOptions.

AIDEV-NOTE: Use this method in command run functions instead of manually creating CloudOptions and CloudClient separately.

func (*CommandContext) BuildCloudOptions

func (cctx *CommandContext) BuildCloudOptions(clientOpts ClientOptions) (*CloudOptions, error)

BuildCloudOptions creates CloudOptions from the command's ClientOptions. It uses the RootCommand's CommonOptions and the CommandContext's logger.

This method encapsulates the CloudOptionsBuilder pattern and should be used by all commands that need CloudOptions.

AIDEV-NOTE: This is the standard way for commands to create CloudOptions. It automatically uses cctx.RootCommand.CommonOptions regardless of command depth.

func (*CommandContext) GetCloudClient

func (cctx *CommandContext) GetCloudClient(
	cloudOpts ClientOptions,
) (cloudservice.CloudServiceClient, error)

func (*CommandContext) GetEditor

func (cctx *CommandContext) GetEditor() editor.Editor

func (*CommandContext) GetPoller

func (cctx *CommandContext) GetPoller(
	client cloudservice.CloudServiceClient,
	asyncOptions AsyncOperationOptions,
) async.Poller

func (*CommandContext) GetPrompter

func (cctx *CommandContext) GetPrompter() cliprompter.Prompter

func (*CommandContext) MarshalFriendlyFailureBodyText

func (c *CommandContext) MarshalFriendlyFailureBodyText(f *failure.Failure, indent string) (s string)

Starts with newline

func (*CommandContext) MarshalFriendlyJSONPayloads

func (c *CommandContext) MarshalFriendlyJSONPayloads(m *common.Payloads) (json.RawMessage, error)

func (*CommandContext) MarshalProtoJSON

func (c *CommandContext) MarshalProtoJSON(m proto.Message) ([]byte, error)

Takes payload shorthand into account, can use MarshalProtoJSONNoPayloadShorthand if needed

func (*CommandContext) MarshalProtoJSONWithOptions

func (c *CommandContext) MarshalProtoJSONWithOptions(m proto.Message, jsonShorthandPayloads bool) ([]byte, error)

func (*CommandContext) UnmarshalProtoJSON

func (c *CommandContext) UnmarshalProtoJSON(b []byte, m proto.Message) error

type CommandIfc

type CommandIfc interface {
	// contains filtered or unexported methods
}

type CommandOptions

type CommandOptions struct {
	// If empty, assumed to be os.Args[1:]
	Args []string
	// If nil, [envconfig.EnvLookupOS] is used.
	EnvLookup envconfig.EnvLookup

	// These three fields below default to OS values
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer

	// Defaults to logging error then os.Exit(1)
	Fail func(error)

	AdditionalClientGRPCDialOptions []grpc.DialOption
	ClientConnectTimeout            time.Duration
}

type CreateAuditLogSinkKinesisParams

type CreateAuditLogSinkKinesisParams struct {
	Name             string
	RoleName         string
	DestinationURI   string
	Region           string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type CreateAuditLogSinkPubSubParams

type CreateAuditLogSinkPubSubParams struct {
	Name             string
	ServiceAccountID string
	TopicName        string
	GCPProjectID     string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type CreateAzureBlobExportSinkParams added in v0.0.4

type CreateAzureBlobExportSinkParams struct {
	Namespace        string
	SinkName         string
	TenantID         string
	SubscriptionID   string
	ResourceGroup    string
	StorageAccount   string
	ContainerName    string
	Region           string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type CreateGCSExportSinkParams

type CreateGCSExportSinkParams struct {
	Namespace        string
	SinkName         string
	SaID             string
	BucketName       string
	GcpProjectID     string
	Region           string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type CreateNamespaceParams

type CreateNamespaceParams struct {
	Name                               string
	Regions                            []string
	RetentionDays                      int32
	ApiKeyAuthEnabled                  bool
	MtlsAuthEnabled                    bool
	EnableDeleteProtection             bool
	EnableTaskQueueFairness            *bool
	AsyncOperationID                   string
	CACertificateOptions               CaCertificateOptions
	CertificateFilterOptions           CertificateFilterOptions
	SearchAttribute                    []string
	CodecEndpoint                      string
	CodecPassAccessToken               bool
	CodecIncludeCrossOriginCredentials bool
	ConnectionRuleIDs                  []string
	ProjectID                          string
	Description                        string

	Cloud              cloudservice.CloudServiceClient
	Printer            *printer.Printer
	Prompter           Prompter
	OperationHandler   AsyncOperationHandler
	UnmarshalProtoJSON func([]byte, proto.Message) error
}

type CreatePrivateConnectivityRuleParams

type CreatePrivateConnectivityRuleParams struct {
	ConnectionID      string
	Region            string
	GCPProjectID      string
	AzurePeResourceID string
	ProjectID         string
	AsyncOperationID  string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type CreatePublicConnectivityRuleParams

type CreatePublicConnectivityRuleParams struct {
	EnableStableIPs  bool
	ProjectID        string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type CreateS3ExportSinkParams

type CreateS3ExportSinkParams struct {
	Namespace        string
	SinkName         string
	RoleName         string
	BucketName       string
	Region           string
	AwsAccountID     string
	KmsArn           string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type CustomRoleOptions

type CustomRoleOptions struct {
	CustomRole []string
	FlagSet    *pflag.FlagSet
}

func (*CustomRoleOptions) BuildFlags

func (v *CustomRoleOptions) BuildFlags(f *pflag.FlagSet)

type DeleteAuditLogSinkParams

type DeleteAuditLogSinkParams struct {
	Name             string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type DeleteConnectivityRuleParams

type DeleteConnectivityRuleParams struct {
	ID               string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type DeleteExportSinkParams

type DeleteExportSinkParams struct {
	Namespace        string
	SinkName         string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type DiffOptions

type DiffOptions struct {
	VerboseDiff bool
	FlagSet     *pflag.FlagSet
}

func (*DiffOptions) BuildFlags

func (v *DiffOptions) BuildFlags(f *pflag.FlagSet)

type DisableAuditLogSinkParams

type DisableAuditLogSinkParams struct {
	Name             string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type DisableExportSinkParams

type DisableExportSinkParams struct {
	Namespace        string
	SinkName         string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type EnableAuditLogSinkParams

type EnableAuditLogSinkParams struct {
	Name             string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type EnableExportSinkParams

type EnableExportSinkParams struct {
	Namespace        string
	SinkName         string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type ExportAzureBlobOptions added in v0.0.4

type ExportAzureBlobOptions struct {
	TenantId       string
	SubscriptionId string
	ResourceGroup  string
	StorageAccount string
	ContainerName  string
	FlagSet        *pflag.FlagSet
}

func (*ExportAzureBlobOptions) BuildFlags added in v0.0.4

func (v *ExportAzureBlobOptions) BuildFlags(f *pflag.FlagSet)

type ExportAzureBlobRegionOptions added in v0.0.4

type ExportAzureBlobRegionOptions struct {
	Region  string
	FlagSet *pflag.FlagSet
}

func (*ExportAzureBlobRegionOptions) BuildFlags added in v0.0.4

func (v *ExportAzureBlobRegionOptions) BuildFlags(f *pflag.FlagSet)

type ExportGcsOptions

type ExportGcsOptions struct {
	ServiceAccountEmail string
	BucketName          string
	FlagSet             *pflag.FlagSet
}

func (*ExportGcsOptions) BuildFlags

func (v *ExportGcsOptions) BuildFlags(f *pflag.FlagSet)

type ExportGcsRegionOptions

type ExportGcsRegionOptions struct {
	Region  string
	FlagSet *pflag.FlagSet
}

func (*ExportGcsRegionOptions) BuildFlags

func (v *ExportGcsRegionOptions) BuildFlags(f *pflag.FlagSet)

type ExportS3Options

type ExportS3Options struct {
	RoleArn    string
	BucketName string
	KmsArn     string
	FlagSet    *pflag.FlagSet
}

func (*ExportS3Options) BuildFlags

func (v *ExportS3Options) BuildFlags(f *pflag.FlagSet)

type ExportS3RegionOptions

type ExportS3RegionOptions struct {
	Region  string
	FlagSet *pflag.FlagSet
}

func (*ExportS3RegionOptions) BuildFlags

func (v *ExportS3RegionOptions) BuildFlags(f *pflag.FlagSet)

type ExportSinkOptions

type ExportSinkOptions struct {
	SinkName string
	FlagSet  *pflag.FlagSet
}

func (*ExportSinkOptions) BuildFlags

func (v *ExportSinkOptions) BuildFlags(f *pflag.FlagSet)

type FriendlyError added in v0.0.3

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

A FriendlyError is an error intended for presentation directly to users

func NewFriendlyError added in v0.0.3

func NewFriendlyError(reason string, cause error) FriendlyError

NewFriendlyError returns an error that preserves the given reason for later presentation as a user-facing error message, available via FriendlyError(). Full context is available via Error() and Unwrap()

func NewFriendlyErrorf added in v0.0.3

func NewFriendlyErrorf(format string, args ...any) FriendlyError

func (FriendlyError) Error added in v0.0.3

func (err FriendlyError) Error() string

func (FriendlyError) FriendlyError added in v0.0.3

func (err FriendlyError) FriendlyError() string

func (FriendlyError) Unwrap added in v0.0.3

func (err FriendlyError) Unwrap() error

type GetAuditLogSinkParams

type GetAuditLogSinkParams struct {
	Name string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type GetAuditLogsParams

type GetAuditLogsParams struct {
	PageSize  int32
	PageToken string
	StartTime time.Time
	EndTime   time.Time

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type GetConnectivityRuleParams

type GetConnectivityRuleParams struct {
	ID string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type GetExportSinkParams

type GetExportSinkParams struct {
	Namespace string
	SinkName  string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type GetRetentionParams

type GetRetentionParams struct {
	Namespace string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type GraftedError added in v0.0.3

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

func (GraftedError) Error added in v0.0.3

func (err GraftedError) Error() string

func (GraftedError) Unwrap added in v0.0.3

func (err GraftedError) Unwrap() []error

type GroupIdOptions

type GroupIdOptions struct {
	GroupId string
	FlagSet *pflag.FlagSet
}

func (*GroupIdOptions) BuildFlags

func (v *GroupIdOptions) BuildFlags(f *pflag.FlagSet)

type ListAuditLogSinksParams

type ListAuditLogSinksParams struct {
	PageSize  int32
	PageToken string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type ListConnectivityRulesParams

type ListConnectivityRulesParams struct {
	Namespace string
	ProjectID string
	PageSize  int32
	PageToken string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type ListExportSinksParams

type ListExportSinksParams struct {
	Namespace string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type MutationResult

type MutationResult struct {
	AsyncOp *operation.AsyncOperation `json:"asyncOperation"`
	ID      string                    `json:"id"`
}

type NamespaceOptions

type NamespaceOptions struct {
	Namespace string
	FlagSet   *pflag.FlagSet
}

func (*NamespaceOptions) BuildFlags

func (v *NamespaceOptions) BuildFlags(f *pflag.FlagSet)

type Poller

type Poller interface {
	PollAsyncOperation(*CommandContext, string, string) error
}

type Prompter

type Prompter interface {
	PromptApply(old, new proto.Message, verbose bool) error
}

type ResourceVersionOptions

type ResourceVersionOptions struct {
	ResourceVersion string
	FlagSet         *pflag.FlagSet
}

func (*ResourceVersionOptions) BuildFlags

func (v *ResourceVersionOptions) BuildFlags(f *pflag.FlagSet)

type Result

type Result struct {
	Status string `json:"status"`
}

type RoleIdOptions

type RoleIdOptions struct {
	RoleId  string
	FlagSet *pflag.FlagSet
}

func (*RoleIdOptions) BuildFlags

func (v *RoleIdOptions) BuildFlags(f *pflag.FlagSet)

type SearchAttributeOutput

type SearchAttributeOutput struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

SearchAttributeOutput is the display representation of a custom search attribute.

type SetRetentionParams

type SetRetentionParams struct {
	Namespace        string
	RetentionDays    int32
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type Tag

type Tag struct {
	Key   string
	Value string
}

type TestAsyncPollerOptions

type TestAsyncPollerOptions struct {
	AsyncOperationID string
	ErrorToReturn    error
}

type TestCommandOptions

type TestCommandOptions struct {
	Args                           []string
	CloudClientExpectations        func(cloudClient *cloudmock.MockCloudServiceClient)
	AsyncPollerOptions             TestAsyncPollerOptions
	PromptOptions                  TestPromptOptions
	EditorOptions                  TestEditorOptions
	JSONOutput                     bool
	ExpectedError                  string
	ExpectedOutput                 string
	ExpectedOutputJson             any
	ExpectedOutputJsonEmitDefaults bool
}

type TestEditorOptions

type TestEditorOptions struct {
	Modified    proto.Message
	EditorError error
}

type TestPromptOptions

type TestPromptOptions struct {
	ExpectPrompApply          bool
	ExpectPromptApplyExisting proto.Message
	ExpectPromptApplyModified proto.Message
	ExpectPromptApplyVerbose  bool

	ExpectPromptYes        bool
	ExpectPromptYesMessage string

	PromptResult bool
	PromptError  error
}

type UpdateAuditLogSinkKinesisParams

type UpdateAuditLogSinkKinesisParams struct {
	Name             string
	RoleName         string
	DestinationURI   string
	Region           string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type UpdateAuditLogSinkPubSubParams

type UpdateAuditLogSinkPubSubParams struct {
	Name             string
	ServiceAccountID string
	TopicName        string
	GCPProjectID     string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type UpdateAzureBlobExportSinkParams added in v0.0.4

type UpdateAzureBlobExportSinkParams struct {
	Namespace        string
	SinkName         string
	TenantID         string
	SubscriptionID   string
	ResourceGroup    string
	StorageAccount   string
	ContainerName    string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type UpdateGCSExportSinkParams

type UpdateGCSExportSinkParams struct {
	Namespace        string
	SinkName         string
	SaID             string
	BucketName       string
	GcpProjectID     string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type UpdateS3ExportSinkParams

type UpdateS3ExportSinkParams struct {
	Namespace        string
	SinkName         string
	RoleName         string
	BucketName       string
	AwsAccountID     string
	KmsArn           string
	ResourceVersion  string
	AsyncOperationID string

	Cloud            cloudservice.CloudServiceClient
	Prompter         Prompter
	OperationHandler AsyncOperationHandler
}

type UserIdentificationOptions

type UserIdentificationOptions struct {
	UserId    string
	UserEmail string
	FlagSet   *pflag.FlagSet
}

func (*UserIdentificationOptions) BuildFlags

func (v *UserIdentificationOptions) BuildFlags(f *pflag.FlagSet)

type ValidateAuditLogSinkKinesisParams

type ValidateAuditLogSinkKinesisParams struct {
	RoleName       string
	DestinationURI string
	Region         string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type ValidateAuditLogSinkPubSubParams

type ValidateAuditLogSinkPubSubParams struct {
	ServiceAccountID string
	TopicName        string
	GCPProjectID     string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type ValidateAzureBlobExportSinkParams added in v0.0.4

type ValidateAzureBlobExportSinkParams struct {
	Namespace      string
	SinkName       string
	TenantID       string
	SubscriptionID string
	ResourceGroup  string
	StorageAccount string
	ContainerName  string
	Region         string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type ValidateGCSExportSinkParams

type ValidateGCSExportSinkParams struct {
	Namespace    string
	SinkName     string
	SaID         string
	BucketName   string
	GcpProjectID string
	Region       string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

type ValidateS3ExportSinkParams

type ValidateS3ExportSinkParams struct {
	Namespace    string
	SinkName     string
	RoleName     string
	BucketName   string
	Region       string
	AwsAccountID string
	KmsArn       string

	Cloud   cloudservice.CloudServiceClient
	Printer *printer.Printer
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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