app

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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 NewCreateCommand() *cobra.Command

func NewCreateRepoCommand

func NewCreateRepoCommand() *cobra.Command

func NewGetManifestCommand added in v1.1.7

func NewGetManifestCommand() *cobra.Command

func NewImportCommand

func NewImportCommand() *cobra.Command

func NewResyncRepoCommand added in v1.1.0

func NewResyncRepoCommand() *cobra.Command

func NewRollbackCommand

func NewRollbackCommand() *cobra.Command

func NewUpgradeCommand

func NewUpgradeCommand() *cobra.Command

func NewVersionCommand added in v1.0.0

func NewVersionCommand() *cobra.Command

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

Jump to

Keyboard shortcuts

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