rel

package
v0.13.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdList

func NewCmdList(streams genericiooptions.IOStreams) *cobra.Command

NewCmdList creates the `kusion release list` command.

func NewCmdRel

func NewCmdRel(streams genericiooptions.IOStreams) *cobra.Command

NewCmdRel returns an initialized Command instance for 'release' sub command.

func NewCmdShow

func NewCmdShow(streams genericiooptions.IOStreams) *cobra.Command

NewCmdShow creates the `kusion release show` command.

func NewCmdUnlock

func NewCmdUnlock(streams genericiooptions.IOStreams) *cobra.Command

NewCmdUnlock creates the `kusion release unlock` command.

Types

type ListFlags

type ListFlags struct {
	MetaFlags *meta.MetaFlags
}

ListFlags reflects the information that CLI is gathering via flags, which will be converted into ListOptions.

func NewListFlags

func NewListFlags(streams genericiooptions.IOStreams) *ListFlags

NewListFlags returns a default ListFlags.

func (*ListFlags) AddFlags

func (f *ListFlags) AddFlags(cmd *cobra.Command)

AddFlags registers flags for the CLI.

func (*ListFlags) ToOptions

func (f *ListFlags) ToOptions() (*ListOptions, error)

ToOptions converts from CLI inputs to runtime inputs.

type ListOptions

type ListOptions struct {
	*meta.MetaOptions
}

ListOptions defines the configuration parameters for the `kusion release list` command.

func (*ListOptions) Run

func (o *ListOptions) Run() error

Run executes the `kusion release list` command.

func (*ListOptions) Validate

func (o *ListOptions) Validate(cmd *cobra.Command, args []string) error

Validate verifies if ListOptions are valid and without conflicts.

type ShowFlags

type ShowFlags struct {
	Revision  *uint64
	Project   *string
	Workspace *string
	Backend   *string
	Output    string
}

ShowFlags reflects the information that CLI is gathering via flags, which will be converted into ShowOptions.

func NewShowFlags

func NewShowFlags(_ genericiooptions.IOStreams) *ShowFlags

NewShowFlags returns a default ShowFlags.

func (*ShowFlags) AddFlags

func (f *ShowFlags) AddFlags(cmd *cobra.Command)

AddFlags adds flags for a ShowOptions struct to the specified command.

func (*ShowFlags) ToOptions

func (f *ShowFlags) ToOptions() (*ShowOptions, error)

ToOptions converts ShowFlags to ShowOptions.

type ShowOptions

type ShowOptions struct {
	Revision       *uint64
	Project        *string
	Workspace      *string
	ReleaseStorage release.Storage
	Output         string
}

ShowOptions defines the configuration parameters for the `kusion release show` command.

func (*ShowOptions) Run

func (o *ShowOptions) Run() (err error)

Run executes the `kusion release show` command.

func (*ShowOptions) Validate

func (o *ShowOptions) Validate(cmd *cobra.Command, args []string) error

Validate checks the provided options for the `kusion release show` command.

type UnlockFlags

type UnlockFlags struct {
	MetaFlags *meta.MetaFlags
}

UnlockFlags reflects the information that CLI is gathering via flags, which will be converted into UnlockOptions.

func NewUnlockFlags

func NewUnlockFlags(streams genericiooptions.IOStreams) *UnlockFlags

NewUnlockFlags returns a default UnlockFlags.

func (*UnlockFlags) AddFlags

func (f *UnlockFlags) AddFlags(cmd *cobra.Command)

AddFlags registers flags for the CLI.

func (*UnlockFlags) ToOptions

func (f *UnlockFlags) ToOptions() (*UnlockOptions, error)

ToOptions converts from CLI inputs to runtime inputs.

type UnlockOptions

type UnlockOptions struct {
	*meta.MetaOptions
}

UnlockOptions defines the configuration parameters for the `kusion release unlock` command.

func (*UnlockOptions) Run

func (o *UnlockOptions) Run() error

Run executes the `kusion release unlock` command.

func (*UnlockOptions) Validate

func (o *UnlockOptions) Validate(cmd *cobra.Command, args []string) error

Validate verifies if UnlockOptions are valid and without conflicts.

Jump to

Keyboard shortcuts

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