client

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncApplication

func SyncApplication(
	ctx context.Context,
	cli apiservice.Client,
	appID string,
	checkInterval, timeout time.Duration,
	logger *zap.Logger,
) (string, error)

SyncApplication sents a command to sync a given application and waits until it has been triggered. The deployment ID will be returned or an error.

func WaitDeploymentStatuses

func WaitDeploymentStatuses(
	ctx context.Context,
	cli apiservice.Client,
	deploymentID string,
	statuses []model.DeploymentStatus,
	checkInterval, timeout time.Duration,
	logger *zap.Logger,
) error

WaitDeploymentStatuses waits a given deployment until it reaches one of the specified statuses.

Types

type Options

type Options struct {
	Address    string
	APIKey     string
	APIKeyFile string
	Insecure   bool
	CertFile   string
}

func (*Options) NewClient

func (o *Options) NewClient(ctx context.Context) (apiservice.Client, error)

func (*Options) RegisterPersistentFlags

func (o *Options) RegisterPersistentFlags(cmd *cobra.Command)

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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