namespaces

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package namespaces encapsulates all the functionality around Epinio-controlled namespaces TODO: Consider moving this + the applications + the configurations packages under "models".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, kubeClient *kubernetes.Cluster, namespace string) error

Create generates a new epinio-controlled namespace, i.e. a kube namespace plus a service account.

func Delete

func Delete(ctx context.Context, kubeClient *kubernetes.Cluster, namespace string) error

Delete destroys an epinio-controlled namespace, i.e. the associated kube namespace and service account.

func Exists

func Exists(ctx context.Context, kubeClient *kubernetes.Cluster, lookupNamespace string) (bool, error)

Exists checks if the named epinio-controlled namespace exists or not, and returns an appropriate boolean flag

Types

type Namespace

type Namespace struct {
	Name      string
	CreatedAt metav1.Time
}

Namespace represents an epinio-controlled namespace in the system

func Get added in v0.9.0

func Get(ctx context.Context, kubeClient *kubernetes.Cluster, lookupNamespace string) (*Namespace, error)

Get returns the meta data of the named epinio-controlled namespace

func List

func List(ctx context.Context, kubeClient *kubernetes.Cluster) ([]Namespace, error)

func (Namespace) Namespace added in v0.9.0

func (n Namespace) Namespace() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL