options

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SCW_DEFAULT_PROJECT_ID      = "SCW_DEFAULT_PROJECT_ID"
	SCW_DEFAULT_ORGANIZATION_ID = "SCW_DEFAULT_ORGANIZATION_ID"
	SCW_DEFAULT_REGION          = "SCW_DEFAULT_REGION"
	SCW_DEFAULT_ZONE            = "SCW_DEFAULT_ZONE"
	SCW_COMMERCIAL_TYPE         = "SCW_COMMERCIAL_TYPE"
	SCW_IMAGE                   = "SCW_IMAGE"
	SCW_DISK_SIZE               = "SCW_DISK_SIZE"
	MACHINE_ID                  = "MACHINE_ID"
	MACHINE_FOLDER              = "MACHINE_FOLDER"
)

Functions

This section is empty.

Types

type Options

type Options struct {
	Image          string
	CommercialType string
	DiskSizeGB     string
	Zone           string
	OrganizationID string
	ProjectID      string
	ServerID       string

	MachineID     string
	MachineFolder string
}

func ConfigFromEnv

func ConfigFromEnv() (Options, error)

func FromEnv

func FromEnv(init bool) (*Options, error)

Jump to

Keyboard shortcuts

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