propertiesv1

package
v19.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostDescription

type HostDescription struct {
	Created time.Time `json:"created,omitempty"`  // tells when the host has been created
	Creator string    `json:"creator,omitempty"`  // contains information (forged) about the creator of a host
	Updated time.Time `json:"modified,omitempty"` // tells the last time the host has been modified
	Purpose string    `json:"purpose,omitempty"`  // contains a description of the use of a host
	Tenant  string    `json:"tenant"`             // contains the tenant name used to create the host
}

HostDescription contains description information for the host not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewHostDescription

func NewHostDescription() *HostDescription

NewHostDescription ...

func (*HostDescription) Clone

func (hd *HostDescription) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*HostDescription) Content

func (hd *HostDescription) Content() interface{}

Content ... (serialize.Property interface)

func (*HostDescription) Replace

Replace ... (serialize.Property interface)

func (*HostDescription) Reset

func (hd *HostDescription) Reset()

Reset returns a blank HostDescription

type HostFeatures

type HostFeatures struct {
	Installed map[string]*HostInstalledFeature `json:"installed,omitempty"` // list of installed features, indexed on feature name
}

HostFeatures ... not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewHostFeatures

func NewHostFeatures() *HostFeatures

NewHostFeatures ...

func (*HostFeatures) Reset

func (p *HostFeatures) Reset()

Reset resets the content of the property

type HostInstalledFeature

type HostInstalledFeature struct {
	HostContext bool     `json:"host_context,omitempty"` // tells if the feature has been explicitly installed for host (opposed to for cluster)
	RequiredBy  []string `json:"required_by,omitempty"`  // tells what feature(s) needs this one
	Requires    []string `json:"requires,omitempty"`
}

HostInstalledFeature ... not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental/overriding fields

func NewHostInstalledFeature

func NewHostInstalledFeature() *HostInstalledFeature

NewHostInstalledFeature ...

func (*HostInstalledFeature) Reset

func (p *HostInstalledFeature) Reset()

Reset resets the content of the property

type HostLocalMount

type HostLocalMount struct {
	Device     string `json:"device"`            // Device is the name of the device (/dev/... for local mount, host:/path for remote mount)
	Path       string `json:"mountpoint"`        // Path is the mount point of the device
	FileSystem string `json:"file_system"`       // FileSystem tells the filesystem used
	Options    string `json:"options,omitempty"` // Options contains the mount options
}

HostLocalMount stores information about a device (as an attached volume) mount not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental/overriding fields

func NewHostLocalMount

func NewHostLocalMount() *HostLocalMount

NewHostLocalMount ...

func (*HostLocalMount) Reset

func (p *HostLocalMount) Reset()

Reset ...

type HostMounts

type HostMounts struct {
	LocalMountsByDevice   map[string]string           `json:"local_mounts_by_device"`  // contains local mount path, indexed by devices
	LocalMountsByPath     map[string]*HostLocalMount  `json:"local_mounts_by_path"`    // contains HostLocalMount structs, indexed by path
	RemoteMountsByShareID map[string]string           `json:"remote_mounts_by_device"` // contains local mount path, indexed by Share ID
	RemoteMountsByExport  map[string]string           `json:"remote_mounts_by_export"` // contains local mount path, indexed by export
	RemoteMountsByPath    map[string]*HostRemoteMount `json:"remote_mounts_by_path"`   // contains HostRemoteMount, indexed by path
}

HostMounts contains information about mounts on the host not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental/overriding fields

func NewHostMounts

func NewHostMounts() *HostMounts

NewHostMounts ...

func (*HostMounts) Clone

func (hm *HostMounts) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*HostMounts) Content

func (hm *HostMounts) Content() interface{}

Content ... (serialize.Property interface)

func (*HostMounts) Replace

Replace ... (serialize.Property interface)

func (*HostMounts) Reset

func (hm *HostMounts) Reset()

