client

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 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 {
	// contains filtered or unexported fields
}

func New

func New(client *http.Client, baseURL string) *Client

func (*Client) Delete

func (c *Client) Delete() (Result, error)

func (*Client) GetConfig

func (c *Client) GetConfig(configs []string) (GetConfigResult, error)

func (*Client) SetConfig

func (c *Client) SetConfig(configs SetConfigRequest) (SetOrUnsetConfigResult, error)

func (*Client) Start

func (c *Client) Start(config StartConfig) (StartResult, error)

func (*Client) Status

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

func (*Client) Stop

func (c *Client) Stop() (Result, error)

func (*Client) UnsetConfig

func (c *Client) UnsetConfig(configs []string) (SetOrUnsetConfigResult, error)

func (*Client) Version

func (c *Client) Version() (VersionResult, error)

func (*Client) WebconsoleURL

func (c *Client) WebconsoleURL() (ConsoleResult, error)

type ClusterStatusResult

type ClusterStatusResult struct {
	Name             string
	CrcStatus        string
	OpenshiftStatus  string
	OpenshiftVersion string
	DiskUse          int64
	DiskSize         int64
	Error            string
	Success          bool
}

type ConsoleResult

type ConsoleResult struct {
	ClusterConfig types.ClusterConfig
	Success       bool
	Error         string
}

type GetConfigResult

type GetConfigResult struct {
	Error   string
	Configs map[string]interface{}
}

getConfigResult struct is used to return the result of getconfig command

type Result

type Result struct {
	Name    string
	Success bool
	Error   string
}

type SetConfigRequest

type SetConfigRequest struct {
	Properties map[string]interface{} `json:"properties"`
}

type SetOrUnsetConfigResult

type SetOrUnsetConfigResult struct {
	Error      string
	Properties []string
}

setOrUnsetConfigResult struct is used to return the result of setconfig/unsetconfig command

type StartConfig

type StartConfig struct {
	PullSecretPath string
}

type StartResult

type StartResult struct {
	Name           string
	Status         string
	Error          string
	ClusterConfig  types.ClusterConfig
	KubeletStarted bool
}

type VersionResult

type VersionResult struct {
	CrcVersion       string
	CommitSha        string
	OpenshiftVersion string
	Success          bool
}

Jump to

Keyboard shortcuts

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