client

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 17 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
}

Client is the wrapper over the k8s client that will be used by jiva-csi 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) CreateJivaVolume

func (cl *Client) CreateJivaVolume(req *csi.CreateVolumeRequest) error

CreateJivaVolume check whether JivaVolume CR already exists and creates one if it doesn't exist.

func (*Client) DeleteJivaVolume

func (cl *Client) DeleteJivaVolume(volumeID string) error

DeleteJivaVolume delete the JivaVolume CR

func (*Client) GetJivaVolume

func (cl *Client) GetJivaVolume(name string) (*jv.JivaVolume, error)

GetJivaVolume get the instance of JivaVolume CR.

func (*Client) ListJivaVolume

func (cl *Client) ListJivaVolume(volumeID string) (*jv.JivaVolumeList, error)

ListJivaVolume returns the list of JivaVolume resources

func (*Client) ListJivaVolumeWithOpts

func (cl *Client) ListJivaVolumeWithOpts(opts map[string]string) (*jv.JivaVolumeList, error)

ListJivaVolumeWithOpts returns the list of JivaVolume resources

func (*Client) RegisterAPI

func (cl *Client) RegisterAPI(opts manager.Options) 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

func (*Client) UpdateJivaVolume

func (cl *Client) UpdateJivaVolume(cr *jv.JivaVolume) error

UpdateJivaVolume update the JivaVolume CR

Jump to

Keyboard shortcuts

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