commands

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationReservedKey     = "annotations"
	MavenOverwrittenNoticeMsg = "Maven configuration flags have overwritten values provided by \"--params-yaml\"."
	WebTypeReservedKey        = "web"
	MavenFlagWildcard         = "--maven*"
	// --source-image can be a source for workload without local path and vice versa.
	LocalPathAndSource = "--local-path with/without --source-image"
)

Variables

This section is empty.

Functions

func DisplayCommandNextSteps added in v0.7.0

func DisplayCommandNextSteps(c *cli.Config, workload *cartov1alpha1.Workload)

func NewClusterSupplyChainCommand

func NewClusterSupplyChainCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewClusterSupplyChainGetCommand added in v0.7.0

func NewClusterSupplyChainGetCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewClusterSupplyChainListCommand

func NewClusterSupplyChainListCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewDocsCommand

func NewDocsCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewLocalSourceProxyCommand added in v0.12.0

func NewLocalSourceProxyCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewLocalSourceProxyHealthCommand added in v0.12.0

func NewLocalSourceProxyHealthCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewWorkloadApplyCommand

func NewWorkloadApplyCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewWorkloadCommand

func NewWorkloadCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewWorkloadCreateCommand

func NewWorkloadCreateCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewWorkloadDeleteCommand

func NewWorkloadDeleteCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewWorkloadGetCommand

func NewWorkloadGetCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewWorkloadListCommand

func NewWorkloadListCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewWorkloadTailCommand

func NewWorkloadTailCommand(ctx context.Context, c *cli.Config) *cobra.Command

Types

type ClusterSupplyChainGetOptions added in v0.7.0

type ClusterSupplyChainGetOptions struct {
	Name string
}

func (*ClusterSupplyChainGetOptions) Exec added in v0.7.0

func (*ClusterSupplyChainGetOptions) Validate added in v0.7.0

type ClusterSupplyChainListOptions

type ClusterSupplyChainListOptions struct {
}

func (*ClusterSupplyChainListOptions) Exec

func (*ClusterSupplyChainListOptions) Validate

type DocsOptions

type DocsOptions struct {
	Directory string
}

func (*DocsOptions) Validate

func (opts *DocsOptions) Validate(ctx context.Context) validation.FieldErrors

type LocalSourceProxyHealthOptions added in v0.12.0

type LocalSourceProxyHealthOptions struct {
	Output string
}

func (*LocalSourceProxyHealthOptions) Exec added in v0.12.0

func (*LocalSourceProxyHealthOptions) Validate added in v0.12.0

type WorkloadApplyOptions

type WorkloadApplyOptions struct {
	WorkloadOptions
	UpdateStrategy string
}

func (*WorkloadApplyOptions) Exec

func (opts *WorkloadApplyOptions) Exec(ctx context.Context, c *cli.Config) error

func (*WorkloadApplyOptions) IsDryRun

func (opts *WorkloadApplyOptions) IsDryRun() bool

func (*WorkloadApplyOptions) Validate

type WorkloadCreateOptions

type WorkloadCreateOptions struct {
	WorkloadOptions
}

func (*WorkloadCreateOptions) Exec

func (opts *WorkloadCreateOptions) Exec(ctx context.Context, c *cli.Config) error

func (*WorkloadCreateOptions) IsDryRun

func (opts *WorkloadCreateOptions) IsDryRun() bool

func (*WorkloadCreateOptions) Validate

type WorkloadDeleteOptions

type WorkloadDeleteOptions struct {
	Namespace string
	Names     []string
	All       bool

	FilePath string

	Wait        bool
	WaitTimeout time.Duration
	Yes         bool
}

func (*WorkloadDeleteOptions) Exec

func (opts *WorkloadDeleteOptions) Exec(ctx context.Context, c *cli.Config) error

func (*WorkloadDeleteOptions) Validate

type WorkloadGetOptions

type WorkloadGetOptions struct {
	Namespace string
	Name      string

	Export bool
	Output string
}

func (*WorkloadGetOptions) Exec

func (opts *WorkloadGetOptions) Exec(ctx context.Context, c *cli.Config) error

func (*WorkloadGetOptions) Validate

