env

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrafanaResourceType               = "grafana"
	GrafanaContinuousLoadResourceType = "grafana/continuous-load"
)
View Source
const BastionSquidProxyPort = 3128
View Source
const DefaultInterfaceName = "nic0"
View Source
const DefaultZone = "europe-west2-a"
View Source
const KubeNamespace = "default"

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(opts EnvConnectOpts) error

Connect establishes a connection with a gke cluster via a bastion host

func OpenResource

func OpenResource(resourceType ResourceType, env *environment.Environment) (string, error)

func ResourceStringList

func ResourceStringList() []string

func Validate

func Validate(ctx context.Context, env *environment.Environment, cmd command.Commander, client *gcp.Client) error

Validate checks if the required tools and configurations for the environment are installed and set up correctly.

Types

type EnvConnectOpts added in v0.26.0

type EnvConnectOpts struct {
	Port               int
	Environment        *environment.Environment
	RepositoryLocation string
	ProjectID          string
	Region             string
	Streams            userio.IOStreams
	SilentExec         Commander
	Exec               Commander
	GcpClient          *gcp.Client
	Command            []string
	SkipTunnel         bool
}

type ResourceType

type ResourceType string

type TableEnv

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

func NewTable

func NewTable(streams userio.IOStreams) TableEnv

func (TableEnv) AppendEnv

func (t TableEnv) AppendEnv(env environment.Environment)

func (TableEnv) AppendRow

func (t TableEnv) AppendRow(name, id, platform string)

func (TableEnv) Render

func (t TableEnv) Render() string

Directories

Path Synopsis
Adapted from https://github.com/cedws/iapc/blob/master/internal/proxy/proxy.go
Adapted from https://github.com/cedws/iapc/blob/master/internal/proxy/proxy.go

Jump to

Keyboard shortcuts

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