config

package
v0.59.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FIXME: defaultZone is used for global resources management, as at the
	//  time of this implementation the Exoscale public API V2 doesn't
	//  expose a global endpoint – only zone-local endpoints.
	//  This should be removed once the Exoscale public API V2 exposes a
	//  global endpoint.
	DefaultZone = "ch-gva-2"

	DefaultEnvironment = "api"
	DefaultTimeout     = 5 * time.Minute

	ComputeMaxUserDataLength = 32768
)

Variables

View Source
var Zones = []string{
	"ch-gva-2",
	"ch-dk-2",
	"at-vie-1",
	"at-vie-2",
	"de-fra-1",
	"bg-sof-1",
	"de-muc-1",
}

Functions

func GetClient

func GetClient(meta interface{}) (*egoscale.Client, error)

GetClient builds egoscale client from configuration parameters in meta field

func GetClientV3 added in v0.58.0

func GetClientV3(meta interface{}) (*v3.Client, error)

GetClientV3 builds egoscale v3 client from configuration parameters in meta field

func GetClientV3WithZone added in v0.59.0

func GetClientV3WithZone(ctx context.Context, meta interface{}, zone string) (*v3.Client, error)

func GetEnvironment

func GetEnvironment(meta interface{}) string

GetEnvironment returns current environment

Types

This section is empty.

Jump to

Keyboard shortcuts

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