types

package
v0.0.0-...-f4e8587 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device map[string]string

Device represents a LXD container device

type Devices

type Devices map[string]map[string]string

Devices represents a set of LXD container devices

func (Devices) Contains

func (list Devices) Contains(k string, d Device) bool

Contains checks if a given device exists in the set and if it's identical to that provided

func (Devices) DeviceNames

func (list Devices) DeviceNames() []string

DeviceNames returns the name of all devices in the set, sorted properly

func (Devices) Update

func (list Devices) Update(newlist Devices) (map[string]Device, map[string]Device, map[string]Device, []string)

Update returns the difference between two sets

Jump to

Keyboard shortcuts

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