common

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

Types

type KubernikusClient

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

func NewKubernikusClient

func NewKubernikusClient(url *url.URL, token string) *KubernikusClient

func (*KubernikusClient) CreateCluster

func (k *KubernikusClient) CreateCluster(cluster *models.Kluster) error

func (*KubernikusClient) DeleteCluster

func (k *KubernikusClient) DeleteCluster(name string) error

func (*KubernikusClient) GetCredentials

func (k *KubernikusClient) GetCredentials(name string) (string, error)

func (*KubernikusClient) GetDefaultCluster

func (k *KubernikusClient) GetDefaultCluster() (*models.Kluster, error)

func (*KubernikusClient) ListAllClusters

func (k *KubernikusClient) ListAllClusters() ([]*models.Kluster, error)

func (*KubernikusClient) ListNodePools added in v1.2.0

func (k *KubernikusClient) ListNodePools(clusterName string) ([]models.NodePool, error)

func (*KubernikusClient) ShowCluster

func (k *KubernikusClient) ShowCluster(name string) (*models.Kluster, error)

func (*KubernikusClient) ShowNodePool added in v1.2.0

func (k *KubernikusClient) ShowNodePool(clusterName string, nodePoolName string) (*models.NodePool, error)

type OpenstackClient

type OpenstackClient struct {
	*tokens.AuthOptions
	Provider *gophercloud.ProviderClient
	Identity *gophercloud.ServiceClient
}

func NewOpenstackClient

func NewOpenstackClient() *OpenstackClient

func (*OpenstackClient) Authenticate

func (o *OpenstackClient) Authenticate() error

func (*OpenstackClient) BindFlags

func (o *OpenstackClient) BindFlags(flags *pflag.FlagSet)

func (*OpenstackClient) Complete

func (o *OpenstackClient) Complete(args []string) error

func (*OpenstackClient) DefaultKubernikusURL

func (o *OpenstackClient) DefaultKubernikusURL() (*url.URL, error)

func (*OpenstackClient) PrintAuthInfo

func (o *OpenstackClient) PrintAuthInfo() string

func (*OpenstackClient) PrintDebugAuthInfo

func (o *OpenstackClient) PrintDebugAuthInfo() string

func (*OpenstackClient) Setup

func (o *OpenstackClient) Setup() error

func (*OpenstackClient) Validate

func (o *OpenstackClient) Validate(c *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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