Documentation
¶
Index ¶
- func NewCaptainCommand(streams genericclioptions.IOStreams) *cobra.Command
- func NewCreateCommand() *cobra.Command
- func NewCreateRepoCommand() *cobra.Command
- func NewGetManifestCommand() *cobra.Command
- func NewImportCommand() *cobra.Command
- func NewResyncRepoCommand() *cobra.Command
- func NewRollbackCommand() *cobra.Command
- func NewUpgradeCommand() *cobra.Command
- func NewVersionCommand() *cobra.Command
- type CreateOption
- type CreateRepoOption
- type GetManifestOption
- type ImportOptions
- type ResyncRepoOption
- type RollbackOption
- type UpgradeOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCaptainCommand ¶
func NewCaptainCommand(streams genericclioptions.IOStreams) *cobra.Command
NewCaptainCommand init captain command
func NewCreateCommand ¶
func NewCreateRepoCommand ¶
func NewGetManifestCommand ¶ added in v1.1.7
func NewImportCommand ¶
func NewResyncRepoCommand ¶ added in v1.1.0
func NewRollbackCommand ¶
func NewUpgradeCommand ¶
func NewVersionCommand ¶ added in v1.0.0
Types ¶
type CreateOption ¶
type CreateOption struct {
// contains filtered or unexported fields
}
func NewCreateOption ¶
func NewCreateOption() *CreateOption
func (*CreateOption) Complete ¶
func (opts *CreateOption) Complete(pctx *plugin.CaptainContext) error
func (*CreateOption) Run ¶
func (opts *CreateOption) Run(args []string) (err error)
Run do the real update 1. save the old spec to annotation 2. update
func (*CreateOption) Validate ¶
func (opts *CreateOption) Validate() error
type CreateRepoOption ¶
type CreateRepoOption struct {
// contains filtered or unexported fields
}
func NewCreateRepoOption ¶
func NewCreateRepoOption() *CreateRepoOption
func (*CreateRepoOption) Complete ¶
func (opts *CreateRepoOption) Complete(pctx *plugin.CaptainContext) error
func (*CreateRepoOption) Run ¶
func (opts *CreateRepoOption) Run(args []string) (err error)
Run do the real update 1. save the old spec to annotation 2. update
func (*CreateRepoOption) Validate ¶
func (opts *CreateRepoOption) Validate() error
type GetManifestOption ¶ added in v1.1.7
type GetManifestOption struct {
// contains filtered or unexported fields
}
func NewGetManifestOption ¶ added in v1.1.7
func NewGetManifestOption() *GetManifestOption
func (*GetManifestOption) Complete ¶ added in v1.1.7
func (opts *GetManifestOption) Complete(pctx *plugin.CaptainContext) error
func (*GetManifestOption) Run ¶ added in v1.1.7
func (opts *GetManifestOption) Run(args []string) (err error)
Run rollback a helmrequest
func (*GetManifestOption) Validate ¶ added in v1.1.7
func (opts *GetManifestOption) Validate() error
type ImportOptions ¶
type ImportOptions struct {
// contains filtered or unexported fields
}
func NewImportOptions ¶
func NewImportOptions() *ImportOptions
func (*ImportOptions) Complete ¶
func (opts *ImportOptions) Complete(pctx *plugin.CaptainContext) error
func (*ImportOptions) Run ¶
func (opts *ImportOptions) Run(args []string) (err error)
Run import a helm release to a HelmRequest, create ChartRepo if not exist
func (*ImportOptions) Validate ¶
func (opts *ImportOptions) Validate() error
type ResyncRepoOption ¶ added in v1.1.0
type ResyncRepoOption struct {
// contains filtered or unexported fields
}
func NewResyncRepoOption ¶ added in v1.1.0
func NewResyncRepoOption() *ResyncRepoOption
func (*ResyncRepoOption) Complete ¶ added in v1.1.0
func (opts *ResyncRepoOption) Complete(pctx *plugin.CaptainContext) error
func (*ResyncRepoOption) Run ¶ added in v1.1.0
func (opts *ResyncRepoOption) Run(args []string) (err error)
Run do the real resync update status to pending and wati for it to be ready
func (*ResyncRepoOption) Validate ¶ added in v1.1.0
func (opts *ResyncRepoOption) Validate() error
type RollbackOption ¶
type RollbackOption struct {
// contains filtered or unexported fields
}
func NewRollbackOption ¶
func NewRollbackOption() *RollbackOption
func (*RollbackOption) Complete ¶
func (opts *RollbackOption) Complete(pctx *plugin.CaptainContext) error
func (*RollbackOption) Run ¶
func (opts *RollbackOption) Run(args []string) (err error)
Run rollback a helmrequest
func (*RollbackOption) Validate ¶
func (opts *RollbackOption) Validate() error
type UpgradeOption ¶
type UpgradeOption struct {
// contains filtered or unexported fields
}
func NewUpdateOption ¶
func NewUpdateOption() *UpgradeOption
func (*UpgradeOption) Complete ¶
func (opts *UpgradeOption) Complete(pctx *plugin.CaptainContext) error
func (*UpgradeOption) Run ¶
func (opts *UpgradeOption) Run(args []string) (err error)
Run do the real update 1. save the old spec to annotation 2. update
func (*UpgradeOption) Validate ¶
func (opts *UpgradeOption) Validate() error
Click to show internal directories.
Click to hide internal directories.