types

package
v0.0.0-...-632707f Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedValue

type FixedValue interface {
	IsValid() bool
	IsUnknown() bool

	Marshaler
}

type FixedValuePtr

type FixedValuePtr interface {
	FixedValue

	Unmarshaler
	json.Unmarshaler
}

type Marshaler

type Marshaler interface {
	Marshal() (string, error)
}

type Properties

type Properties map[string]interface{}

func (Properties) GetAsDict

func (obj Properties) GetAsDict(
	key, listSeparator, keyValueSeparator string,
	allowNoValue bool,
) (types.PVEDictionary, error)

func (Properties) GetAsList

func (obj Properties) GetAsList(key, separator string) (types.PVEList, error)

func (Properties) SetBool

func (props Properties) SetBool(
	key string,
	ptr *bool,
	def bool,
	funcs *schema.BoolFunctions,
) error

func (Properties) SetFixedValue

func (props Properties) SetFixedValue(
	key string,
	ptr FixedValuePtr,
	def FixedValue,
	validate func(FixedValue) bool,
) error

func (Properties) SetInt

func (props Properties) SetInt(
	key string,
	ptr *int,
	def int,
	funcs *schema.IntFunctions,
) error

func (Properties) SetRequiredBool

func (props Properties) SetRequiredBool(
	key string,
	ptr *bool,
	funcs *schema.BoolFunctions,
) error

func (Properties) SetRequiredFixedValue

func (props Properties) SetRequiredFixedValue(
	key string,
	ptr FixedValuePtr,
	validate func(FixedValue) bool,
) error

func (Properties) SetRequiredInt

func (props Properties) SetRequiredInt(
	key string,
	ptr *int,
	funcs *schema.IntFunctions,
) error

func (Properties) SetRequiredString

func (props Properties) SetRequiredString(
	key string,
	ptr *string,
	funcs *schema.StringFunctions,
) error

func (Properties) SetRequiredUint

func (props Properties) SetRequiredUint(
	key string,
	ptr *uint,
	funcs *schema.UintFunctions,
) error

func (Properties) SetRequiredUintFromString

func (props Properties) SetRequiredUintFromString(
	key string,
	ptr *uint,
	funcs *schema.UintFunctions,
) error

func (Properties) SetString

func (props Properties) SetString(
	key string,
	ptr *string,
	def string,
	funcs *schema.StringFunctions,
) error

func (Properties) SetUint

func (props Properties) SetUint(
	key string,
	ptr *uint,
	def uint,
	funcs *schema.UintFunctions,
) error

func (Properties) SetUintFromString

func (props Properties) SetUintFromString(
	key string,
	ptr *uint,
	def uint,
	funcs *schema.UintFunctions,
) error

type Unmarshaler

type Unmarshaler interface {
	Unmarshal(s string) error
}

type Version

type Version struct {
	Release string `json:"release"`
	Version string `json:"version"`
	RepoID  string `json:"repoid"`
}

Directories

Path Synopsis
vm
lxc

Jump to

Keyboard shortcuts

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