application

package
v1.2.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const RecommendedCommandName = "app"

RecommendedCommandName is the recommended app command name

Variables

This section is empty.

Functions

func AddApplicationFlag

func AddApplicationFlag(cmd *cobra.Command)

AddApplicationFlag adds a `app` flag to the given cobra command Also adds a completion handler to the flag

func NewCmdApplication

func NewCmdApplication(name, fullName string) *cobra.Command

NewCmdApplication implements the odo application command

func NewCmdDelete

func NewCmdDelete(name, fullName string) *cobra.Command

NewCmdDelete implements the odo command.

func NewCmdDescribe

func NewCmdDescribe(name, fullName string) *cobra.Command

NewCmdDescribe implements the odo command.

func NewCmdList

func NewCmdList(name, fullName string) *cobra.Command

NewCmdList implements the odo command.

Types

type DeleteOptions

type DeleteOptions struct {
	*genericclioptions.Context
	// contains filtered or unexported fields
}

DeleteOptions encapsulates the options for the odo command

func NewDeleteOptions

func NewDeleteOptions() *DeleteOptions

NewDeleteOptions creates a new DeleteOptions instance

func (*DeleteOptions) Complete

func (o *DeleteOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)

Complete completes DeleteOptions after they've been created

func (*DeleteOptions) Run

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

Run contains the logic for the odo command

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate() (err error)

Validate validates the DeleteOptions based on completed values

type DescribeOptions

type DescribeOptions struct {
	*genericclioptions.Context
	// contains filtered or unexported fields
}

DescribeOptions encapsulates the options for the odo command

func NewDescribeOptions

func NewDescribeOptions() *DescribeOptions

NewDescribeOptions creates a new DescribeOptions instance

func (*DescribeOptions) Complete

func (o *DescribeOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)

Complete completes DescribeOptions after they've been created

func (*DescribeOptions) Run

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

Run contains the logic for the odo command

func (*DescribeOptions) Validate

func (o *DescribeOptions) Validate() (err error)

Validate validates the DescribeOptions based on completed values

type ListOptions

type ListOptions struct {
	*genericclioptions.Context
	// contains filtered or unexported fields
}

ListOptions encapsulates the options for the odo command

func NewListOptions

func NewListOptions() *ListOptions

NewListOptions creates a new ListOptions instance

func (*ListOptions) Complete

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

Complete completes ListOptions after they've been created

func (*ListOptions) Run

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

Run contains the logic for the odo command

func (*ListOptions) Validate

func (o *ListOptions) Validate() (err error)

Validate validates the ListOptions based on completed values

Jump to

Keyboard shortcuts

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