Documentation ¶
Index ¶
- func Create(context *genericclioptions.Context, projectName string, wait bool) error
- func Delete(context *genericclioptions.Context, projectName string, wait bool) error
- func Exists(context *genericclioptions.Context, projectName string) (bool, error)
- func GetCurrent(context *genericclioptions.Context) string
- func GetSelector() string
- func MachineReadableSuccessOutput(projectName string, message string)
- func SetCurrent(context *genericclioptions.Context, projectName string) error
- type Project
- type ProjectList
- type ProjectSpec
- type ProjectStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(context *genericclioptions.Context, projectName string, wait bool) error
Delete deletes the project with name projectName and returns errors if any
func Exists ¶
func Exists(context *genericclioptions.Context, projectName string) (bool, error)
Exists Checks whether a project with the given name exists or not projectName is the project name to perform check for The first returned parameter is a bool indicating if a project with the given name already exists or not The second returned parameter is the error that might occurs while execution
func GetCurrent ¶
func GetCurrent(context *genericclioptions.Context) string
GetCurrent return current project
func GetSelector ¶
func GetSelector() string
GetSelector returns a selector to filter resource under the current project created by odo
func MachineReadableSuccessOutput ¶
MachineReadableSuccessOutput outputs a success output that includes project information and namespace
func SetCurrent ¶
func SetCurrent(context *genericclioptions.Context, projectName string) error
SetCurrent sets the projectName as current project
Types ¶
type Project ¶
type Project struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProjectSpec `json:"spec,omitempty"` Status ProjectStatus `json:"status,omitempty"` }
func GetMachineReadableFormat ¶
GetMachineReadableFormat gathers the readable format and output a Project struct for json to marshal
type ProjectList ¶
type ProjectList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Project `json:"items"` }
ProjectList holds a list of Project
func List ¶
func List(context *genericclioptions.Context) (ProjectList, error)
List lists all the projects on the cluster returns a list of the projects or the error if any
type ProjectSpec ¶
type ProjectSpec struct{}
type ProjectStatus ¶
type ProjectStatus struct {
Active bool `json:"active"`
}