Documentation ¶
Index ¶
Constants ¶
const CmdRootTemplate = `` /* 2222-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdGenerate ¶
type CmdGenerate struct { machinery.TemplateMixin machinery.BoilerplateMixin machinery.RepositoryMixin // input variables Initializer workloadv1.WorkloadInitializer // template variables GenerateCommandName string GenerateCommandDescr string }
CmdGenerate scaffolds the companion CLI's generate subcommand for component workloads. The generate logic will live in the workload's subcommand to this command; see cmd_generate_sub.go.
func (*CmdGenerate) SetTemplateDefaults ¶
func (f *CmdGenerate) SetTemplateDefaults() error
type CmdGenerateSub ¶
type CmdGenerateSub struct { machinery.TemplateMixin machinery.BoilerplateMixin machinery.RepositoryMixin machinery.ResourceMixin // input fields Builder workloadv1.WorkloadAPIBuilder GenerateCommandName string GenerateCommandDescr string GenerateFuncInputs string // contains filtered or unexported fields }
CmdGenerateSub scaffolds the companion CLI's generate subcommand for the workload. This where the actual generate logic lives.
func (*CmdGenerateSub) SetTemplateDefaults ¶
func (f *CmdGenerateSub) SetTemplateDefaults() error
type CmdGenerateSubUpdater ¶ added in v0.5.0
type CmdGenerateSubUpdater struct { machinery.RepositoryMixin machinery.MultiGroupMixin machinery.ResourceMixin // input fields Builder workloadv1.WorkloadAPIBuilder PackageName string // contains filtered or unexported fields }
CmdGenerateSubUpdater updates a specific components version subcommand with appropriate initialization information.
func (*CmdGenerateSubUpdater) GetCodeFragments ¶ added in v0.5.0
func (f *CmdGenerateSubUpdater) GetCodeFragments() machinery.CodeFragmentsMap
GetCodeFragments implements file.Inserter interface.
func (*CmdGenerateSubUpdater) GetIfExistsAction ¶ added in v0.5.0
func (*CmdGenerateSubUpdater) GetIfExistsAction() machinery.IfExistsAction
GetIfExistsAction implements file.Builder interface.
func (*CmdGenerateSubUpdater) GetMarkers ¶ added in v0.5.0
func (f *CmdGenerateSubUpdater) GetMarkers() []machinery.Marker
GetMarkers implements file.Inserter interface.
func (*CmdGenerateSubUpdater) GetPath ¶ added in v0.5.0
func (f *CmdGenerateSubUpdater) GetPath() string
GetPath implements file.Builder interface.
type CmdInit ¶
type CmdInit struct { machinery.TemplateMixin machinery.BoilerplateMixin // input variables Initializer workloadv1.WorkloadInitializer // template variables InitCommandName string InitCommandDescr string }
CmdInit scaffolds the companion CLI's init subcommand for component workloads. The init logic will live in the workload's subcommand to this command; see cmd_init_sub.go.
func (*CmdInit) SetTemplateDefaults ¶
type CmdInitSub ¶
type CmdInitSub struct { machinery.TemplateMixin machinery.BoilerplateMixin machinery.ResourceMixin machinery.RepositoryMixin // input fields Builder workloadv1.WorkloadAPIBuilder InitCommandName string InitCommandDescr string // contains filtered or unexported fields }
CmdInitSub scaffolds the companion CLI's init subcommand for the workload. This where the actual init logic lives.
func (*CmdInitSub) SetTemplateDefaults ¶
func (f *CmdInitSub) SetTemplateDefaults() error
type CmdInitSubUpdater ¶ added in v0.5.0
type CmdInitSubUpdater struct { machinery.RepositoryMixin machinery.MultiGroupMixin machinery.ResourceMixin // input fields Builder workloadv1.WorkloadAPIBuilder // contains filtered or unexported fields }
CmdInitSubUpdater updates a specific components init subcommand with appropriate initialization information.
func (*CmdInitSubUpdater) GetCodeFragments ¶ added in v0.5.0
func (f *CmdInitSubUpdater) GetCodeFragments() machinery.CodeFragmentsMap
GetCodeFragments implements file.Inserter interface.
func (*CmdInitSubUpdater) GetIfExistsAction ¶ added in v0.5.0
func (*CmdInitSubUpdater) GetIfExistsAction() machinery.IfExistsAction
GetIfExistsAction implements file.Builder interface.
func (*CmdInitSubUpdater) GetMarkers ¶ added in v0.5.0
func (f *CmdInitSubUpdater) GetMarkers() []machinery.Marker
GetMarkers implements file.Inserter interface.
func (*CmdInitSubUpdater) GetPath ¶ added in v0.5.0
func (f *CmdInitSubUpdater) GetPath() string
GetPath implements file.Builder interface.
type CmdRoot ¶
type CmdRoot struct { machinery.TemplateMixin machinery.BoilerplateMixin machinery.RepositoryMixin // input variables Initializer workloadv1.WorkloadInitializer // template variables RootCmd workloadv1.CliCommand IsCollection bool }
CmdRoot scaffolds the root command file for the companion CLI.
func (*CmdRoot) SetTemplateDefaults ¶
type CmdRootUpdater ¶
type CmdRootUpdater struct { machinery.RepositoryMixin machinery.MultiGroupMixin machinery.ResourceMixin // input variables Builder workloadv1.WorkloadAPIBuilder InitCommand bool GenerateCommand bool VersionCommand bool // template variables RootCmdName string }
CmdRootUpdater updates root.go to run sub commands.
func (*CmdRootUpdater) GetCodeFragments ¶
func (f *CmdRootUpdater) GetCodeFragments() machinery.CodeFragmentsMap
GetCodeFragments implements file.Inserter interface.
func (*CmdRootUpdater) GetIfExistsAction ¶
func (*CmdRootUpdater) GetIfExistsAction() machinery.IfExistsAction
GetIfExistsAction implements file.Builder interface.
func (*CmdRootUpdater) GetMarkers ¶
func (f *CmdRootUpdater) GetMarkers() []machinery.Marker
GetMarkers implements file.Inserter interface.
func (*CmdRootUpdater) GetPath ¶
func (f *CmdRootUpdater) GetPath() string
GetPath implements file.Builder interface.
type CmdVersion ¶ added in v0.5.0
type CmdVersion struct { machinery.TemplateMixin machinery.BoilerplateMixin // input variables Initializer workloadv1.WorkloadInitializer // template variables VersionCommandName string VersionCommandDescr string }
CmdVersion scaffolds the companion CLI's version subcommand for component workloads. The version logic will live in the workload's subcommand to this command; see cmd_version_sub.go.
func (*CmdVersion) SetTemplateDefaults ¶ added in v0.5.0
func (f *CmdVersion) SetTemplateDefaults() error
type CmdVersionSub ¶ added in v0.5.0
type CmdVersionSub struct { machinery.TemplateMixin machinery.BoilerplateMixin machinery.ResourceMixin machinery.RepositoryMixin // input fields Builder workloadv1.WorkloadAPIBuilder VersionCommandName string VersionCommandDescr string // contains filtered or unexported fields }
CmdVersionSub scaffolds the root command file for the companion CLI.
func (*CmdVersionSub) SetTemplateDefaults ¶ added in v0.5.0
func (f *CmdVersionSub) SetTemplateDefaults() error
type CmdVersionSubUpdater ¶ added in v0.5.0
type CmdVersionSubUpdater struct { machinery.RepositoryMixin machinery.MultiGroupMixin machinery.ResourceMixin // input fields Builder workloadv1.WorkloadAPIBuilder // contains filtered or unexported fields }
CmdVersionSubUpdater updates a specific components version subcommand with appropriate version information.
func (*CmdVersionSubUpdater) GetCodeFragments ¶ added in v0.5.0
func (f *CmdVersionSubUpdater) GetCodeFragments() machinery.CodeFragmentsMap
GetCodeFragments implements file.Inserter interface.
func (*CmdVersionSubUpdater) GetIfExistsAction ¶ added in v0.5.0
func (*CmdVersionSubUpdater) GetIfExistsAction() machinery.IfExistsAction
GetIfExistsAction implements file.Builder interface.
func (*CmdVersionSubUpdater) GetMarkers ¶ added in v0.5.0
func (f *CmdVersionSubUpdater) GetMarkers() []machinery.Marker
GetMarkers implements file.Inserter interface.
func (*CmdVersionSubUpdater) GetPath ¶ added in v0.5.0
func (f *CmdVersionSubUpdater) GetPath() string
GetPath implements file.Builder interface.
type Main ¶
type Main struct { machinery.TemplateMixin machinery.BoilerplateMixin machinery.RepositoryMixin RootCmd workloadv1.CliCommand }
Main scaffolds the main package for the companion CLI.