fakemachine

package
v1.99.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DummyClusterConfig = types.ClusterConfig{
	ClusterType:   "openshift",
	ClusterCACert: "MIIDODCCAiCgAwIBAgIIRVfCKNUa1wIwDQYJ",
	KubeConfig:    "/tmp/kubeconfig",
	KubeAdminPass: "foobar",
	ClusterAPI:    "https://foo.testing:6443",
	WebConsoleURL: "https://console.foo.testing:6443",
	ProxyConfig:   nil,
}

Functions

This section is empty.

Types

type Client

type Client struct {
	Failing bool
}

func NewClient

func NewClient() *Client

func NewFailingClient added in v1.17.0

func NewFailingClient() *Client

func (*Client) ConnectionDetails added in v1.26.0

func (c *Client) ConnectionDetails() (*types.ConnectionDetails, error)

func (*Client) Delete

func (c *Client) Delete() error

func (*Client) Exists

func (c *Client) Exists() (bool, error)

func (*Client) GenerateBundle added in v1.26.0

func (c *Client) GenerateBundle(forceStop bool) error

func (*Client) GetConsoleURL

func (c *Client) GetConsoleURL() (*types.ConsoleResult, error)

func (*Client) GetName added in v1.20.0

func (c *Client) GetName() string

func (*Client) GetPreset added in v1.99.2

func (c *Client) GetPreset() preset.Preset

func (*Client) GetProxyConfig

func (c *Client) GetProxyConfig(machineName string) (*network.ProxyConfig, error)

func (*Client) IsRunning added in v1.23.0

func (c *Client) IsRunning() (bool, error)

func (*Client) PowerOff

func (c *Client) PowerOff() error

func (*Client) Start

func (c *Client) Start(ctx context.Context, startConfig types.StartConfig) (*types.StartResult, error)

func (*Client) Status

func (c *Client) Status() (*types.ClusterStatusResult, error)

func (*Client) Stop

func (c *Client) Stop() (state.State, error)

Jump to

Keyboard shortcuts

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