Reset ...

type HostNetwork

type HostNetwork struct {
	IsGateway               bool              `json:"is_gateway,omitempty"`                 // Tells if host is a gateway of a network
	DefaultGatewayID        string            `json:"default_gateway_id,omitempty"`         // contains the ID of the Default Gateway
	DefaultGatewayPrivateIP string            `json:"default_gateway_private_ip,omitempty"` // contains the private IP of the default gateway
	DefaultNetworkID        string            `json:"default_network_id,omitempty"`         // contains the ID of the default Network
	NetworksByID            map[string]string `json:"networks_by_id,omitempty"`             // contains the name of each network binded to the host (indexed by ID)
	NetworksByName          map[string]string `json:"networks_by_name,omitempty"`           // contains the ID of each network binded to the host (indexed by Name)
	PublicIPv4              string            `json:"public_ip_v4,omitempty"`
	PublicIPv6              string            `json:"public_ip_v6,omitempty"`
	IPv4Addresses           map[string]string `json:"ipv4_addresses,omitempty"` // contains ipv4 (indexed by network ID) allocated to the host
	IPv6Addresses           map[string]string `json:"ipv6_addresses,omitempty"` // contains ipv6 (indexed by Network ID) allocated to the host
}

HostNetwork contains network information related to Host !!! FROZEN !!! Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewHostNetwork

func NewHostNetwork() *HostNetwork

NewHostNetwork ...

func (*HostNetwork) Clone

func (hn *HostNetwork) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*HostNetwork) Content

func (hn *HostNetwork) Content() interface{}

Content ... (serialize.Property interface)

func (*HostNetwork) Replace

Replace ... (serialize.Property interface)

func (*HostNetwork) Reset

func (hn *HostNetwork) Reset()

Reset resets the content of the property

type HostRemoteMount

type HostRemoteMount struct {
	ShareID    string `json:"share_id"`          // contains the ID of the share mounted
	Export     string `json:"export"`            // contains the path of the export (ie: <host>:/data/shared)
	Path       string `json:"mountpoint"`        // Path is the mount point of the device
	FileSystem string `json:"file_system"`       // FileSystem tells the filesystem used
	Options    string `json:"options,omitempty"` // Options contains the mount options
}

HostRemoteMount stores information about a remote filesystem mount not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental/overriding fields

func NewHostRemoteMount

func NewHostRemoteMount() *HostRemoteMount

NewHostRemoteMount ...

func (*HostRemoteMount) Reset

func (p *HostRemoteMount) Reset()

Reset ...

type HostShare

type HostShare struct {
	ID            string            `json:"id"`                         // ID ...
	Name          string            `json:"name"`                       // the name of the share
	Path          string            `json:"path"`                       // the path on the host filesystem that is shared
	PathAcls      string            `json:"path_acls,omitempty"`        // filesystem acls to set on the exported folder
	Type          string            `json:"type,omitempty"`             // export type is lowercase (ie. nfs, glusterfs, ...)
	ShareAcls     string            `json:"share_acls,omitempty"`       // the acls to set on the share
	ShareOptions  string            `json:"share_options,omitempty"`    // the options (other than acls) to set on the share
	ClientsByID   map[string]string `json:"clients_by_id,omit_empty"`   // contains the name of the hosts mounting the export, indexed by ID
	ClientsByName map[string]string `json:"clients_by_name,omit_empty"` // contains the ID of the hosts mounting the export, indexed by Name
}

HostShare describes a filesystem exported from the host not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental/overriding fields

func NewHostShare

func NewHostShare() *HostShare

NewHostShare ...

func (*HostShare) Reset

func (p *HostShare) Reset()

Reset resets an HostShare

type HostShares

type HostShares struct {
	ByID   map[string]*HostShare `json:"by_id"`
	ByName map[string]string     `json:"by_name"`
}

HostShares contains information about the shares of the host not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental/overriding fields

