settings

package
v0.0.0-...-194279b Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	Auth   AWSAuth `yaml:"auth,omitempty"`
	Region string  `yaml:"region,omitempty"`
}

func AWSEnv

func AWSEnv() AWS

func AWSPrompt

func AWSPrompt() (out AWS)

func (AWS) Details

func (a AWS) Details() biome.AWSDetails

type AWSAuth

type AWSAuth struct {
	AccessKeyID     string `yaml:"accessKeyID,omitempty"`
	SecretAccessKey string `yaml:"secretAccessKey,omitempty"`
}

func AWSAuthEnv

func AWSAuthEnv() AWSAuth

func AWSAuthPrompt

func AWSAuthPrompt() AWSAuth

type Cloud

type Cloud struct {
	Provider biome.CloudProvider `yaml:"provider,omitempty"`
	GCP      GCP                 `yaml:"gcpSettings,omitempty"`
	AWS      AWS                 `yaml:"awsSettings,omitempty"`
}

func CloudPrompt

func CloudPrompt() Cloud

func (Cloud) MkCloudAccess

func (c Cloud) MkCloudAccess() (out biome.CloudAccess, err error)

type GCP

type GCP struct {
	Auth       GCPAuth `yaml:"auth,omitempty"`
	Zone       string  `yaml:"zone,omitempty"`
	Project    string  `yaml:"project,omitempty"`
	Image      string  `yaml:"image,omitempty"`
	Network    string  `yaml:"network,omitempty"`
	SubNetwork string  `yaml:"subNetwork,omitempty"`
}

func GCPEnv

func GCPEnv() GCP

func GCPPrompt

func GCPPrompt() GCP

func (GCP) Details

func (g GCP) Details() (out biome.GCPDetails, err error)

type GCPAuth

type GCPAuth struct {
	UseAccessToken    bool   `yaml:"useAccessToken,omitempty"`
	ServiceAccountKey string `yaml:"serviceAccountKey,omitempty"`
}

func GCPAuthEnv

func GCPAuthEnv() GCPAuth

func GCPAuthPrompt

func GCPAuthPrompt() GCPAuth

func (GCPAuth) GetAuthToken

func (a GCPAuth) GetAuthToken() ([]byte, error)

Jump to

Keyboard shortcuts

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