fakemachine

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 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

func NewFailingClient() *Client

func (*Client) ConnectionDetails

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

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

func (*Client) GetClusterLoad

func (c *Client) GetClusterLoad() (*types.ClusterLoadResult, error)

func (*Client) GetConsoleURL

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

func (*Client) GetName

func (c *Client) GetName() string

func (*Client) GetPreset

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

func (*Client) GetProxyConfig

func (c *Client) GetProxyConfig(_ string) (*httpproxy.ProxyConfig, error)

func (*Client) IsRunning

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

func (*Client) PowerOff

func (c *Client) PowerOff() error

func (*Client) Start

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