Documentation
¶
Index ¶
- Constants
- func LoginToFedora(virtctlPath, vmiNamespace, vmiName, user, password string) error
- func LoginToFedoraWithHostname(virtctlPath, vmiNamespace, vmiName, user, password, hostname string) error
- func RunCommand(virtctlPath, vmiNamespace, vmiName, command string, timeout time.Duration) (string, error)
- type Client
- func (c *Client) Apply(resource string) error
- func (c *Client) Console(vmName, command string) (string, error)
- func (c *Client) CreateVM(vmTemplate string, params CreationTemplateParams) error
- func (c *Client) CreateVMIFromSpec(vmNamespace, vmName string, vmiSpec map[string]interface{}, opts ...Option) error
- func (c *Client) CreateVMIM(vmiName string) error
- func (c *Client) GetEventsForPod(podName string) ([]string, error)
- func (c *Client) GetJSONPath(resource, name, jsonPath string) (string, error)
- func (c *Client) GetPodsByLabel(labelKey, labelValue string) ([]string, error)
- func (c *Client) Login(vmName, hostname string) error
- func (c *Client) Restart(vmName string) error
- type CreationTemplateParams
- type Option
Constants ¶
View Source
const ( PromptExpression = `(\$ |\# )` CRLF = "\r\n" UTFPosEscape = "\u001b\\[[0-9]+;[0-9]+H" )
View Source
const ( FedoraVMWithSecondaryNetworkAttachment = `` /* 1466-byte string literal not displayed */ FedoraVMWithPrimaryUDNAttachment = `` /* 1442-byte string literal not displayed */ FedoraVMIWithSecondaryNetworkAttachment = `` /* 1225-byte string literal not displayed */ FedoraVMIWithPrimaryUDNAttachment = `` /* 1204-byte string literal not displayed */ FedoraVMWithPreconfiguredPrimaryUDNAttachment = `` /* 1714-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func LoginToFedora ¶
func LoginToFedoraWithHostname ¶
func LoginToFedoraWithHostname(virtctlPath, vmiNamespace, vmiName, user, password, hostname string) error
LoginToFedora performs a console login to a Fedora base VM
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateVM ¶
func (c *Client) CreateVM(vmTemplate string, params CreationTemplateParams) error
func (*Client) CreateVMIFromSpec ¶
func (*Client) CreateVMIM ¶
func (*Client) GetJSONPath ¶
func (*Client) GetPodsByLabel ¶
type CreationTemplateParams ¶
Click to show internal directories.
Click to hide internal directories.