namespace

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: AGPL-3.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package namespace manipulates the k8s api of namespace object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

type Namespace struct {
	// contains filtered or unexported fields
}

Namespace is the object to manipulate k8s api of namespace

func New

func New(options ...Option) *Namespace

New news a Namespace

func (*Namespace) Create

func (n *Namespace) Create(ns string, labels map[string]string) error

Create creates a k8s namespace TODO: Need to pass in the namespace structure

func (*Namespace) Delete

func (n *Namespace) Delete(ns string) error

Delete deletes a k8s namespace (deletes all dependents in the foreground)

func (*Namespace) DeleteForce

func (n *Namespace) DeleteForce(ns string) error

Delete deletes a k8s namespace with empty

func (*Namespace) Exists

func (n *Namespace) Exists(ns string) error

Exists decides whether a namespace exists

func (*Namespace) Update

func (n *Namespace) Update(ns string, labels map[string]string) error

type Option

type Option func(*Namespace)

Option configures a Namespace

func WithCompleteParams

func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option

WithCompleteParams provides an Option

Jump to

Keyboard shortcuts

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