Documentation ¶
Overview ¶
Package namespaces provides implementation of Namespace resources for Kubernetes
Deprecated: Use the resources package instead.
Index ¶
- type Namespacesdeprecated
- func (obj *Namespaces) Apply(yaml string) (k8sTypes.Namespace, error)deprecated
- func (obj *Namespaces) Create(namespace k8sTypes.Namespace, opts metav1.CreateOptions) (k8sTypes.Namespace, error)deprecated
- func (obj *Namespaces) Delete(name string, opts metav1.DeleteOptions) errordeprecated
- func (obj *Namespaces) Get(name string, opts metav1.GetOptions) (k8sTypes.Namespace, error)deprecated
- func (obj *Namespaces) Kill(name string, opts metav1.DeleteOptions) errordeprecated
- func (obj *Namespaces) List() ([]k8sTypes.Namespace, error)deprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespaces
deprecated
type Namespaces struct {
// contains filtered or unexported fields
}
Namespaces provides API for manipulating Namespace resources within a Kubernetes cluster
Deprecated: No longer used in favor of generic resources.
func New
deprecated
func New(ctx context.Context, client kubernetes.Interface, metaOptions metav1.ListOptions) *Namespaces
New creates a new instance backed by the provided client
Deprecated: No longer used.
func (*Namespaces) Create
deprecated
func (obj *Namespaces) Create( namespace k8sTypes.Namespace, opts metav1.CreateOptions, ) (k8sTypes.Namespace, error)
Create creates the Kubernetes resource given the supplied object
Deprecated: Use resources.Create instead.
func (*Namespaces) Delete
deprecated
func (obj *Namespaces) Delete(name string, opts metav1.DeleteOptions) error
Delete removes the named Namespace from the cluster
Deprecated: Use resources.Delete instead.
func (*Namespaces) Get
deprecated
func (obj *Namespaces) Get(name string, opts metav1.GetOptions) (k8sTypes.Namespace, error)
Get returns the named Namespaces instance within the cluster if available
Deprecated: Use resources.Get instead.
func (*Namespaces) Kill
deprecated
func (obj *Namespaces) Kill(name string, opts metav1.DeleteOptions) error
Kill removes the named Namespace from the cluster
Deprecated: Use resources.Delete instead.
func (*Namespaces) List
deprecated
func (obj *Namespaces) List() ([]k8sTypes.Namespace, error)
List returns a collection of Namespaces available within the cluster
Deprecated: Use resources.List instead.