func NewHostShares

func NewHostShares() *HostShares

NewHostShares ...

func (*HostShares) Clone

func (hs *HostShares) Clone() serialize.Property

Clone ...

func (*HostShares) Content

func (hs *HostShares) Content() interface{}

Content ...

func (*HostShares) Replace

Replace ...

func (*HostShares) Reset

func (hs *HostShares) Reset()

Reset ...

type HostSize

type HostSize struct {
	Cores     int     `json:"cores,omitempty"`
	RAMSize   float32 `json:"ram_size,omitempty"`
	DiskSize  int     `json:"disk_size,omitempty"`
	GPUNumber int     `json:"gpu_number,omitempty"`
	GPUType   string  `json:"gpu_type,omitempty"`
	CPUFreq   float32 `json:"cpu_freq,omitempty"`
}

HostSize represent sizing elements of an host !!! FROZEN !!! Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewHostSize

func NewHostSize() *HostSize

NewHostSize ...

func (*HostSize) Reset

func (hs *HostSize) Reset()

Reset ...

type HostSizing

type HostSizing struct {
	RequestedSize *HostSize `json:"requested_size,omitempty"`
	Template      string    `json:"template,omitempty"`
	AllocatedSize *HostSize `json:"allocated_size,omitempty"`
}

HostSizing contains sizing information about the host !!! FROZEN !!! Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewHostSizing

func NewHostSizing() *HostSizing

NewHostSizing ...

func (*HostSizing) Clone

func (hs *HostSizing) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*HostSizing) Content

func (hs *HostSizing) Content() interface{}

Content ... (serialize.Property interface)

func (*HostSizing) Replace

Replace ... (serialize.Property interface)

func (*HostSizing) Reset

func (hs *HostSizing) Reset()

Reset ...

type HostSystem

type HostSystem struct {
	Type     string `json:"type,omitempty"`     // Type of operating system (ie linux, windows, ... Not normalized yet...)
	Flavor   string `json:"flavor,omitempty"`   // Flavor of operating system (ie 'ubuntu server', 'windows server 2016', ... Not normalized yet...)
	Image    string `json:"image,omitempty"`    // Name of the provider's image used
	HostName string `json:"hostname,omitempty"` // Hostname on the system
}

HostSystem contains information about the operating system not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewHostSystem

func NewHostSystem() *HostSystem

NewHostSystem ...

func (*HostSystem) Reset

func (p *HostSystem) Reset()

Reset ...

type HostTemplate

type HostTemplate struct {
	Cores     int     `json:"cores,omitempty"`
	RAMSize   float32 `json:"ram_size,omitempty"`
	DiskSize  int     `json:"disk_size,omitempty"`
	GPUNumber int     `json:"gpu_number,omitempty"`
	GPUType   string  `json:"gpu_type,omitempty"`
	CPUFreq   float32 `json:"cpu_freq,omitempty"`
	ID        string  `json:"id,omitempty"`
	Name      string  `json:"name,omitempty"`
}

HostTemplate represents an host template !!! FROZEN !!! Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewHostTemplate

func NewHostTemplate() *HostTemplate

NewHostTemplate ...

func (*HostTemplate) Reset

func (p *HostTemplate) Reset()

Reset ...

type HostVolume

type HostVolume struct {
	AttachID string `json:"attach_id"` // contains the ID of the volume attachment
	Device   string `json:"device"`    // contains the device on the host
}

HostVolume contains information about attached volume not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewHostVolume

func NewHostVolume() *HostVolume

NewHostVolume ...

func (*HostVolume) Reset

func (p *HostVolume) Reset()

Reset ...

type HostVolumes

