Documentation ¶
Index ¶
- Constants
- func ConfigDir() string
- func ConfigFilePath(context string) string
- func NewCmdCreate() *cobra.Command
- func NewCmdDelete() *cobra.Command
- func NewCmdGet() *cobra.Command
- func NewCmdVersion() *cobra.Command
- type CreateOptions
- type DeleteOptions
- type GetOptions
- type GlobalOptions
- type VersionOptions
Constants ¶
View Source
const (
SourceKind = "source"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigFilePath ¶
func NewCmdCreate ¶
func NewCmdDelete ¶
func NewCmdVersion ¶
Types ¶
type CreateOptions ¶
type CreateOptions struct {
GlobalOptions
}
func DefaultCreateOptions ¶
func DefaultCreateOptions() *CreateOptions
func (*CreateOptions) Bind ¶
func (o *CreateOptions) Bind(fs *pflag.FlagSet)
func (*CreateOptions) Complete ¶
func (o *CreateOptions) Complete(cmd *cobra.Command, args []string) error
func (*CreateOptions) Validate ¶
func (o *CreateOptions) Validate(args []string) error
type DeleteOptions ¶
type DeleteOptions struct {
GlobalOptions
}
func DefaultDeleteOptions ¶
func DefaultDeleteOptions() *DeleteOptions
func (*DeleteOptions) Bind ¶
func (o *DeleteOptions) Bind(fs *pflag.FlagSet)
func (*DeleteOptions) Complete ¶
func (o *DeleteOptions) Complete(cmd *cobra.Command, args []string) error
func (*DeleteOptions) Validate ¶
func (o *DeleteOptions) Validate(args []string) error
type GetOptions ¶
type GetOptions struct { GlobalOptions Output string }
func DefaultGetOptions ¶
func DefaultGetOptions() *GetOptions
func (*GetOptions) Bind ¶
func (o *GetOptions) Bind(fs *pflag.FlagSet)
func (*GetOptions) Complete ¶
func (o *GetOptions) Complete(cmd *cobra.Command, args []string) error
func (*GetOptions) Validate ¶
func (o *GetOptions) Validate(args []string) error
type GlobalOptions ¶
func DefaultGlobalOptions ¶
func DefaultGlobalOptions() GlobalOptions
func (*GlobalOptions) Bind ¶
func (o *GlobalOptions) Bind(fs *pflag.FlagSet)
func (*GlobalOptions) Complete ¶
func (o *GlobalOptions) Complete(cmd *cobra.Command, args []string) error
func (*GlobalOptions) Validate ¶
func (o *GlobalOptions) Validate(args []string) error
type VersionOptions ¶
type VersionOptions struct {
Output string
}
func DefaultVersionOptions ¶
func DefaultVersionOptions() *VersionOptions
Click to show internal directories.
Click to hide internal directories.