pks

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 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
}

Client handles interaction with the PKS API

func NewClient

func NewClient(addr string, httpClient *http.Client, log *logger.Logger) *Client

func (*Client) GetClusters

func (client *Client) GetClusters(authorization string) ([]Cluster, error)

func (*Client) GetCredentials

func (client *Client) GetCredentials(clusterName string, authorization string) (*Credentials, error)

type Cluster

type Cluster struct {
	Name      string
	MasterIps []string
}

type Credentials

type Credentials struct {
	CaData    string
	UserToken string
	Server    string
}

Jump to

Keyboard shortcuts

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