command

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login added in v0.27.4

func Login(authenticator http.UserAuthenticator) *cobra.Command

func NewCompletion added in v0.0.31

func NewCompletion(rootCmd *cobra.Command) *cobra.Command

func NewDescribe added in v0.0.33

func NewDescribe(client *httpinternal.Client, service *string) *cobra.Command

func NewPolicy

func NewPolicy(client *http.Client, service *string) *cobra.Command

func NewPromote

func NewPromote(client *httpinternal.Client, service *string, releaseClient ReleaseArtifact) *cobra.Command

func NewRelease

func NewRelease(client *httpinternal.Client, service *string, logger LoggerFunc, releaseClient ReleaseArtifactMultipleEnvironments) *cobra.Command

func NewRollback added in v0.0.10

func NewRollback(
	client *httpinternal.Client,
	service *string,
	logger LoggerFunc,
	selectReleaseUI SelectRollbackRelease,
	releaseClient ReleaseArtifact,
) *cobra.Command

func NewRoot added in v0.11.3

func NewRoot(version *string) (*cobra.Command, error)

NewRoot returns a new instance of a hamctl command.

func NewStatus

func NewStatus(client *httpinternal.Client, service *string) *cobra.Command

func NewVersion added in v0.11.3

func NewVersion(version string) *cobra.Command

func SelectRollbackReleaseFunc added in v0.24.0

func SelectRollbackReleaseFunc(
	environment string,
	releases []httpinternal.DescribeReleaseResponseRelease,
) (int, error)

func Time

func Time(epoch int64) time.Time

Types

type LoggerFunc added in v0.12.0

type LoggerFunc = func(string, ...interface{})

type ReleaseArtifact added in v0.24.0

type ReleaseArtifact interface {
	ReleaseArtifactID(service, environment string, artifactID string, intent intent.Intent) (actions.ReleaseResult, error)
}

type ReleaseArtifactMultipleEnvironments added in v0.24.0

type ReleaseArtifactMultipleEnvironments interface {
	ReleaseArtifactIDMultipleEnvironments(service string, environments []string, artifactID string, intent intent.Intent) ([]actions.ReleaseResult, error)
}

type SelectRollbackRelease added in v0.24.0

type SelectRollbackRelease func(environment string, releases []httpinternal.DescribeReleaseResponseRelease) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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