Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContextCmd ¶
func NewContextCmd(streams genericiooptions.IOStreams) *cobra.Command
Types ¶
type CloudContext ¶
type CloudContext struct { ContextName string Token string OrgName string APIURL string APIPath string OutputFormat string genericiooptions.IOStreams }
func (*CloudContext) GetContext ¶
func (c *CloudContext) GetContext() (*CloudContextResponse, error)
func (*CloudContext) GetContexts ¶
func (c *CloudContext) GetContexts() (*CloudContextsResponse, error)
type CloudContextResponse ¶
type CloudContextResponse struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata Metadata `json:"metadata"` Spec ClusterSpec `json:"spec"` Status Status `json:"status"` }
type CloudContextsResponse ¶
type CloudContextsResponse struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata struct { Count int `json:"count"` Limit int `json:"limit"` } `json:"metadata"` Items []ClusterItem `json:"items"` }
type ClusterData ¶
type ClusterData struct { ClusterBlueprint string `json:"cluster_blueprint"` Projects []struct { ProjectID string `json:"projectID"` ClusterID string `json:"clusterID"` } `json:"projects"` ClusterStatus ClusterStatus `json:"cluster_status"` }
type ClusterItem ¶
type ClusterItem struct { Metadata Metadata `json:"metadata"` Spec ClusterSpec `json:"spec"` }
type ClusterSpec ¶
type ClusterSpec struct { ClusterType string `json:"clusterType"` Metro struct{} `json:"metro"` OverrideSelector string `json:"overrideSelector"` Params Params `json:"params"` ProxyConfig struct{} `json:"proxyConfig"` ClusterData ClusterData `json:"clusterData"` }
type ClusterStatus ¶
type ClusterStatus struct { Conditions []struct { Type string `json:"type"` LastUpdated struct { Seconds int `json:"seconds"` Nanos int `json:"nanos"` } `json:"lastUpdated"` Reason string `json:"reason"` } `json:"conditions"` Token string `json:"token"` PublishedBlueprint string `json:"publishedBlueprint"` }
type ContextOptions ¶
type ContextOptions struct { ContextName string Context Context OutputFormat string genericiooptions.IOStreams }
type Metadata ¶
type Metadata struct { Name string `json:"name"` Description string `json:"description"` Project string `json:"project"` Organization string `json:"organization"` Partner string `json:"partner"` ID string `json:"id"` CreatedAt struct { Seconds int `json:"seconds"` Nanos int `json:"nanos"` } `json:"createdAt"` ModifiedAt struct { Seconds int `json:"seconds"` Nanos int `json:"nanos"` } `json:"modifiedAt"` }
type MockContext ¶
type MockContext struct {
genericiooptions.IOStreams
}
Click to show internal directories.
Click to hide internal directories.