provider

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidProvider = errors.New("not a valid Provider")
View Source
var ProviderMap = _ProviderMap

re-export ProviderMap

Functions

This section is empty.

Types

type Provider

type Provider int

ENUM( Unknown Aws Alibaba Azure Cloudflare Digitalocean Fastly Gcp Ibm Linode Oracle Ovh Scaleway Tencent Ucloud Vercel )

const (
	Unknown Provider = iota
	Aws
	Alibaba
	Azure
	Cloudflare
	Digitalocean
	Fastly
	Gcp
	Ibm
	Linode
	Oracle
	Ovh
	Scaleway
	Tencent
	Ucloud
	Vercel
)

func ParseProvider added in v0.1.5

func ParseProvider(name string) (Provider, error)

ParseProvider attempts to convert a string to a Provider.

func (Provider) IsValid added in v0.1.5

func (x Provider) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (Provider) MarshalText added in v0.1.5

func (x Provider) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method.

func (Provider) String

func (x Provider) String() string

String implements the Stringer interface.

func (*Provider) UnmarshalText added in v0.1.5

func (x *Provider) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method.

Jump to

Keyboard shortcuts

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