resources

package
v0.0.0-...-e5813c6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ERR_NO_RESOURCE string = "No resources found."

Variables

View Source
var ResourcesLists = map[string]bool{
	"cm":   true,
	"ep":   true,
	"ns":   true,
	"node": true,
	"pod":  true,
	"sa":   true,
	"sec":  true,
	"svc":  true,
}

Functions

This section is empty.

Types

type ConfigMaps

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

func NewConfigMaps

func NewConfigMaps(clientSet *kubernetes.Clientset, namespace, name string) *ConfigMaps

func (*ConfigMaps) Delete

func (cm *ConfigMaps) Delete()

func (*ConfigMaps) Get

func (cm *ConfigMaps) Get()

type EndPoints

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

func NewEndPoints

func NewEndPoints(clientSet *kubernetes.Clientset, namespace, name string) *EndPoints

func (*EndPoints) Delete

func (ep *EndPoints) Delete()

func (*EndPoints) Get

func (ep *EndPoints) Get()

type Namespaces

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

func (*Namespaces) Delete

func (n *Namespaces) Delete()

func (*Namespaces) Get

func (n *Namespaces) Get()

type Nodes

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

func NewNodes

func NewNodes(clientSet *kubernetes.Clientset) *Nodes

func (*Nodes) Delete

func (n *Nodes) Delete()

func (*Nodes) Get

func (n *Nodes) Get()

type Pods

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

func NewPods

func NewPods(clientSet *kubernetes.Clientset, namespace, name string) *Pods

func (*Pods) Delete

func (p *Pods) Delete()

func (*Pods) Get

func (p *Pods) Get()

func (*Pods) GetLogs

func (p *Pods) GetLogs()

type Resourcer

type Resourcer interface {
	Get()
	Delete()
}

func NewNamespaces

func NewNamespaces(clientSet *kubernetes.Clientset, name string) Resourcer

func NewResourcer

func NewResourcer(client *clientset.Client, namespace, resource, name string) Resourcer

type ResourcesManager

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

func NewResourcesManager

func NewResourcesManager(client *clientset.Client, namespace, resource, name string) *ResourcesManager

func (*ResourcesManager) Delete

func (rsm *ResourcesManager) Delete()

func (*ResourcesManager) Get

func (rsm *ResourcesManager) Get()

func (*ResourcesManager) GetLogs

func (rsm *ResourcesManager) GetLogs()

type Secrets

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

func NewSecrets

func NewSecrets(clientSet *kubernetes.Clientset, namespace, name string) *Secrets

func (*Secrets) Delete

func (s *Secrets) Delete()

func (*Secrets) Get

func (s *Secrets) Get()

type ServiceAccounts

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

func NewServiceAccounts

func NewServiceAccounts(clientSet *kubernetes.Clientset, namespace, name string) *ServiceAccounts

func (*ServiceAccounts) Delete

func (sa *ServiceAccounts) Delete()

func (*ServiceAccounts) Get

func (sa *ServiceAccounts) Get()

type Services

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

func NewServices

func NewServices(clientSet *kubernetes.Clientset, namespace, name string) *Services

func (*Services) Delete

func (s *Services) Delete()

func (*Services) Get

func (s *Services) Get()

Jump to

Keyboard shortcuts

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