Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶
func CreateNamespace(spec *NamespaceSpec, client kubernetes.Interface) error
CreateNamespace creates namespace based on given specification.
Types ¶
type Namespace ¶
type Namespace struct { ObjectMeta types.ObjectMeta `json:"objectMeta"` TypeMeta types.TypeMeta `json:"typeMeta"` // Phase is the current lifecycle phase of the namespace. Phase v1.NamespacePhase `json:"phase"` SkipAutoPropagation bool `json:"skipAutoPropagation"` }
Namespace is a presentation layer view of Kubernetes namespaces. This means it is namespace plus additional augmented data we can get from other sources.
type NamespaceCell ¶
NamespaceCell is a cell representation of Namespace object.
func (NamespaceCell) GetProperty ¶
func (c NamespaceCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
GetProperty returns specific property of NamespaceCell.
type NamespaceDetail ¶
type NamespaceDetail struct { // Extends list item structure. Namespace `json:",inline"` // List of non-critical errors, that occurred during resource retrieval. Errors []error `json:"errors"` }
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 ¶
func GetNamespaceDetail(client k8sClient.Interface, name string) (*NamespaceDetail, error)
GetNamespaceDetail gets namespace details.
type NamespaceList ¶
type NamespaceList struct { ListMeta types.ListMeta `json:"listMeta"` // Unordered list of Namespaces. Namespaces []Namespace `json:"namespaces"` // List of non-critical errors, that occurred during resource retrieval. Errors []error `json:"errors"` }
NamespaceList contains a list of namespaces in the cluster.
func GetNamespaceList ¶
func GetNamespaceList(client kubernetes.Interface, dsQuery *dataselect.DataSelectQuery) (*NamespaceList, error)
GetNamespaceList returns a list of all namespaces in the cluster.
type NamespaceSpec ¶
type NamespaceSpec struct { // Name of the namespace. Name string `json:"name"` // Whether skip auto propagation SkipAutoPropagation bool }
NamespaceSpec is a specification of namespace to create.