client

package
v0.1.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: MPL-2.0 Imports: 13 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
}

Client implements the proto.OSDClient interface. It serves as the concrete type with the required methods.

func NewClient

func NewClient(port int, clientcreds *Credentials) (c *Client, err error)

NewClient initializes a Client.

func (*Client) Dmesg

func (c *Client) Dmesg() (err error)

Dmesg implements the proto.OSDClient interface. nolint: dupl

func (*Client) Kubeconfig

func (c *Client) Kubeconfig() (err error)

Kubeconfig implements the proto.OSDClient interface.

func (*Client) Logs

func (c *Client) Logs(r *proto.LogsRequest) (err error)

Logs implements the proto.OSDClient interface.

func (*Client) Processes

func (c *Client) Processes() (err error)

Processes implements the proto.OSDClient interface.

func (*Client) Reboot

func (c *Client) Reboot() (err error)

Reboot implements the proto.OSDClient interface.

func (*Client) Reset

func (c *Client) Reset() (err error)

Reset implements the proto.OSDClient interface.

func (*Client) Restart

func (c *Client) Restart(r *proto.RestartRequest) (err error)

Restart implements the proto.OSDClient interface.

func (*Client) Version

func (c *Client) Version() (err error)

Version implements the proto.OSDClient interface. nolint: dupl

type Credentials

type Credentials struct {
	// contains filtered or unexported fields
}

Credentials represents the set of values required to initialize a vaild Client.

func NewDefaultClientCredentials

func NewDefaultClientCredentials() (creds *Credentials, err error)

NewDefaultClientCredentials initializes ClientCredentials using default paths to the required CA, certificate, and key.

Jump to

Keyboard shortcuts

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