Documentation ¶
Index ¶
- Constants
- func DisplayCommandNextSteps(c *cli.Config, workload *cartov1alpha1.Workload)
- func NewClusterSupplyChainCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewClusterSupplyChainGetCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewClusterSupplyChainListCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewDocsCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewLocalSourceProxyCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewLocalSourceProxyHealthCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewWorkloadApplyCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewWorkloadCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewWorkloadCreateCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewWorkloadDeleteCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewWorkloadGetCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewWorkloadListCommand(ctx context.Context, c *cli.Config) *cobra.Command
- func NewWorkloadTailCommand(ctx context.Context, c *cli.Config) *cobra.Command
- type ClusterSupplyChainGetOptions
- type ClusterSupplyChainListOptions
- type DocsOptions
- type LocalSourceProxyHealthOptions
- type WorkloadApplyOptions
- type WorkloadCreateOptions
- type WorkloadDeleteOptions
- type WorkloadGetOptions
- type WorkloadListOptions
- type WorkloadOptions
- func (opts *WorkloadOptions) ApplyOptionsToWorkload(ctx context.Context, currentWorkload, workload *cartov1alpha1.Workload) context.Context
- func (opts *WorkloadOptions) Create(ctx context.Context, c *cli.Config, workload *cartov1alpha1.Workload) (bool, error)
- func (opts *WorkloadOptions) DefineEnvVars(ctx context.Context, c *cli.Config, cmd *cobra.Command)
- func (opts *WorkloadOptions) DefineFlags(ctx context.Context, c *cli.Config, cmd *cobra.Command)
- func (opts *WorkloadOptions) LoadDefaults(c *cli.Config)
- func (opts *WorkloadOptions) LoadInputWorkload(input io.Reader, workload *cartov1alpha1.Workload) error
- func (opts *WorkloadOptions) ManageLocalSourceProxyAnnotation(fileWorkload, currentWorkload, workload *cartov1alpha1.Workload)
- func (opts *WorkloadOptions) OutputWorkload(c *cli.Config, workload *cartov1alpha1.Workload) error
- func (opts *WorkloadOptions) PublishLocalSource(ctx context.Context, c *cli.Config, ...) error
- func (opts *WorkloadOptions) Update(ctx context.Context, c *cli.Config, currentWorkload *cartov1alpha1.Workload, ...) (bool, error)
- func (opts *WorkloadOptions) Validate(ctx context.Context) validation.FieldErrors
- type WorkloadTailOptions
- type WorkloadTimeoutStashKey
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 NewClusterSupplyChainGetCommand ¶ added in v0.7.0
func NewLocalSourceProxyCommand ¶ added in v0.12.0
func NewLocalSourceProxyHealthCommand ¶ added in v0.12.0
func NewWorkloadApplyCommand ¶
func NewWorkloadCommand ¶
func NewWorkloadGetCommand ¶
func NewWorkloadListCommand ¶
Types ¶
type ClusterSupplyChainGetOptions ¶ added in v0.7.0
type ClusterSupplyChainGetOptions struct {
Name string
}
func (*ClusterSupplyChainGetOptions) Validate ¶ added in v0.7.0
func (opts *ClusterSupplyChainGetOptions) Validate(ctx context.Context) validation.FieldErrors
type ClusterSupplyChainListOptions ¶
type ClusterSupplyChainListOptions struct { }
func (*ClusterSupplyChainListOptions) Validate ¶
func (opts *ClusterSupplyChainListOptions) Validate(ctx context.Context) validation.FieldErrors
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) Validate ¶ added in v0.12.0
func (opts *LocalSourceProxyHealthOptions) Validate(ctx context.Context) validation.FieldErrors
type WorkloadApplyOptions ¶
type WorkloadApplyOptions struct { WorkloadOptions UpdateStrategy string }
func (*WorkloadApplyOptions) IsDryRun ¶
func (opts *WorkloadApplyOptions) IsDryRun() bool
func (*WorkloadApplyOptions) Validate ¶
func (opts *WorkloadApplyOptions) Validate(ctx context.Context) validation.FieldErrors
type WorkloadCreateOptions ¶
type WorkloadCreateOptions struct {
WorkloadOptions
}
func (*WorkloadCreateOptions) IsDryRun ¶
func (opts *WorkloadCreateOptions) IsDryRun() bool
func (*WorkloadCreateOptions) Validate ¶
func (opts *WorkloadCreateOptions) Validate(ctx context.Context) validation.FieldErrors
type WorkloadDeleteOptions ¶
type WorkloadDeleteOptions struct { Namespace string Names []string All bool FilePath string Wait bool WaitTimeout time.Duration Yes bool }
func (*WorkloadDeleteOptions) Validate ¶
func (opts *WorkloadDeleteOptions) Validate(_ context.Context) validation.FieldErrors
type WorkloadGetOptions ¶
func (*WorkloadGetOptions) Validate ¶
func (opts *WorkloadGetOptions) Validate(ctx context.Context) validation.FieldErrors
type WorkloadListOptions ¶
func (*WorkloadListOptions) Validate ¶
func (opts *WorkloadListOptions) Validate(ctx context.Context) validation.FieldErrors
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 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 (*WorkloadOptions) DefineFlags ¶
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 ¶
func (opts *WorkloadOptions) Validate(ctx context.Context) validation.FieldErrors
type WorkloadTailOptions ¶
type WorkloadTailOptions struct { Namespace string Name string Component string Since time.Duration Timestamps bool }
func (*WorkloadTailOptions) Validate ¶
func (opts *WorkloadTailOptions) Validate(ctx context.Context) validation.FieldErrors
type WorkloadTimeoutStashKey ¶ added in v0.12.0
type WorkloadTimeoutStashKey struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.