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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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