cloudprovider

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 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
	// OpenStack is an open standard cloud computing platform.
	OpenStack
	// QEMU for a local emulated installation.
	QEMU
)

func FromString

func FromString(s string) Provider

FromString returns cloud provider from string.

func (Provider) MarshalJSON

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

MarshalJSON marshals the Provider to JSON string.

func (Provider) MarshalYAML

func (p Provider) MarshalYAML() (any, error)

MarshalYAML marshals the Provider to YAML string.

func (Provider) String

func (i Provider) String() string

func (*Provider) UnmarshalJSON

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

UnmarshalJSON unmarshals the Provider from JSON string.

func (*Provider) UnmarshalYAML

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

UnmarshalYAML unmarshals the Provider from YAML string.

type Tags

type Tags map[string]string

Tags is the type that holds additional tags for cloud resources.

Jump to

Keyboard shortcuts

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