Documentation ¶
Index ¶
- func Create(client *occlient.Client, projectName string, wait bool) error
- func Delete(client *occlient.Client, projectName string) error
- func Exists(client *occlient.Client, projectName string) (bool, error)
- func GetCurrent(client *occlient.Client) string
- func MachineReadableSuccessOutput(projectName string, message string)
- func SetCurrent(client *occlient.Client, projectName string) error
- type Project
- type ProjectList
- type ProjectSpec
- type ProjectStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶ added in v0.0.11
Delete deletes the project with name projectName and returns errors if any
func Exists ¶ added in v0.0.4
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 MachineReadableSuccessOutput ¶ added in v1.0.0
MachineReadableSuccessOutput outputs a success output that includes project information and namespace
Types ¶
type Project ¶ added in v1.0.0
type Project struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProjectSpec `json:"spec,omitempty"` Status ProjectStatus `json:"status,omitempty"` }
type ProjectList ¶ added in v1.0.0
type ProjectList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Project `json:"items"` }
func DescribeProjects ¶
func DescribeProjects(client *occlient.Client) (ProjectList, error)
type ProjectSpec ¶ added in v1.0.0
type ProjectSpec struct {
Applications []string `json:"apps"`
}
type ProjectStatus ¶ added in v1.0.0
type ProjectStatus struct {
Active bool `json:"active"`
}
Click to show internal directories.
Click to hide internal directories.