Documentation
¶
Index ¶
- func NewCmdList(streams genericiooptions.IOStreams) *cobra.Command
- func NewCmdRel(streams genericiooptions.IOStreams) *cobra.Command
- func NewCmdShow(streams genericiooptions.IOStreams) *cobra.Command
- func NewCmdUnlock(streams genericiooptions.IOStreams) *cobra.Command
- type ListFlags
- type ListOptions
- type ShowFlags
- type ShowOptions
- type UnlockFlags
- type UnlockOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdList ¶ added in v0.13.0
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 ¶ added in v0.13.0
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 ¶ added in v0.13.0
ListFlags reflects the information that CLI is gathering via flags, which will be converted into ListOptions.
func NewListFlags ¶ added in v0.13.0
func NewListFlags(streams genericiooptions.IOStreams) *ListFlags
NewListFlags returns a default ListFlags.
func (*ListFlags) ToOptions ¶ added in v0.13.0
func (f *ListFlags) ToOptions() (*ListOptions, error)
ToOptions converts from CLI inputs to runtime inputs.
type ListOptions ¶ added in v0.13.0
type ListOptions struct {
*meta.MetaOptions
}
ListOptions defines the configuration parameters for the `kusion release list` command.
func (*ListOptions) Run ¶ added in v0.13.0
func (o *ListOptions) Run() error
Run executes the `kusion release list` command.
type ShowFlags ¶ added in v0.13.0
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 ¶ added in v0.13.0
func NewShowFlags(_ genericiooptions.IOStreams) *ShowFlags
NewShowFlags returns a default ShowFlags.
func (*ShowFlags) AddFlags ¶ added in v0.13.0
AddFlags adds flags for a ShowOptions struct to the specified command.
func (*ShowFlags) ToOptions ¶ added in v0.13.0
func (f *ShowFlags) ToOptions() (*ShowOptions, error)
ToOptions converts ShowFlags to ShowOptions.
type ShowOptions ¶ added in v0.13.0
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 ¶ added in v0.13.0
func (o *ShowOptions) Run() (err error)
Run executes the `kusion release show` command.
type UnlockFlags ¶
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.