cloudprovider

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider uint32

Provider is cloud provider used by the CLI.

const (
	// Unknown is default value for Provider.
	Unknown Provider = iota
	// AWS is Amazon Web Services.
	AWS
	// Azure cloud.
	Azure
	// GCP is Google Compute Platform.
	GCP
	// QEMU for a local emulated installation.
	QEMU
)

func FromString

func FromString(s string) Provider

FromString returns cloud provider from string.

func (Provider) MarshalJSON added in v2.2.0

func (p Provider) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Provider to JSON string.

func (Provider) MarshalYAML added in v2.3.0

func (p Provider) MarshalYAML() (interface{}, error)

MarshalYAML marshals the Provider to YAML string.

func (Provider) String

func (i Provider) String() string

func (*Provider) UnmarshalJSON added in v2.2.0

func (p *Provider) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Provider from JSON string.

func (*Provider) UnmarshalYAML added in v2.3.0

func (p *Provider) UnmarshalYAML(unmarshal func(any) error) error

UnmarshalYAML unmarshals the Provider from YAML string.

Jump to

Keyboard shortcuts

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