lxd: github.com/lxc/lxd/lxd/resources Index | Files

package resources

import "github.com/lxc/lxd/lxd/resources"

Index

Package Files

cpu.go gpu.go memory.go network.go network_ethtool.go resources.go storage.go utils.go

func GetCPU Uses

func GetCPU() (*api.ResourcesCPU, error)

GetCPU returns a filled api.ResourcesCPU struct ready for use by LXD

func GetGPU Uses

func GetGPU() (*api.ResourcesGPU, error)

GetGPU returns a filled api.ResourcesGPU struct ready for use by LXD

func GetMemory Uses

func GetMemory() (*api.ResourcesMemory, error)

GetMemory returns a filled api.ResourcesMemory struct ready for use by LXD

func GetNetwork Uses

func GetNetwork() (*api.ResourcesNetwork, error)

GetNetwork returns a filled api.ResourcesNetwork struct ready for use by LXD

func GetResources Uses

func GetResources() (*api.Resources, error)

GetResources returns a filled api.Resources struct ready for use by LXD

func GetStorage Uses

func GetStorage() (*api.ResourcesStorage, error)

GetStorage returns a filled api.ResourcesStorage struct ready for use by LXD

Package resources imports 18 packages (graph) and is imported by 6 packages. Updated 2019-10-18. Refresh now. Tools for package owners.