support

package
v0.0.0-...-105ea73 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KopsSupport

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

KopsSupport provides functionality that supports the running of kops commands. This includes creating and validating gcp cloud resources needed to successfully run the provisioner.

func NewKopsSupport

func NewKopsSupport(cfg KopsSupportConfig) *KopsSupport

func (*KopsSupport) CredentialsFile

func (ki *KopsSupport) CredentialsFile(ctx context.Context) (string, errors.Error)

CredentialsFile returns the path to the gcp service account file that is used to authenticate with google cloud apis

func (*KopsSupport) EnvironmentVariables

func (ki *KopsSupport) EnvironmentVariables(ctx context.Context) ([]string, errors.Error)

func (*KopsSupport) PlatformID

func (ki *KopsSupport) PlatformID() string

func (*KopsSupport) SSHPublicKey

func (ki *KopsSupport) SSHPublicKey(ctx context.Context) (string, errors.Error)

func (*KopsSupport) StateStoreURL

func (ki *KopsSupport) StateStoreURL(ctx context.Context) (*url.URL, errors.Error)

StateStore checks if the bucket exists and creates it if it doesn't. Then it will return a url to the storage bucket suitable for kops.

type KopsSupportConfig

type KopsSupportConfig struct {
	ProjectID                string
	ServiceAccountFileBase64 string
	StateStoreName           string
	WorkDir                  string
}

Jump to

Keyboard shortcuts

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