api

package
v0.0.0-...-e507620 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceClient

func GetResourceClient(config *rest.Config, group string, version string) (*rest.RESTClient, error)

func GetSecretValue

func GetSecretValue(clientset *kubernetes.Clientset, name, namespace, stype, field string) ([]byte, error)

func GetVolumeRBDKey

func GetVolumeRBDKey(clientset *kubernetes.Clientset, namespace string, src *kubeapiv1.RBDVolumeSource) ([]byte, error)

func GetVolumeSpec

func GetVolumeSpec(clientset *kubernetes.Clientset, name, namespace string) (string, *kubeapiv1.PersistentVolumeSpec, error)

func RegisterResourceExtension

func RegisterResourceExtension(clientset *kubernetes.Clientset, uri string, group string, name string, version string, description string) error

func RegisterResourceScheme

func RegisterResourceScheme(group string, version string, obj, objlist runtime.Object)

func RegisterVirtimagefile

func RegisterVirtimagefile(clientset *kubernetes.Clientset) error

func RegisterVirtimagerepo

func RegisterVirtimagerepo(clientset *kubernetes.Clientset) error

func RegisterVirtmachine

func RegisterVirtmachine(clientset *kubernetes.Clientset) error

func RegisterVirtnodeinfo

func RegisterVirtnodeinfo(clientset *kubernetes.Clientset) error

Types

type TPRClient

type TPRClient struct {
	ResourceName string
	Namespace    string
	Rest         *rest.RESTClient
}

func (*TPRClient) Delete

func (c *TPRClient) Delete(name string) error

func (*TPRClient) Get

func (c *TPRClient) Get(name string, obj TPRObject) error

func (*TPRClient) List

func (c *TPRClient) List(obj TPRObjectList) error

func (*TPRClient) Post

func (c *TPRClient) Post(obj TPRObject) error

func (*TPRClient) Put

func (c *TPRClient) Put(obj TPRObject) error

func (*TPRClient) Watch

func (c *TPRClient) Watch() (watch.Interface, error)

type TPRObject

type TPRObject interface {
	runtime.Object
	v1.ObjectMetaAccessor
}

type TPRObjectList

type TPRObjectList interface {
	runtime.Object
	v1.ListMetaAccessor
}

type VirtimagefileClient

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

func NewVirtimagefileClient

func NewVirtimagefileClient(namespace string, kubeconfig *rest.Config) (*VirtimagefileClient, error)

func (*VirtimagefileClient) Create

func (*VirtimagefileClient) Delete

func (c *VirtimagefileClient) Delete(obj *apiv1.Virtimagefile) error

func (*VirtimagefileClient) Get

func (*VirtimagefileClient) List

func (*VirtimagefileClient) Update

func (*VirtimagefileClient) Watch

func (c *VirtimagefileClient) Watch() (watch.Interface, error)

type VirtimagerepoClient

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

func NewVirtimagerepoClient

func NewVirtimagerepoClient(namespace string, kubeconfig *rest.Config) (*VirtimagerepoClient, error)

func (*VirtimagerepoClient) Create

func (*VirtimagerepoClient) Delete

func (c *VirtimagerepoClient) Delete(obj *apiv1.Virtimagerepo) error

func (*VirtimagerepoClient) Get

func (*VirtimagerepoClient) List

func (*VirtimagerepoClient) Update

func (*VirtimagerepoClient) Watch

func (c *VirtimagerepoClient) Watch() (watch.Interface, error)

type VirtmachineClient

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

func NewVirtmachineClient

func NewVirtmachineClient(namespace string, kubeconfig *rest.Config) (*VirtmachineClient, error)

func (*VirtmachineClient) Create

func (*VirtmachineClient) Delete

func (c *VirtmachineClient) Delete(obj *apiv1.Virtmachine) error

func (*VirtmachineClient) Get

func (c *VirtmachineClient) Get(name string) (*apiv1.Virtmachine, error)

func (*VirtmachineClient) List

func (*VirtmachineClient) Update

func (*VirtmachineClient) Watch

func (c *VirtmachineClient) Watch() (watch.Interface, error)

type VirtnodeinfoClient

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

func NewVirtnodeinfoClient

func NewVirtnodeinfoClient(namespace string, kubeconfig *rest.Config) (*VirtnodeinfoClient, error)

func (*VirtnodeinfoClient) Create

func (c *VirtnodeinfoClient) Create(obj *apiv1.Virtnode) (*apiv1.Virtnode, error)

func (*VirtnodeinfoClient) Delete

func (c *VirtnodeinfoClient) Delete(obj *apiv1.Virtnode) error

func (*VirtnodeinfoClient) Get

func (c *VirtnodeinfoClient) Get(name string) (*apiv1.Virtnode, error)

func (*VirtnodeinfoClient) List

func (*VirtnodeinfoClient) Update

func (c *VirtnodeinfoClient) Update(obj *apiv1.Virtnode) (*apiv1.Virtnode, error)

func (*VirtnodeinfoClient) Watch

func (c *VirtnodeinfoClient) Watch() (watch.Interface, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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