Documentation ¶
Index ¶
- Constants
- func AddProjectFlag(cmd *cobra.Command)
- func NewCmdProject(name, fullName string) *cobra.Command
- func NewCmdProjectCreate(name, fullName string) *cobra.Command
- func NewCmdProjectDelete(name, fullName string) *cobra.Command
- func NewCmdProjectGet(name, fullName string) *cobra.Command
- func NewCmdProjectList(name, fullName string) *cobra.Command
- func NewCmdProjectSet(name, fullName string) *cobra.Command
- type ProjectCreateOptions
- type ProjectDeleteOptions
- type ProjectGetOptions
- type ProjectListOptions
- type ProjectSetOptions
Constants ¶
const RecommendedCommandName = "project"
RecommendedCommandName is the recommended project command name
Variables ¶
This section is empty.
Functions ¶
func AddProjectFlag ¶ added in v0.0.18
AddProjectFlag adds a `project` flag to the given cobra command Also adds a completion handler to the flag
func NewCmdProject ¶
NewCmdProject implements the project odo command
func NewCmdProjectCreate ¶ added in v0.0.19
NewCmdProjectCreate creates the project create command
func NewCmdProjectDelete ¶ added in v0.0.19
NewCmdProjectDelete creates the project delete command
func NewCmdProjectGet ¶ added in v0.0.19
NewCmdProjectGet creates the project get command
func NewCmdProjectList ¶ added in v0.0.19
NewCmdProjectList implements the odo project list command.
func NewCmdProjectSet ¶ added in v0.0.19
NewCmdProjectSet creates the project set command
Types ¶
type ProjectCreateOptions ¶ added in v0.0.19
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 ¶ added in v0.0.19
func NewProjectCreateOptions() *ProjectCreateOptions
NewProjectCreateOptions creates a ProjectCreateOptions instance
func (*ProjectCreateOptions) Complete ¶ added in v0.0.19
func (pco *ProjectCreateOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)
Complete completes ProjectCreateOptions after they've been created
func (*ProjectCreateOptions) Run ¶ added in v0.0.19
func (pco *ProjectCreateOptions) Run() (err error)
Run runs the project create command
func (*ProjectCreateOptions) Validate ¶ added in v0.0.19
func (pco *ProjectCreateOptions) Validate() (err error)
Validate validates the parameters of the ProjectCreateOptions
type ProjectDeleteOptions ¶ added in v0.0.19
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 ¶ added in v0.0.19
func NewProjectDeleteOptions() *ProjectDeleteOptions
NewProjectDeleteOptions creates a ProjectDeleteOptions instance
func (*ProjectDeleteOptions) Complete ¶ added in v0.0.19
func (pdo *ProjectDeleteOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)
Complete completes ProjectDeleteOptions after they've been created
func (*ProjectDeleteOptions) Run ¶ added in v0.0.19
func (pdo *ProjectDeleteOptions) Run() (err error)
Run runs the project delete command
func (*ProjectDeleteOptions) Validate ¶ added in v0.0.19
func (pdo *ProjectDeleteOptions) Validate() (err error)
Validate validates the parameters of the ProjectDeleteOptions
type ProjectGetOptions ¶ added in v0.0.19
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 ¶ added in v0.0.19
func NewProjectGetOptions() *ProjectGetOptions
NewProjectGetOptions creates a ProjectGetOptions instance
func (*ProjectGetOptions) Complete ¶ added in v0.0.19
Complete completes ProjectGetOptions after they've been created
func (*ProjectGetOptions) Run ¶ added in v0.0.19
func (pgo *ProjectGetOptions) Run() (err error)
Run runs the project get command
func (*ProjectGetOptions) Validate ¶ added in v0.0.19
func (pgo *ProjectGetOptions) Validate() (err error)
Validate validates the parameters of the ProjectGetOptions
type ProjectListOptions ¶ added in v0.0.19
type ProjectListOptions struct {
*genericclioptions.Context
}
ProjectListOptions encapsulates the options for the odo project list command
func NewProjectListOptions ¶ added in v0.0.19
func NewProjectListOptions() *ProjectListOptions
NewProjectListOptions creates a new ProjectListOptions instance
func (*ProjectListOptions) Complete ¶ added in v0.0.19
Complete completes ProjectListOptions after they've been created
func (*ProjectListOptions) Run ¶ added in v0.0.19
func (plo *ProjectListOptions) Run() (err error)
Run contains the logic for the odo project list command
func (*ProjectListOptions) Validate ¶ added in v0.0.19
func (plo *ProjectListOptions) Validate() (err error)
Validate validates the ProjectListOptions based on completed values
type ProjectSetOptions ¶ added in v0.0.19
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 ¶ added in v0.0.19
func NewProjectSetOptions() *ProjectSetOptions
NewProjectSetOptions creates a ProjectSetOptions instance
func (*ProjectSetOptions) Complete ¶ added in v0.0.19
Complete completes ProjectSetOptions after they've been created
func (*ProjectSetOptions) Run ¶ added in v0.0.19
func (pso *ProjectSetOptions) Run() (err error)
Run runs the project set command
func (*ProjectSetOptions) Validate ¶ added in v0.0.19
func (pso *ProjectSetOptions) Validate() (err error)
Validate validates the parameters of the ProjectSetOptions