common

package
v1.3.15 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AwsPrefixEnv       = "AWS_PREFIX"
	PrefixEnv          = "PREFIX"
	GCloudProjectIdEnv = "PROJECT_ID"
	GCloudLocationEnv  = "LOCATION"
	GCloudZoneEnv      = "ZONE"
)

Variables

This section is empty.

Functions

func ChooseLogger

func ChooseLogger(loggingLvl string)

func PrintError

func PrintError(err error)

func PrintVersion

func PrintVersion()

func PrintWarning

func PrintWarning(message string)

Types

type AWS

type AWS struct {
	RoleArn string
}

type Command

type Command string
const (
	RunCommand       Command = "run"
	BootstrapCommand Command = "bootstrap"
	DeleteCommand    Command = "delete"
	UpdateCommand    Command = "update"
	SACommand        Command = "service-account"
	PullCommand      Command = "pull"
)

type DeleteFlags

type DeleteFlags struct {
	DeleteBucket         bool
	DeleteServiceAccount bool
	SkipConfirmation     bool
}

type Flags

type Flags struct {
	LogLevel                string
	Config                  string
	Prefix                  string
	AllowParallel           bool
	GithubToken             string
	Force                   bool
	SkipBucketCreationDelay bool
	Steps                   cli.StringSlice
	Pipeline                Pipeline
	GCloud                  GCloud
	AWS                     AWS
	Delete                  DeleteFlags
}

func (*Flags) Setup

func (f *Flags) Setup(cmd Command) error

type GCloud

type GCloud struct {
	ProjectId string
	Location  string
	Zone      string
}

type LogLevel

type LogLevel string
const (
	DebugLogLevel LogLevel = "debug"
	ProdLogLevel  LogLevel = "info"
	WarnLogLevel  LogLevel = "warn"
	ErrorLogLevel LogLevel = "error"
)

type Pipeline added in v1.2.0

type Pipeline struct {
	Type      string
	LogsPath  string
	PrintLogs bool
}

type PipelineType added in v1.2.0

type PipelineType string
const (
	PipelineTypeLocal PipelineType = "local"
	PipelineTypeCloud PipelineType = "cloud"
)

type PrefixedError

type PrefixedError struct {
	Reason error
}

func (*PrefixedError) Error

func (pe *PrefixedError) Error() string

type Version

type Version struct {
	Version   string
	BuildDate string
	GitCommit string
	GitTag    string
	GoVersion string
	Compiler  string
	Platform  string
}

Version contains agent version information

func (Version) String

func (v Version) String() string

type Warning

type Warning struct {
	Reason error
}

func (*Warning) Error

func (w *Warning) Error() string

Jump to

Keyboard shortcuts

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