k8s

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New() *Client

func (*Client) Deployment

func (self *Client) Deployment(namespace string) *Deployment

func (*Client) Namespace

func (self *Client) Namespace() *Namespace

func (*Client) Service

func (self *Client) Service(namespace string) *Service

func (*Client) Storage

func (self *Client) Storage(namespace string) *Storage

type Deployment

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

func (*Deployment) Create

func (*Deployment) List

func (self *Deployment) List() (*appsv1.DeploymentList, error)

func (*Deployment) Remove

func (self *Deployment) Remove(name string) error

type Namespace

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

func (*Namespace) Create

func (self *Namespace) Create(name string) (*corev1.Namespace, error)

func (*Namespace) List

func (self *Namespace) List() (*corev1.NamespaceList, error)

func (*Namespace) Remove

func (self *Namespace) Remove(name string) error

type PersistentVolume

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

func (*PersistentVolume) Create

func (*PersistentVolume) List

func (*PersistentVolume) Remove

func (self *PersistentVolume) Remove(name string) error

type PersistentVolumeClaim

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

func (*PersistentVolumeClaim) Create

func (*PersistentVolumeClaim) List

func (*PersistentVolumeClaim) Remove

func (self *PersistentVolumeClaim) Remove(name string) error

type Service

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

func (*Service) Create

func (self *Service) Create(data template.ServiceTemplate) (*corev1.Service, error)

func (*Service) List

func (self *Service) List() (*corev1.ServiceList, error)

func (*Service) Remove

func (self *Service) Remove(name string) error

type Storage

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

func (*Storage) PersistentVolume

func (self *Storage) PersistentVolume() *PersistentVolume

func (*Storage) PersistentVolumeClaim

func (self *Storage) PersistentVolumeClaim() *PersistentVolumeClaim

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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