v1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type MigConfigSpec

type MigConfigSpec struct {
	DeviceFilter interface{}     `json:"device-filter,omitempty" yaml:"device-filter,flow,omitempty"`
	Devices      interface{}     `json:"devices"                 yaml:"devices,flow"`
	MigEnabled   bool            `json:"mig-enabled"             yaml:"mig-enabled"`
	MigDevices   types.MigConfig `json:"mig-devices"             yaml:"mig-devices"`
}

func (*MigConfigSpec) MatchesDeviceFilter

func (ms *MigConfigSpec) MatchesDeviceFilter(deviceID types.DeviceID) bool

func (*MigConfigSpec) MatchesDevices

func (ms *MigConfigSpec) MatchesDevices(index int) bool

func (*MigConfigSpec) UnmarshalJSON

func (s *MigConfigSpec) UnmarshalJSON(b []byte) error

type MigConfigSpecSlice

type MigConfigSpecSlice []MigConfigSpec

type Spec

type Spec struct {
	Version    string                        `json:"version"               yaml:"version"`
	MigConfigs map[string]MigConfigSpecSlice `json:"mig-configs,omitempty" yaml:"mig-configs,omitempty"`
}

func (*Spec) UnmarshalJSON

func (s *Spec) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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