scaleway

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: MPL-2.0 Imports: 48 Imported by: 1

Documentation

Index

Constants

View Source
const (
	InstanceServerStateStopped = "stopped"
	InstanceServerStateStarted = "started"
	InstanceServerStateStandby = "standby"

	InstanceServerWaitForTimeout = 10 * time.Minute
)
View Source
const (
	K8SClusterWaitForReadyTimeout        = 10 * time.Minute
	K8SClusterWaitForPoolRequiredTimeout = 10 * time.Minute
	K8SClusterWaitForDeletedTimeout      = 10 * time.Minute
	K8SPoolWaitForReadyTimeout           = 10 * time.Minute
)
View Source
const (
	LbWaitForTimeout = 10 * time.Minute
)
View Source
const (
	RdbWaitForTimeout = 10 * time.Minute
)

Variables

View Source
var ErrOrganizationIDNotFound = fmt.Errorf("could not detect organization_id")

ErrOrganizationIDNotFound is returned when no organization_id can be detected

View Source
var ErrRegionNotFound = fmt.Errorf("could not detect region")

ErrRegionNotFound is returned when no region can be detected

View Source
var ErrZoneNotFound = fmt.Errorf("could not detect zone. Scaleway uses regions and zones. For more information, refer to https://www.terraform.io/docs/providers/scaleway/guides/regions_and_zones.html")

ErrZoneNotFound is returned when no zone can be detected

View Source
var UUIDRegex = regexp.MustCompile(`[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}`)

Functions

func Bool

func Bool(val bool) *bool

Bool returns a pointer to of the bool value passed in.

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

func String

func String(val string) *string

String returns a pointer to of the string value passed in.

Types

type KubeconfigStruct added in v1.12.0

type KubeconfigStruct struct {
	ApiVersion string `yaml:"apiVersion"`
	Clusters   []struct {
		Name    string `yaml:"name"`
		Cluster struct {
			CertificateAuthorityData string `yaml:"certificate-authority-data"`
			Server                   string `yaml:"server"`
		} `yaml:"cluster"`
	} `yaml:"clusters"`
	Contexts []struct {
		Name    string `yaml:"name"`
		Context struct {
			Cluster string `yaml:"cluster"`
			User    string `yaml:"user"`
		} `yaml:"context"`
	} `yaml:"contexts"`
	Kind  string `yaml:"kind"`
	Users []struct {
		Name string `yaml:"name"`
		User struct {
			Token string `yaml:"token"`
		} `yaml:"user"`
	} `yaml:"users"`
}

type Meta added in v1.11.0

type Meta struct {
	AccessKey             string
	SecretKey             string
	DefaultOrganizationID string
	DefaultRegion         scw.Region
	DefaultZone           scw.Zone
	TerraformVersion      string
	// contains filtered or unexported fields
}

Meta contains config and SDK clients used by resources.

This meta value is passed into all resources.

type RegionalID added in v1.15.0

type RegionalID struct {
	ID     string
	Region scw.Region
}

RegionalID represents an ID that is linked with a region, eg fr-par/11111111-1111-1111-1111-111111111111

func (RegionalID) String added in v1.15.0

func (z RegionalID) String() string

type ZonedID added in v1.15.0

type ZonedID struct {
	ID   string
	Zone scw.Zone
}

ZonedID represents an ID that is linked with a zone, eg fr-par-1/11111111-1111-1111-1111-111111111111

func (ZonedID) String added in v1.15.0

func (z ZonedID) String() string

Source Files

Jump to

Keyboard shortcuts

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