ssh

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMASshEndpointViperVariableName = "cmassh-endpoint"
	CMASshInsecureViperVariableName = "cmassh-insecure"
	NotEnabledErrorMessage          = "ssh support is not enabled"
)

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled() bool

Types

type Client

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

func (*Client) AdjustCluster

func (c *Client) AdjustCluster(in *pb.AdjustClusterMsg) (*pb.AdjustClusterReply, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) ClusterUpgrade

func (c *Client) ClusterUpgrade(in *pb.UpgradeClusterMsg) (output *pb.UpgradeClusterReply, err error)

func (*Client) CreateCluster

func (c *Client) CreateCluster(in *pb.CreateClusterMsg) (*pb.CreateClusterReply, error)

func (*Client) CreateNewClients

func (c *Client) CreateNewClients() error

func (*Client) DeleteCluster

func (c *Client) DeleteCluster(in *pb.DeleteClusterMsg) (*pb.DeleteClusterReply, error)

func (*Client) GetCluster

func (c *Client) GetCluster(in *pb.GetClusterMsg) (*pb.GetClusterReply, error)

func (*Client) GetClusterList

func (c *Client) GetClusterList(in *pb.GetClusterListMsg) (*pb.GetClusterListReply, error)

func (*Client) GetClusterUpgrades

func (c *Client) GetClusterUpgrades(in *pb.GetUpgradeClusterInformationMsg) (output *pb.GetUpgradeClusterInformationReply, err error)

func (*Client) SetCMAK8sClient

func (c *Client) SetCMAK8sClient(client cmak8sutil.ClientInterface)

func (*Client) SetCMASshClient

func (c *Client) SetCMASshClient(client cmassh.ClientInterface)

type ClientInterface

type ClientInterface interface {
	CreateCluster(in *pb.CreateClusterMsg) (*pb.CreateClusterReply, error)
	GetCluster(in *pb.GetClusterMsg) (*pb.GetClusterReply, error)
	GetClusterList(in *pb.GetClusterListMsg) (*pb.GetClusterListReply, error)
	DeleteCluster(in *pb.DeleteClusterMsg) (*pb.DeleteClusterReply, error)
	GetClusterUpgrades(in *pb.GetUpgradeClusterInformationMsg) (output *pb.GetUpgradeClusterInformationReply, err error)
	ClusterUpgrade(in *pb.UpgradeClusterMsg) (output *pb.UpgradeClusterReply, err error)
	AdjustCluster(in *pb.AdjustClusterMsg) (*pb.AdjustClusterReply, error)

	SetCMASshClient(client cmassh.ClientInterface)
	SetCMAK8sClient(client cmak8sutil.ClientInterface)
	Close() error
}

func CreateFromDefaults

func CreateFromDefaults() (ClientInterface, error)

Jump to

Keyboard shortcuts

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