Documentation ¶
Index ¶
- Constants
- Variables
- func Connect(s userio.IOStreams, env *environment.Environment, c Commander, port int) error
- func OpenResource(resourceType ResourceType, env *environment.Environment) error
- func ResourceStringList() []string
- func Validate(ctx context.Context, env *environment.Environment, cmd Commander, ...) error
- type Command
- type Commander
- type ResourceType
- type TableEnv
Constants ¶
View Source
const ( GrafanaResourceType = "grafana" GrafanaContinuousLoadResourceType = "grafana/continuous-load" )
Variables ¶
View Source
var ( ErrCloudPlatformNotSupported = errors.New("cloud platform is not supported") ErrInvalidEnvironment = errors.New("environment is not valid") )
View Source
var (
ErrorUnknownResourceType = errors.New("unknown resource type")
)
Functions ¶
func Connect ¶
func Connect(s userio.IOStreams, env *environment.Environment, c Commander, port int) error
Connect establishes a connection with a gke cluster via a bastion host
func OpenResource ¶
func OpenResource(resourceType ResourceType, env *environment.Environment) error
func ResourceStringList ¶
func ResourceStringList() []string
func Validate ¶
func Validate(ctx context.Context, env *environment.Environment, cmd Commander, client *gcp.Client) error
Validate checks if the required tools and configurations for the environment are installed and set up correctly.
Types ¶
type Commander ¶
func NewCommand ¶
func NewCommand() Commander
type ResourceType ¶
type ResourceType string
type TableEnv ¶
type TableEnv struct {
// contains filtered or unexported fields
}
func (TableEnv) AppendEnv ¶
func (t TableEnv) AppendEnv(env environment.Environment)
Click to show internal directories.
Click to hide internal directories.