cloudprovider

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 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 Provider = iota
	AWS
	Azure
	GCP
	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) 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.

Jump to

Keyboard shortcuts

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