Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶
func CreateNamespace(spec *NamespaceSpec, client *client.Client) error
CreateNamespace creates namespace based on given specification.
Types ¶
type Namespace ¶ added in v1.1.1
type Namespace struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // Phase is the current lifecycle phase of the namespace. Phase api.NamespacePhase `json:"phase"` }
Namespace is a presentation layer view of Kubernetes namespaces. This means it is namespace plus additional augumented data we can get from other sources.
type NamespaceCell ¶ added in v1.4.0
func (NamespaceCell) GetProperty ¶ added in v1.4.0
func (self NamespaceCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
type NamespaceDetail ¶ added in v1.1.1
type NamespaceDetail struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // NamespacePhase is the current lifecycle phase of the namespace. Phase api.NamespacePhase `json:"phase"` // Events is list of events associated to the namespace. EventList common.EventList `json:"eventList"` }
NamespaceDetail is a presentation layer view of Kubernetes Namespace resource. This means it is Namespace plus additional augmented data we can get from other sources.
func GetNamespaceDetail ¶ added in v1.1.1
func GetNamespaceDetail(client k8sClient.Interface, heapsterClient client.HeapsterClient, name string) ( *NamespaceDetail, error)
GetNamespaceDetail gets namespace details.
type NamespaceList ¶
type NamespaceList struct { ListMeta common.ListMeta `json:"listMeta"` // Unordered list of Namespaces. Namespaces []Namespace `json:"namespaces"` }
NamespaceList contains a list of namespaces in the cluster.
func GetNamespaceList ¶
func GetNamespaceList(client *client.Client, dsQuery *dataselect.DataSelectQuery) (*NamespaceList, error)
GetNamespaceList returns a list of all namespaces in the cluster.
func GetNamespaceListFromChannels ¶ added in v1.4.0
func GetNamespaceListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*NamespaceList, error)
GetNamespaceListFromChannels returns a list of all namespaces in the cluster.
type NamespaceSpec ¶
type NamespaceSpec struct { // Name of the namespace. Name string `json:"name"` }
NamespaceSpec is a specification of namespace to create.