provider

package
v0.1.443 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 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 Akamai )

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

func ParseProvider added in v0.1.5

func ParseProvider(name string) (Provider, error)

ParseProvider attempts to convert a string to a Provider.

func (*Provider) AppendText added in v0.1.278

func (x *Provider) AppendText(b []byte) ([]byte, error)

AppendText appends the textual representation of itself to the end of b (allocating a larger slice if necessary) and returns the updated slice.

Implementations must not retain b, nor mutate any bytes within b[:len(b)].

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