type HostVolumes struct {
	VolumesByID     map[string]*HostVolume `json:"volumes_by_id"`     // contains the volume name of the attached volume, indexed by ID
	VolumesByName   map[string]string      `json:"volumes_by_name"`   // contains the ID of attached volume, indexed by volume name
	VolumesByDevice map[string]string      `json:"volumes_by_device"` // contains the ID of attached volume, indexed by device
	DevicesByID     map[string]string      `json:"devices_by_id"`     // contains the device of attached volume, indexed by ID
}

HostVolumes contains information about attached volumes not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewHostVolumes

func NewHostVolumes() *HostVolumes

NewHostVolumes ...

func (*HostVolumes) Clone

func (hv *HostVolumes) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*HostVolumes) Content

func (hv *HostVolumes) Content() interface{}

Content ... (serialize.Property interface)

func (*HostVolumes) Replace

Replace ... (serialize.Property interface)

func (*HostVolumes) Reset

func (hv *HostVolumes) Reset()

Reset ...

type NetworkDescription

type NetworkDescription struct {
	Purpose string    `json:"purpose,omitempty"` // contains the purpose of this network
	Created time.Time `json:"created,omitempty"` // Contains the date of creation if the network
}

NetworkDescription contains additional information describing the network, in V1 not FROZEN yet Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewNetworkDescription

func NewNetworkDescription() *NetworkDescription

NewNetworkDescription ...

func (*NetworkDescription) Clone

Clone ... (serialize.Property interface)

func (*NetworkDescription) Content

func (nd *NetworkDescription) Content() interface{}

Content ... (serialize.Property interface)

func (*NetworkDescription) Replace

Replace ... (serialize.Property interface)

type NetworkHosts

type NetworkHosts struct {
	ByID   map[string]string `json:"by_id"`   // list of host names, indexed by host id
	ByName map[string]string `json:"by_name"` // list of host IDs, indexed by host name
}

NetworkHosts contains information about hosts connected to the network

func NewNetworkHosts

func NewNetworkHosts() *NetworkHosts

NewNetworkHosts ...

func (*NetworkHosts) Clone

func (nh *NetworkHosts) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*NetworkHosts) Content

func (nh *NetworkHosts) Content() interface{}

Content ... (serialize.Property interface)

func (*NetworkHosts) Replace

Replace ... (serialize.Property interface)

func (*NetworkHosts) Reset

func (nh *NetworkHosts) Reset()

Reset resets the content of the property

type VolumeAttachments

type VolumeAttachments struct {
	Shareable bool              `json:"shareable,omitempty"` // Tells if the volume can be shared with multiple host
	Hosts     map[string]string `json:"hosts,omitempty"`     // Contains the name of the hosts mounting the volume, indexed by ID
}

VolumeAttachments contains host ids where the volume is attached !!!FROZEN!!! Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewVolumeAttachments

func NewVolumeAttachments() *VolumeAttachments

NewVolumeAttachments ...

func (*VolumeAttachments) Clone

func (va *VolumeAttachments) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*VolumeAttachments) Content

func (va *VolumeAttachments) Content() interface{}

Content ... (serialize.Property interface)

func (*VolumeAttachments) Replace

Replace ... (serialize.Property interface)

func (*VolumeAttachments) Reset

func (va *VolumeAttachments) Reset()

Reset resets the content of the property

type VolumeDescription

type VolumeDescription struct {
	// Purpose contains the reason of the existence of the volume
	Purpose string
	// Created contains the time of creation of the volume
	Created time.Time
}

VolumeDescription contains additional information describing the volume, in V1 !!!FROZEN!!! Note: if tagged as FROZEN, must not be changed ever.

Create a new version instead with needed supplemental fields

func NewVolumeDescription

func NewVolumeDescription() *VolumeDescription

NewVolumeDescription ...

func (*VolumeDescription) Clone

func (vd *VolumeDescription) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*VolumeDescription) Content

func (vd *VolumeDescription) Content() interface{}

Content ... (serialize.Property interface)

func (*VolumeDescription) Replace

Replace ... (serialize.Property interface)

Jump to

Keyboard shortcuts

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