namespace

package
v0.0.0-...-5dbc029 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUserNotFound = fmt.Errorf("namespace: %w", auth.ErrNotFound)
View Source
var LabelOwner = "workshop.loft.sh/kcd-munich-owner"

Functions

This section is empty.

Types

type KubeconfigOptions

type KubeconfigOptions struct {
	Server   string
	CaData   []byte
	Insecure bool
}

type Service

type Service struct {
	Clientset *kubernetes.Clientset
	Config    *rest.Config
}

func (*Service) Create

func (s *Service) Create(ctx context.Context, name string) (_ *corev1.Namespace, err error)

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, name string) error

func (*Service) Get

func (s *Service) Get(ctx context.Context, name string) (*corev1.Namespace, error)

func (*Service) GetKubeconfig

func (s *Service) GetKubeconfig(ctx context.Context, name string, options KubeconfigOptions) ([]byte, error)

func (*Service) List

func (s *Service) List(ctx context.Context) ([]corev1.Namespace, error)

Jump to

Keyboard shortcuts

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