clouds

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 12 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

The list that can be iterated

Functions

This section is empty.

Types

type AzureCli

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

func NewAzureCli

func NewAzureCli(ctx context.Context, subscriptionId, authLocationFileName string) (cli *AzureCli, err error)

func (*AzureCli) ExecCmd

func (cli *AzureCli) ExecCmd(ctx context.Context, cmd string) (output string, err error)

func (*AzureCli) ExecFileLineByLine

func (cli *AzureCli) ExecFileLineByLine(ctx context.Context, filename string) (err error)

func (*AzureCli) Login

func (cli *AzureCli) Login(ctx context.Context) (err error)

func (*AzureCli) ParseCmd

func (cli *AzureCli) ParseCmd(ctx context.Context, cmdString string) []string

type CloudBuilderInterface

type CloudBuilderInterface interface {
}

func GetBuilder

func GetBuilder(s string) CloudBuilderInterface

type CloudType

type CloudType int
const (
	CLOUDTYPE_UNDEFINED CloudType = iota
	CLOUDTYPE_GOOGLE_CLOUD
	CLOUDTYPE_AWS
	CLOUDTYPE_AZURE
)

func GetCloudType

func GetCloudType(s string) CloudType

func (CloudType) Cloud

func (d CloudType) Cloud() CloudType

func (CloudType) NewBuilder

func (d CloudType) NewBuilder() CloudBuilderInterface

func (CloudType) String

func (d CloudType) String() string

func (CloudType) Type

func (d CloudType) Type() string

type GCloudCli

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

func NewGCloudCli

func NewGCloudCli(ctx context.Context, projectId string, googleApplicationCredentialsFileLocation string) (*GCloudCli, error)

func (*GCloudCli) ExecCmd

func (cli *GCloudCli) ExecCmd(ctx context.Context, cmd string) (output string, err error)

func (*GCloudCli) ExecFileLineByLine

func (cli *GCloudCli) ExecFileLineByLine(ctx context.Context, filename string) (err error)

func (*GCloudCli) ParseCmd

func (cli *GCloudCli) ParseCmd(ctx context.Context, cmdString string) []string

func (*GCloudCli) SetProject

func (cli *GCloudCli) SetProject(projectId, googleApplicationCredentialsFileLocation string)

Jump to

Keyboard shortcuts

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