cmagrpc

package
v0.0.0-...-5ef725e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 6 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 (*Client) Close

func (a *Client) Close() error

func (*Client) CreateNewClient

func (a *Client) CreateNewClient(hostname string, insecure bool) error

func (*Client) GetCluster

func (a *Client) GetCluster(input GetClusterInput) (GetClusterOutput, error)

func (*Client) SetClient

func (a *Client) SetClient(client pb.ClusterClient)

type ClientInterface

type ClientInterface interface {
	GetCluster(GetClusterInput) (GetClusterOutput, error)
	CreateNewClient(string, bool) error
	Close() error
	SetClient(client pb.ClusterClient)
}

func CreateNewClient

func CreateNewClient(hostname string, insecure bool) (ClientInterface, error)

func CreateNewDefaultClient

func CreateNewDefaultClient() (ClientInterface, error)

type GetClusterInput

type GetClusterInput struct {
	Name     string
	Provider string
}

type GetClusterOutput

type GetClusterOutput struct {
	ID          string
	Name        string
	Status      string
	Kubeconfig  string
	Bearertoken string
}

Jump to

Keyboard shortcuts

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