k8s

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNamespace

func CreateNamespace(name string) error

func DeleteNamespace

func DeleteNamespace(name string) error

func GetNamespaceName

func GetNamespaceName(accountID string) string

func NewNamespace

func NewNamespace(name string) *apiv1.Namespace

func NewNamespaceDynamic

func NewNamespaceDynamic(name string) *unstructured.Unstructured

Types

type Object

type Object interface {
	Get() interface{}
	Namespace() *apiv1.Namespace
	StatefulSet() *appsv1.StatefulSet
	Service() *apiv1.Service
	Secret() *apiv1.Secret
	Create() error
	Delete() error
}

func NewRelay

func NewRelay(v *network.VRF) (Object, error)

type Relay

type Relay struct {
	*network.RelayService
}

func (*Relay) Create

func (r *Relay) Create() error

func (*Relay) Delete

func (r *Relay) Delete() error

func (*Relay) Get

func (r *Relay) Get() interface{}

func (*Relay) Namespace

func (r *Relay) Namespace() *apiv1.Namespace

func (*Relay) Secret

func (r *Relay) Secret() *apiv1.Secret

func (*Relay) SecretDynamic

func (r *Relay) SecretDynamic() *unstructured.Unstructured

func (*Relay) Service

func (r *Relay) Service() *apiv1.Service

func (*Relay) ServiceDynamic

func (r *Relay) ServiceDynamic() *unstructured.Unstructured

func (*Relay) StatefulSet

func (r *Relay) StatefulSet() *appsv1.StatefulSet

func (*Relay) StatefulSetDynamic

func (r *Relay) StatefulSetDynamic() *unstructured.Unstructured

Jump to

Keyboard shortcuts

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