kubernetes

package
v0.4.4-RC1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 8 Imported by: 4

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
}

Client is the wrapper over the k8s client that will be used by NDM to interface with etcd

func New

func New(config *rest.Config) (Client, error)

New creates a new client object using the given config

func (*Client) ListBlockDevice

func (cl *Client) ListBlockDevice(filters ...string) ([]v1alpha1.BlockDevice, error)

ListBlockDevice lists the block device from etcd based on the filters used

func (*Client) RegisterAPI

func (cl *Client) RegisterAPI() error

RegisterAPI registers the API scheme in the client using the manager. This function needs to be called only once a client object

func (*Client) Set

func (cl *Client) Set() error

Set sets the client using the config

Jump to

Keyboard shortcuts

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