instances

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddCmd

func NewAddCmd() *cobra.Command

NewAddCmd return the instances add subcommand

func NewCmd

func NewCmd() *cobra.Command

NewCmd returns instances subcommand

func NewDeleteCmd

func NewDeleteCmd() *cobra.Command

NewDeleteCmd return the instance of delete subcommand

func NewListCmd

func NewListCmd() *cobra.Command

NewListCmd return the instances list subcommand

Types

type AddCmd

type AddCmd struct {
	Command *cobra.Command
	Flags   *AddFlags
}

AddCmd struct represents Add command object

func (*AddCmd) ApplyFlags

func (cmd *AddCmd) ApplyFlags()

ApplyFlags apply command flags to cobra command

type AddFlags

type AddFlags struct {
	URL    string
	Secret string
}

AddFlags contains all Add command flags

func NewAddFlags

func NewAddFlags() *AddFlags

NewAddFlags initialize a new AddFlags object

type DeleteCmd

type DeleteCmd struct {
	Command *cobra.Command
	Flags   *DeleteFlags
}

DeleteCmd struct represents Delete command object

func (*DeleteCmd) ApplyFlags

func (cmd *DeleteCmd) ApplyFlags()

ApplyFlags apply command flags to cobra command

type DeleteFlags

type DeleteFlags struct {
	URL string
}

DeleteFlags contains all Delete command flags

func NewDeleteFlags

func NewDeleteFlags() *DeleteFlags

NewDeleteFlags initialize a new DeleteFlags object

type ListCmd

type ListCmd struct {
	Command *cobra.Command
	Flags   *ListFlags
}

ListCmd struct represents the list command object

func (*ListCmd) ApplyFlags

func (cmd *ListCmd) ApplyFlags()

ApplyFlags apply ListFlags to provided command

type ListFlags

type ListFlags struct {
	CSV  bool
	JSON bool
}

ListFlags contains all List command flags

func NewListFlags

func NewListFlags() *ListFlags

NewListFlags initialize a new ListFlags object

Jump to

Keyboard shortcuts

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