project

package
Version: 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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const RecommendedCommandName = "project"

RecommendedCommandName is the recommended project command name

Variables

This section is empty.

Functions

func AddProjectFlag

func AddProjectFlag(cmd *cobra.Command)

AddProjectFlag adds a `project` flag to the given cobra command Also adds a completion handler to the flag

func NewCmdProject

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

NewCmdProject implements the project odo command

func NewCmdProjectCreate

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

NewCmdProjectCreate creates the project create command

func NewCmdProjectDelete

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

NewCmdProjectDelete creates the project delete command

func NewCmdProjectGet

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

NewCmdProjectGet creates the project get command

func NewCmdProjectList

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

NewCmdProjectList implements the odo project list command.

func NewCmdProjectSet

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

NewCmdProjectSet creates the project set command

Types

type ProjectCreateOptions

type ProjectCreateOptions struct {

	// generic context options common to all commands
	*genericclioptions.Context
	// contains filtered or unexported fields
}

ProjectCreateOptions encapsulates the options for the odo project create command

func NewProjectCreateOptions

func NewProjectCreateOptions() *ProjectCreateOptions

NewProjectCreateOptions creates a ProjectCreateOptions instance

func (*ProjectCreateOptions) Complete

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

Complete completes ProjectCreateOptions after they've been created

func (*ProjectCreateOptions) Run

func (pco *ProjectCreateOptions) Run() (err error)

Run runs the project create command

func (*ProjectCreateOptions) Validate

func (pco *ProjectCreateOptions) Validate() (err error)

Validate validates the parameters of the ProjectCreateOptions

type ProjectDeleteOptions

type ProjectDeleteOptions struct {

	// generic context options common to all commands
	*genericclioptions.Context
	// contains filtered or unexported fields
}

ProjectDeleteOptions encapsulates the options for the odo project delete command

func NewProjectDeleteOptions

func NewProjectDeleteOptions() *ProjectDeleteOptions

NewProjectDeleteOptions creates a ProjectDeleteOptions instance

func (*ProjectDeleteOptions) Complete

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

Complete completes ProjectDeleteOptions after they've been created

func (*ProjectDeleteOptions) Run

func (pdo *ProjectDeleteOptions) Run() (err error)

Run runs the project delete command

func (*ProjectDeleteOptions) Validate

func (pdo *ProjectDeleteOptions) Validate() (err error)

Validate validates the parameters of the ProjectDeleteOptions

type ProjectGetOptions

type ProjectGetOptions struct {

	// generic context options common to all commands
	*genericclioptions.Context
	// contains filtered or unexported fields
}

ProjectGetOptions encapsulates the options for the odo project get command

func NewProjectGetOptions

func NewProjectGetOptions() *ProjectGetOptions

NewProjectGetOptions creates a ProjectGetOptions instance

func (*ProjectGetOptions) Complete

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

Complete completes ProjectGetOptions after they've been created

func (*ProjectGetOptions) Run

func (pgo *ProjectGetOptions) Run() (err error)

Run runs the project get command

func (*ProjectGetOptions) Validate

func (pgo *ProjectGetOptions) Validate() (err error)

Validate validates the parameters of the ProjectGetOptions

type ProjectListOptions

type ProjectListOptions struct {
	*genericclioptions.Context
}

ProjectListOptions encapsulates the options for the odo project list command

func NewProjectListOptions

func NewProjectListOptions() *ProjectListOptions

NewProjectListOptions creates a new ProjectListOptions instance

func (*ProjectListOptions) Complete

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

Complete completes ProjectListOptions after they've been created

func (*ProjectListOptions) Run

func (plo *ProjectListOptions) Run() (err error)

Run contains the logic for the odo project list command

func (*ProjectListOptions) Validate

func (plo *ProjectListOptions) Validate() (err error)

Validate validates the ProjectListOptions based on completed values

type ProjectSetOptions

type ProjectSetOptions struct {

	// generic context options common to all commands
	*genericclioptions.Context
	// contains filtered or unexported fields
}

ProjectSetOptions encapsulates the options for the odo project set command

func NewProjectSetOptions

func NewProjectSetOptions() *ProjectSetOptions

NewProjectSetOptions creates a ProjectSetOptions instance

func (*ProjectSetOptions) Complete

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

Complete completes ProjectSetOptions after they've been created

func (*ProjectSetOptions) Run

func (pso *ProjectSetOptions) Run() (err error)

Run runs the project set command

func (*ProjectSetOptions) Validate

func (pso *ProjectSetOptions) Validate() (err error)

Validate validates the parameters of the ProjectSetOptions

Jump to

Keyboard shortcuts

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