provider

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownLocation = errors.New("unknown location")
)
View Source
var (
	ErrUnknownType = errors.New("unknown type")
)

Functions

This section is empty.

Types

type Identifier

type Identifier string

func IdentifierFromString

func IdentifierFromString(id string) (Identifier, error)

func (Identifier) String

func (i Identifier) String() string

type Location

type Location string

func LocationFromString

func LocationFromString(location string) (Location, error)

func (Location) String

func (l Location) String() string

type Provider

type Provider struct {
	Name     Identifier
	Platform Type
}

type Type

type Type int
const (
	TypeUnknown Type = iota
	TypeAwsEcs
	TypeAwsEc2
	TypeLinode
	TypeHetzner
)

func TypeFromString

func TypeFromString(s string) (Type, error)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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