client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 7 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 {
	kubecli.KubevirtClient
}

func New

func New() (*Client, error)

func (*Client) CreateConfigMap added in v0.2.0

func (c *Client) CreateConfigMap(ctx context.Context, namespace string, configMap *k8scorev1.ConfigMap) (*k8scorev1.ConfigMap, error)

func (*Client) CreateVirtualMachineInstance

func (c *Client) CreateVirtualMachineInstance(ctx context.Context,
	namespace string,
	vmi *kvcorev1.VirtualMachineInstance) (*kvcorev1.VirtualMachineInstance, error)

func (*Client) DeleteConfigMap added in v0.2.0

func (c *Client) DeleteConfigMap(ctx context.Context, namespace, name string) error

func (*Client) DeleteVirtualMachineInstance

func (c *Client) DeleteVirtualMachineInstance(ctx context.Context, namespace, name string) error

func (*Client) GetVirtualMachineInstance

func (c *Client) GetVirtualMachineInstance(ctx context.Context, namespace, name string) (*kvcorev1.VirtualMachineInstance, error)

func (*Client) VMISerialConsole

func (c *Client) VMISerialConsole(namespace, name string, timeout time.Duration) (kubecli.StreamInterface, error)

Jump to

Keyboard shortcuts

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