kubernetesclient

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetK8sClientSet added in v0.6.6

func GetK8sClientSet(apiURL string) *kubernetes.Clientset

Types

type Client

type Client struct {
	K8sClient *kubernetes.Clientset
	Pod       PodOperations
	Namespace NamespaceOperations
	Service   ServiceOperations
	Node      NodeOperations
}

func NewClient

func NewClient(apiURL string) *Client

type NamespaceClient

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

func (*NamespaceClient) ByName

func (c *NamespaceClient) ByName(name string) (*v1.Namespace, error)

func (*NamespaceClient) CreateNamespace

func (c *NamespaceClient) CreateNamespace(resource *v1.Namespace) (*v1.Namespace, error)

func (*NamespaceClient) DeleteNamespace added in v0.2.2

func (c *NamespaceClient) DeleteNamespace(name string) error

type NamespaceOperations

type NamespaceOperations interface {
	ByName(name string) (*v1.Namespace, error)
	CreateNamespace(resource *v1.Namespace) (*v1.Namespace, error)
	DeleteNamespace(namespace string) error
}

type NodeClient added in v0.3.0

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

func (*NodeClient) ByName added in v0.3.0

func (c *NodeClient) ByName(name string) (*v1.Node, error)

func (*NodeClient) ReplaceNode added in v0.3.0

func (c *NodeClient) ReplaceNode(resource *v1.Node) (*v1.Node, error)

type NodeOperations added in v0.3.0

type NodeOperations interface {
	ByName(name string) (*v1.Node, error)
	ReplaceNode(resource *v1.Node) (*v1.Node, error)
}

type PodClient

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

func (*PodClient) ByName

func (c *PodClient) ByName(namespace string, name string) (*v1.Pod, error)

func (*PodClient) CreatePod

func (c *PodClient) CreatePod(namespace string, resource *v1.Pod) (*v1.Pod, error)

func (*PodClient) DeletePod

func (c *PodClient) DeletePod(namespace string, name string) error

type PodOperations

type PodOperations interface {
	ByName(namespace string, name string) (*v1.Pod, error)
	CreatePod(namespace string, resource *v1.Pod) (*v1.Pod, error)
	DeletePod(namespace string, name string) error
}

type ServiceClient

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

func (*ServiceClient) ByName

func (c *ServiceClient) ByName(namespace string, name string) (*v1.Service, error)

func (*ServiceClient) CreateService

func (c *ServiceClient) CreateService(namespace string, resource *v1.Service) (*v1.Service, error)

func (*ServiceClient) DeleteService

func (c *ServiceClient) DeleteService(namespace string, name string) error

func (*ServiceClient) ReplaceService

func (c *ServiceClient) ReplaceService(namespace string, resource *v1.Service) (*v1.Service, error)

type ServiceOperations

type ServiceOperations interface {
	ByName(namespace string, name string) (*v1.Service, error)
	CreateService(namespace string, resource *v1.Service) (*v1.Service, error)
	ReplaceService(namespace string, resource *v1.Service) (*v1.Service, error)
	DeleteService(namespace string, name string) error
}

Jump to

Keyboard shortcuts

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