cliclient

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProject

func CheckProject(s string) []string

CheckProject verifies s matches the valid project ID of <cluster>:<project>

func SplitOnColon

func SplitOnColon(s string) []string

Types

type MasterClient

type MasterClient struct {
	ClusterClient    *clusterClient.Client
	ManagementClient *managementClient.Client
	ProjectClient    *projectClient.Client
	UserConfig       *config.ServerConfig
}

func NewClusterClient

func NewClusterClient(config *config.ServerConfig) (*MasterClient, error)

NewClusterClient returns a new MasterClient with only the Cluster client

func NewManagementClient

func NewManagementClient(config *config.ServerConfig) (*MasterClient, error)

NewManagementClient returns a new MasterClient with only the Management client

func NewMasterClient

func NewMasterClient(config *config.ServerConfig) (*MasterClient, error)

NewMasterClient returns a new MasterClient with Cluster, Management and Project clients populated

func NewProjectClient

func NewProjectClient(config *config.ServerConfig) (*MasterClient, error)

NewProjectClient returns a new MasterClient with only the Project client

Jump to

Keyboard shortcuts

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