type WorkloadListOptions

type WorkloadListOptions struct {
	Namespace     string
	AllNamespaces bool
	App           string
	Output        string
}

func (*WorkloadListOptions) Exec

func (opts *WorkloadListOptions) Exec(ctx context.Context, c *cli.Config) error

func (*WorkloadListOptions) Validate

type WorkloadOptions

type WorkloadOptions struct {
	Namespace string
	Name      string

	App         string
	Type        string
	Labels      []string
	Annotations []string
	Params      []string
	ParamsYaml  []string
	Debug       bool
	LiveUpdate  bool

	FilePath        string
	GitRepo         string
	GitCommit       string
	GitBranch       string
	GitTag          string
	SourceImage     string
	LocalPath       string
	ExcludePathFile string
	Image           string
	SubPath         string
	BuildEnv        []string
	Env             []string
	ServiceRefs     []string

	ServiceAccountName string

	LimitCPU    string
	LimitMemory string

	MavenGroup    string
	MavenArtifact string
	MavenVersion  string
	MavenType     string

	CACertPaths      []string
	RegistryUsername string
	RegistryPassword string
	RegistryToken    string

	RequestCPU    string
	RequestMemory string

	Wait           bool
	WaitTimeout    time.Duration
	DelayTime      time.Duration
	Tail           bool
	TailTimestamps bool
	DryRun         bool
	Yes            bool
	Output         string
}

func (*WorkloadOptions) ApplyOptionsToWorkload

func (opts *WorkloadOptions) ApplyOptionsToWorkload(ctx context.Context, currentWorkload, workload *cartov1alpha1.Workload) context.Context

func (*WorkloadOptions) Create

func (opts *WorkloadOptions) Create(ctx context.Context, c *cli.Config, workload *cartov1alpha1.Workload) (bool, error)

func (*WorkloadOptions) DefineEnvVars added in v0.9.0

func (opts *WorkloadOptions) DefineEnvVars(ctx context.Context, c *cli.Config, cmd *cobra.Command)

func (*WorkloadOptions) DefineFlags

func (opts *WorkloadOptions) DefineFlags(ctx context.Context, c *cli.Config, cmd *cobra.Command)

func (*WorkloadOptions) LoadDefaults added in v0.7.0

func (opts *WorkloadOptions) LoadDefaults(c *cli.Config)

func (*WorkloadOptions) LoadInputWorkload

func (opts *WorkloadOptions) LoadInputWorkload(input io.Reader, workload *cartov1alpha1.Workload) error

func (*WorkloadOptions) ManageLocalSourceProxyAnnotation added in v0.12.0

func (opts *WorkloadOptions) ManageLocalSourceProxyAnnotation(fileWorkload, currentWorkload, workload *cartov1alpha1.Workload)

func (*WorkloadOptions) OutputWorkload added in v0.11.0

func (opts *WorkloadOptions) OutputWorkload(c *cli.Config, workload *cartov1alpha1.Workload) error

func (*WorkloadOptions) PublishLocalSource

func (opts *WorkloadOptions) PublishLocalSource(ctx context.Context, c *cli.Config, currentWorkload, workload *cartov1alpha1.Workload, shouldPrint bool) error

PublishLocalSource packages the specified source code in the --local-path flag and creates an image that will be eventually published to the registry specified in the --source-image flag. If there is no --source-image specified, then it will push to Local Source Proxy Returns a boolean that indicates if user does actually want to publish the image and an error in case of failure

func (*WorkloadOptions) Update

func (opts *WorkloadOptions) Update(ctx context.Context, c *cli.Config, currentWorkload *cartov1alpha1.Workload, workload *cartov1alpha1.Workload) (bool, error)

func (*WorkloadOptions) Validate

type WorkloadTailOptions

type WorkloadTailOptions struct {
	Namespace string
	Name      string

	Component  string
	Since      time.Duration
	Timestamps bool
}

func (*WorkloadTailOptions) Exec

func (opts *WorkloadTailOptions) Exec(ctx context.Context, c *cli.Config) error

func (*WorkloadTailOptions) Validate

type WorkloadTimeoutStashKey added in v0.12.0

type WorkloadTimeoutStashKey struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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