gcp

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compute

type Compute struct {
	Zone   string
	Region string
}

Compute ...

type Container

type Container struct {
	Cluster string
}

Container ...

type Core

type Core struct {
	Account string
	Project string
}

Core ...

type Provider

type Provider struct {
	URL       *url.URL
	SDKConfig *SDKConfig
	Product   string
	Ctx       *cli.Context
	Aliases   map[string]interface{}
	// contains filtered or unexported fields
}

Provider ...

func GetProvider

func GetProvider() (*Provider, error)

GetProvider ...

func (*Provider) GetCtxString

func (p *Provider) GetCtxString(str string) string

GetCtxString ...

func (*Provider) GetTargetURL

func (p *Provider) GetTargetURL() (string, error)

GetTargetURL ...

func (*Provider) Init

func (p *Provider) Init(c *cli.Context) error

Init ...

type SDKConfig

type SDKConfig struct {
	Core    *Core
	Compute *Compute
	Cluster *Container
}

SDKConfig ...

Jump to

Keyboard shortcuts

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