Documentation ¶
Index ¶
- func Command(opts *GenericOptions) *cobra.Command
- func DefaultMarshalIndent(value interface{}) ([]byte, error)
- func NewGetCommand(options *GenericOptions) *cobra.Command
- func NewListCommand(options *GenericOptions) *cobra.Command
- func NewRestartCommand(options *GenericOptions) *cobra.Command
- func NewStatusCommand(options *GenericOptions) *cobra.Command
- func OutputTaskListAsJSON(tasks []connect.Task) ([]byte, error)
- func OutputTaskListAsTable(tasks []connect.Task) ([]byte, error)
- func OutputTaskStateAsJSON(taskState *connect.TaskState) ([]byte, error)
- func OutputTaskStateAsTable(taskState *connect.TaskState) ([]byte, error)
- type Client
- type ClientFn
- type GenericOptions
- type GetOptions
- type ListOptions
- type OutputType
- type RestartOptions
- type StatusOptions
- type TaskListOutputFn
- type TaskStateOutputFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
func Command(opts *GenericOptions) *cobra.Command
func DefaultMarshalIndent ¶
func NewGetCommand ¶
func NewGetCommand(options *GenericOptions) *cobra.Command
func NewListCommand ¶
func NewListCommand(options *GenericOptions) *cobra.Command
func NewRestartCommand ¶
func NewRestartCommand(options *GenericOptions) *cobra.Command
func NewStatusCommand ¶
func NewStatusCommand(options *GenericOptions) *cobra.Command
func OutputTaskStateAsJSON ¶
Types ¶
type GenericOptions ¶
type GenericOptions struct { // Function for creating API client CreateClient ClientFn ClusterURL string ConnectorName string }
func (*GenericOptions) Validate ¶
func (o *GenericOptions) Validate() error
type GetOptions ¶
type GetOptions struct { *GenericOptions TaskID int Output string }
type ListOptions ¶
type ListOptions struct { // Use pointer here to make reference to the 'tasks' options. // Otherwise, the local copy of the config will be created an no // value from the flags will be set. It is caused by the global // scope nature of viper and multiple overrides of cluster flag // from the other commands. *GenericOptions Output string }
type OutputType ¶
type OutputType string
const ( OutputTypeJSON OutputType = "json" OutputTypeTable OutputType = "table" )
type RestartOptions ¶
type RestartOptions struct { *GenericOptions TaskID int }
func (*RestartOptions) Run ¶
func (o *RestartOptions) Run() error
type StatusOptions ¶
type StatusOptions struct { *GenericOptions TaskID int Output string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.