types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VisibilityPrivate Visibility = "private"
	VisibilityShared  Visibility = "shared"
	VisibilityPublic  Visibility = "public"

	HwMachineI440 HwMachineType = "i440"
	HwMachineQ35  HwMachineType = "q35"

	SSHKeyAllow    SSHKeyType = "allow"
	SSHKeyDeny     SSHKeyType = "deny"
	SSHKeyRequired SSHKeyType = "required"

	OsLinux   OSType = "linux"
	OsWindows OSType = "windows"

	HwFirmwareBIOS HwFirmwareType = "bios"
	HwFirmwareUEFI HwFirmwareType = "uefi"

	ImageSourceVolume ImageSourceType = "volume"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HwFirmwareType

type HwFirmwareType string

HwFirmwareType specifies the type of firmware with which to boot the guest.

func (HwFirmwareType) IsValid

func (v HwFirmwareType) IsValid() error

func (HwFirmwareType) List

func (v HwFirmwareType) List() []HwFirmwareType

func (*HwFirmwareType) MarshalJSON

func (v *HwFirmwareType) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface for HwFirmwareType.

func (HwFirmwareType) String

func (v HwFirmwareType) String() string

func (HwFirmwareType) StringList

func (v HwFirmwareType) StringList() []string

func (*HwFirmwareType) UnmarshalJSON

func (v *HwFirmwareType) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface for HwFirmwareType.

func (HwFirmwareType) ValidOrNil

func (v HwFirmwareType) ValidOrNil() (*HwFirmwareType, error)

type HwMachineType

type HwMachineType string

HwMachineType virtual chipset type.

func (HwMachineType) IsValid

func (v HwMachineType) IsValid() error

func (HwMachineType) List

func (v HwMachineType) List() []HwMachineType

func (*HwMachineType) MarshalJSON

func (v *HwMachineType) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface for HwMachineType.

func (HwMachineType) String

func (v HwMachineType) String() string

func (HwMachineType) StringList

func (v HwMachineType) StringList() []string

func (*HwMachineType) UnmarshalJSON

func (v *HwMachineType) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface for HwMachineType.

func (HwMachineType) ValidOrNil

func (v HwMachineType) ValidOrNil() (*HwMachineType, error)

type ImageSourceType

type ImageSourceType string

func (ImageSourceType) IsValid

func (v ImageSourceType) IsValid() error

func (ImageSourceType) List

func (v ImageSourceType) List() []ImageSourceType

func (*ImageSourceType) MarshalJSON

func (v *ImageSourceType) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface for ImageSourceType.

func (ImageSourceType) String

func (v ImageSourceType) String() string

func (ImageSourceType) StringList

func (v ImageSourceType) StringList() []string

func (*ImageSourceType) UnmarshalJSON

func (v *ImageSourceType) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface for ImageSourceType.

func (ImageSourceType) ValidOrNil

func (v ImageSourceType) ValidOrNil() (*ImageSourceType, error)

type OSType

type OSType string

OSType the operating system installed on the image.

func (OSType) IsValid

func (v OSType) IsValid() error

func (OSType) List

func (v OSType) List() []OSType

func (*OSType) MarshalJSON

func (v *OSType) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface for OSType.

func (OSType) String

func (v OSType) String() string

func (OSType) StringList

func (v OSType) StringList() []string

func (*OSType) UnmarshalJSON

func (v *OSType) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface for OSType.

func (OSType) ValidOrNil

func (v OSType) ValidOrNil() (*OSType, error)

type SSHKeyType added in v0.1.4

type SSHKeyType string

SSHKeyType whether the image supports SSH key or not.

func (SSHKeyType) IsValid added in v0.1.4

func (v SSHKeyType) IsValid() error

func (SSHKeyType) List added in v0.1.4

func (v SSHKeyType) List() []SSHKeyType

func (*SSHKeyType) MarshalJSON added in v0.1.4

func (v *SSHKeyType) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface for SSHKeyType.

func (SSHKeyType) String added in v0.1.4

func (v SSHKeyType) String() string

func (SSHKeyType) StringList added in v0.1.4

func (v SSHKeyType) StringList() []string

func (*SSHKeyType) UnmarshalJSON added in v0.1.4

func (v *SSHKeyType) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface for SSHKeyType.

func (SSHKeyType) ValidOrNil added in v0.1.4

func (v SSHKeyType) ValidOrNil() (*SSHKeyType, error)

type Visibility

type Visibility string

func (Visibility) IsValid

func (v Visibility) IsValid() error

func (Visibility) List

func (v Visibility) List() []Visibility

func (*Visibility) MarshalJSON

func (v *Visibility) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface for Visibility.

func (Visibility) String

func (v Visibility) String() string

func (Visibility) StringList

func (v Visibility) StringList() []string

func (*Visibility) UnmarshalJSON

func (v *Visibility) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface for Visibility.

func (Visibility) ValidOrNil

func (v Visibility) ValidOrNil() (*Visibility, error)

Jump to

Keyboard shortcuts

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