kube

package
v0.0.0-...-0d78212 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Copyright (c) 2019, VSHN AG, info@vshn.ch Licensed under "BSD 3-Clause". See LICENSE file.

Copyright (c) 2019, VSHN AG, info@vshn.ch Licensed under "BSD 3-Clause". See LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientManager

type ClientManager struct {
	// currently only a single client supported
	K8sClient kubernetes.Interface
	CRDClient client.Client
}

ClientManager holds the k8sclient

func NewClientManager

func NewClientManager(dev bool) (*ClientManager, error)

func (*ClientManager) AllManagedNamespaces

func (k *ClientManager) AllManagedNamespaces() []*models.Namespace

func (*ClientManager) CreateManagedNamespace

func (k *ClientManager) CreateManagedNamespace(customer string, newNamespace *models.Namespace) (*models.Namespace, error)

func (*ClientManager) DeleteManagedNamespace

func (k *ClientManager) DeleteManagedNamespace(customer, name string) (*models.Namespace, error)

func (*ClientManager) GetManagedNamespaceByName

func (k *ClientManager) GetManagedNamespaceByName(name, customer string) *models.Namespace

func (*ClientManager) UpdateManagedNamespace

func (k *ClientManager) UpdateManagedNamespace(customer, name string, managedNamespace *models.Namespace) (*models.Namespace, error)

Jump to

Keyboard shortcuts

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