client

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 8 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) IsPullSecretDefined added in v1.28.0

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

func (*Client) SetConfig

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

func (*Client) SetPullSecret added in v1.28.0

func (c *Client) SetPullSecret(data string) 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) Telemetry added in v1.26.0

func (c *Client) Telemetry(action string) 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 {
	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 {
	Success bool
	Error   string
	Configs map[string]interface{}
}

getConfigResult struct is used to return the result of getconfig command

type GetOrUnsetConfigRequest added in v1.28.0

type GetOrUnsetConfigRequest struct {
	Properties []string `json:"properties"`
}

type Result

type Result struct {
	Success bool
	Error   string
}

type SetConfigRequest

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

type SetOrUnsetConfigResult

type SetOrUnsetConfigResult struct {
	Success    bool
	Error      string
	Properties []string
}

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

type StartConfig

type StartConfig struct {
	PullSecretFile string `json:"pullSecretFile"`
}

type StartResult

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

type TelemetryRequest added in v1.26.0

type TelemetryRequest struct {
	Action string `json:"action"`
	Source string `json:"source"`
	Status string `json:"status"`
}

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