Documentation ¶
Index ¶
- Constants
- func Bool(v bool) *bool
- func Float32(v float32) *float32
- func Float64(v float64) *float64
- func Int(v int) *int
- func Int32(v int32) *int32
- func Int64(v int64) *int64
- func String(v string) *string
- func Uint(v uint) *uint
- func Uint32(v uint32) *uint32
- func Uint64(v uint64) *uint64
- type Client
- type ClientOption
- type Cluster
- func (e *Cluster) ConvertToProtoEntity() *diodepb.Entity
- func (e *Cluster) ConvertToProtoMessage() proto.Message
- func (e *Cluster) GetDescription() *string
- func (e *Cluster) GetGroup() *diodepb.ClusterGroup
- func (e *Cluster) GetName() string
- func (e *Cluster) GetSite() *diodepb.Site
- func (e *Cluster) GetStatus() string
- func (e *Cluster) GetTags() []*diodepb.Tag
- func (e *Cluster) GetType() *diodepb.ClusterType
- type ClusterGroup
- type ClusterType
- type Device
- func (e *Device) ConvertToProtoEntity() *diodepb.Entity
- func (e *Device) ConvertToProtoMessage() proto.Message
- func (e *Device) GetAssetTag() *string
- func (e *Device) GetComments() *string
- func (e *Device) GetDescription() *string
- func (e *Device) GetDeviceFqdn() *string
- func (e *Device) GetDeviceType() *diodepb.DeviceType
- func (e *Device) GetName() string
- func (e *Device) GetPlatform() *diodepb.Platform
- func (e *Device) GetPrimaryIp4() *diodepb.IPAddress
- func (e *Device) GetPrimaryIp6() *diodepb.IPAddress
- func (e *Device) GetRole() *diodepb.Role
- func (e *Device) GetSerial() *string
- func (e *Device) GetSite() *diodepb.Site
- func (e *Device) GetStatus() string
- func (e *Device) GetTags() []*diodepb.Tag
- type DeviceType
- func (e *DeviceType) ConvertToProtoEntity() *diodepb.Entity
- func (e *DeviceType) ConvertToProtoMessage() proto.Message
- func (e *DeviceType) GetComments() *string
- func (e *DeviceType) GetDescription() *string
- func (e *DeviceType) GetManufacturer() *diodepb.Manufacturer
- func (e *DeviceType) GetModel() string
- func (e *DeviceType) GetPartNumber() *string
- func (e *DeviceType) GetSlug() string
- func (e *DeviceType) GetTags() []*diodepb.Tag
- type Entity
- type GRPCClient
- type IPAddress
- func (e *IPAddress) ConvertToProtoEntity() *diodepb.Entity
- func (e *IPAddress) ConvertToProtoMessage() proto.Message
- func (e *IPAddress) GetAddress() string
- func (e *IPAddress) GetAssignedObject() *diodepb.IPAddress_Interface
- func (e *IPAddress) GetComments() *string
- func (e *IPAddress) GetDescription() *string
- func (e *IPAddress) GetDnsName() *string
- func (e *IPAddress) GetRole() string
- func (e *IPAddress) GetStatus() string
- func (e *IPAddress) GetTags() []*diodepb.Tag
- type Interface
- func (e *Interface) ConvertToProtoEntity() *diodepb.Entity
- func (e *Interface) ConvertToProtoMessage() proto.Message
- func (e *Interface) GetDescription() *string
- func (e *Interface) GetDevice() *diodepb.Device
- func (e *Interface) GetEnabled() *bool
- func (e *Interface) GetLabel() *string
- func (e *Interface) GetMacAddress() *string
- func (e *Interface) GetMarkConnected() *bool
- func (e *Interface) GetMgmtOnly() *bool
- func (e *Interface) GetMode() string
- func (e *Interface) GetMtu() *int32
- func (e *Interface) GetName() string
- func (e *Interface) GetSpeed() *int32
- func (e *Interface) GetTags() []*diodepb.Tag
- func (e *Interface) GetType() string
- func (e *Interface) GetWwn() *string
- type Manufacturer
- type Platform
- func (e *Platform) ConvertToProtoEntity() *diodepb.Entity
- func (e *Platform) ConvertToProtoMessage() proto.Message
- func (e *Platform) GetDescription() *string
- func (e *Platform) GetManufacturer() *diodepb.Manufacturer
- func (e *Platform) GetName() string
- func (e *Platform) GetSlug() string
- func (e *Platform) GetTags() []*diodepb.Tag
- type Prefix
- func (e *Prefix) ConvertToProtoEntity() *diodepb.Entity
- func (e *Prefix) ConvertToProtoMessage() proto.Message
- func (e *Prefix) GetComments() *string
- func (e *Prefix) GetDescription() *string
- func (e *Prefix) GetIsPool() *bool
- func (e *Prefix) GetMarkUtilized() *bool
- func (e *Prefix) GetPrefix() string
- func (e *Prefix) GetSite() *diodepb.Site
- func (e *Prefix) GetStatus() string
- func (e *Prefix) GetTags() []*diodepb.Tag
- type Role
- type Site
- func (e *Site) ConvertToProtoEntity() *diodepb.Entity
- func (e *Site) ConvertToProtoMessage() proto.Message
- func (e *Site) GetComments() *string
- func (e *Site) GetDescription() *string
- func (e *Site) GetFacility() *string
- func (e *Site) GetName() string
- func (e *Site) GetSlug() string
- func (e *Site) GetStatus() string
- func (e *Site) GetTags() []*diodepb.Tag
- func (e *Site) GetTimeZone() *string
- type Tag
- type VMInterface
- func (e *VMInterface) ConvertToProtoEntity() *diodepb.Entity
- func (e *VMInterface) ConvertToProtoMessage() proto.Message
- func (e *VMInterface) GetDescription() *string
- func (e *VMInterface) GetEnabled() *bool
- func (e *VMInterface) GetMacAddress() *string
- func (e *VMInterface) GetMtu() *int32
- func (e *VMInterface) GetName() string
- func (e *VMInterface) GetTags() []*diodepb.Tag
- func (e *VMInterface) GetVirtualMachine() *diodepb.VirtualMachine
- type VirtualDisk
- func (e *VirtualDisk) ConvertToProtoEntity() *diodepb.Entity
- func (e *VirtualDisk) ConvertToProtoMessage() proto.Message
- func (e *VirtualDisk) GetDescription() *string
- func (e *VirtualDisk) GetName() string
- func (e *VirtualDisk) GetSize() int32
- func (e *VirtualDisk) GetTags() []*diodepb.Tag
- func (e *VirtualDisk) GetVirtualMachine() *diodepb.VirtualMachine
- type VirtualMachine
- func (e *VirtualMachine) ConvertToProtoEntity() *diodepb.Entity
- func (e *VirtualMachine) ConvertToProtoMessage() proto.Message
- func (e *VirtualMachine) GetCluster() *diodepb.Cluster
- func (e *VirtualMachine) GetComments() *string
- func (e *VirtualMachine) GetDescription() *string
- func (e *VirtualMachine) GetDevice() *diodepb.Device
- func (e *VirtualMachine) GetDisk() *int32
- func (e *VirtualMachine) GetMemory() *int32
- func (e *VirtualMachine) GetName() string
- func (e *VirtualMachine) GetPlatform() *diodepb.Platform
- func (e *VirtualMachine) GetPrimaryIp4() *diodepb.IPAddress
- func (e *VirtualMachine) GetPrimaryIp6() *diodepb.IPAddress
- func (e *VirtualMachine) GetRole() *diodepb.Role
- func (e *VirtualMachine) GetSite() *diodepb.Site
- func (e *VirtualMachine) GetStatus() string
- func (e *VirtualMachine) GetTags() []*diodepb.Tag
- func (e *VirtualMachine) GetVcpus() *int32
Constants ¶
const ( // SDKName is the name of the Diode SDK SDKName = "diode-sdk-go" // SDKVersion is the version of the Diode SDK SDKVersion = "0.2.0" // DiodeAPIKeyEnvVarName is the environment variable name for the Diode API key DiodeAPIKeyEnvVarName = "DIODE_API_KEY" // DiodeSDKLogLevelEnvVarName is the environment variable name for the Diode SDK log level DiodeSDKLogLevelEnvVarName = "DIODE_SDK_LOG_LEVEL" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { // Close closes the connection to the API service Close() error // Ingest sends an ingest request to the ingester service Ingest(context.Context, []Entity) (*diodepb.IngestResponse, error) }
Client is an interface that defines the methods available from Diode API
type ClientOption ¶
type ClientOption func(*GRPCClient)
ClientOption is a functional option for the GRPCClient
func WithAPIKey ¶
func WithAPIKey(apiKey string) ClientOption
WithAPIKey sets the API key for the client
type Cluster ¶ added in v0.2.0
type Cluster struct { Name *string Type *ClusterType Group *ClusterGroup Site *Site Status *string Description *string Tags []*Tag }
Cluster is based on diodepb.Cluster
func (*Cluster) ConvertToProtoEntity ¶ added in v0.2.0
ConvertToProtoEntityCluster converts a Cluster to a diodepb.Entity
func (*Cluster) ConvertToProtoMessage ¶ added in v0.2.0
ConvertToProtoMessageCluster converts a Cluster to a diodepb.Cluster
func (*Cluster) GetDescription ¶ added in v0.2.0
GetDescription returns the Description field
func (*Cluster) GetGroup ¶ added in v0.2.0
func (e *Cluster) GetGroup() *diodepb.ClusterGroup
GetGroup returns the Group field
func (*Cluster) GetType ¶ added in v0.2.0
func (e *Cluster) GetType() *diodepb.ClusterType
GetType returns the Type field
type ClusterGroup ¶ added in v0.2.0
ClusterGroup is based on diodepb.ClusterGroup
func (*ClusterGroup) ConvertToProtoEntity ¶ added in v0.2.0
func (e *ClusterGroup) ConvertToProtoEntity() *diodepb.Entity
ConvertToProtoEntityClusterGroup converts a ClusterGroup to a diodepb.Entity
func (*ClusterGroup) ConvertToProtoMessage ¶ added in v0.2.0
func (e *ClusterGroup) ConvertToProtoMessage() proto.Message
ConvertToProtoMessageClusterGroup converts a ClusterGroup to a diodepb.ClusterGroup
func (*ClusterGroup) GetDescription ¶ added in v0.2.0
func (e *ClusterGroup) GetDescription() *string
GetDescription returns the Description field
func (*ClusterGroup) GetName ¶ added in v0.2.0
func (e *ClusterGroup) GetName() string
GetName returns the Name field
func (*ClusterGroup) GetSlug ¶ added in v0.2.0
func (e *ClusterGroup) GetSlug() string
GetSlug returns the Slug field
func (*ClusterGroup) GetTags ¶ added in v0.2.0
func (e *ClusterGroup) GetTags() []*diodepb.Tag
GetTags returns the Tags field
type ClusterType ¶ added in v0.2.0
ClusterType is based on diodepb.ClusterType
func (*ClusterType) ConvertToProtoEntity ¶ added in v0.2.0
func (e *ClusterType) ConvertToProtoEntity() *diodepb.Entity
ConvertToProtoEntityClusterType converts a ClusterType to a diodepb.Entity
func (*ClusterType) ConvertToProtoMessage ¶ added in v0.2.0
func (e *ClusterType) ConvertToProtoMessage() proto.Message
ConvertToProtoMessageClusterType converts a ClusterType to a diodepb.ClusterType
func (*ClusterType) GetDescription ¶ added in v0.2.0
func (e *ClusterType) GetDescription() *string
GetDescription returns the Description field
func (*ClusterType) GetName ¶ added in v0.2.0
func (e *ClusterType) GetName() string
GetName returns the Name field
func (*ClusterType) GetSlug ¶ added in v0.2.0
func (e *ClusterType) GetSlug() string
GetSlug returns the Slug field
func (*ClusterType) GetTags ¶ added in v0.2.0
func (e *ClusterType) GetTags() []*diodepb.Tag
GetTags returns the Tags field
type Device ¶
type Device struct { Name *string DeviceFqdn *string DeviceType *DeviceType Role *Role Platform *Platform Serial *string Site *Site AssetTag *string Status *string Description *string Comments *string Tags []*Tag PrimaryIp4 *IPAddress PrimaryIp6 *IPAddress }
Device is based on diodepb.Device
func (*Device) ConvertToProtoEntity ¶
ConvertToProtoEntityDevice converts a Device to a diodepb.Entity
func (*Device) ConvertToProtoMessage ¶
ConvertToProtoMessageDevice converts a Device to a diodepb.Device
func (*Device) GetAssetTag ¶
GetAssetTag returns the AssetTag field
func (*Device) GetComments ¶
GetComments returns the Comments field
func (*Device) GetDescription ¶
GetDescription returns the Description field
func (*Device) GetDeviceFqdn ¶
GetDeviceFqdn returns the DeviceFqdn field
func (*Device) GetDeviceType ¶
func (e *Device) GetDeviceType() *diodepb.DeviceType
GetDeviceType returns the DeviceType field
func (*Device) GetPlatform ¶
GetPlatform returns the Platform field
func (*Device) GetPrimaryIp4 ¶
GetPrimaryIp4 returns the PrimaryIp4 field
func (*Device) GetPrimaryIp6 ¶
GetPrimaryIp6 returns the PrimaryIp6 field
type DeviceType ¶
type DeviceType struct { Model *string Slug *string Manufacturer *Manufacturer Description *string Comments *string PartNumber *string Tags []*Tag }
DeviceType is based on diodepb.DeviceType
func (*DeviceType) ConvertToProtoEntity ¶
func (e *DeviceType) ConvertToProtoEntity() *diodepb.Entity
ConvertToProtoEntityDeviceType converts a DeviceType to a diodepb.Entity
func (*DeviceType) ConvertToProtoMessage ¶
func (e *DeviceType) ConvertToProtoMessage() proto.Message
ConvertToProtoMessageDeviceType converts a DeviceType to a diodepb.DeviceType
func (*DeviceType) GetComments ¶
func (e *DeviceType) GetComments() *string
GetComments returns the Comments field
func (*DeviceType) GetDescription ¶
func (e *DeviceType) GetDescription() *string
GetDescription returns the Description field
func (*DeviceType) GetManufacturer ¶
func (e *DeviceType) GetManufacturer() *diodepb.Manufacturer
GetManufacturer returns the Manufacturer field
func (*DeviceType) GetModel ¶
func (e *DeviceType) GetModel() string
GetModel returns the Model field
func (*DeviceType) GetPartNumber ¶
func (e *DeviceType) GetPartNumber() *string
GetPartNumber returns the PartNumber field
func (*DeviceType) GetTags ¶
func (e *DeviceType) GetTags() []*diodepb.Tag
GetTags returns the Tags field
type Entity ¶
type Entity interface { ConvertToProtoMessage() proto.Message ConvertToProtoEntity() *diodepb.Entity }
Entity is an interface that all entities must implement
type GRPCClient ¶
type GRPCClient struct {
// contains filtered or unexported fields
}
GRPCClient is a gRPC implementation of the ingester service
func (*GRPCClient) Close ¶
func (g *GRPCClient) Close() error
Close closes the connection to the API service
func (*GRPCClient) Ingest ¶
func (g *GRPCClient) Ingest(ctx context.Context, entities []Entity) (*diodepb.IngestResponse, error)
Ingest sends an ingest request to the ingester service
type IPAddress ¶
type IPAddress struct { Address *string AssignedObject *Interface Status *string Role *string DnsName *string Description *string Comments *string Tags []*Tag }
IPAddress is based on diodepb.IPAddress
func (*IPAddress) ConvertToProtoEntity ¶
ConvertToProtoEntityIPAddress converts a IPAddress to a diodepb.Entity
func (*IPAddress) ConvertToProtoMessage ¶
ConvertToProtoMessageIPAddress converts a IPAddress to a diodepb.IPAddress
func (*IPAddress) GetAddress ¶
GetAddress returns the Address field
func (*IPAddress) GetAssignedObject ¶
func (e *IPAddress) GetAssignedObject() *diodepb.IPAddress_Interface
GetAssignedObject returns the AssignedObject field
func (*IPAddress) GetComments ¶
GetComments returns the Comments field
func (*IPAddress) GetDescription ¶
GetDescription returns the Description field
func (*IPAddress) GetDnsName ¶
GetDnsName returns the DnsName field
type Interface ¶
type Interface struct { Device *Device Name *string Label *string Type *string Enabled *bool Mtu *int32 MacAddress *string Speed *int32 Wwn *string MgmtOnly *bool Description *string MarkConnected *bool Mode *string Tags []*Tag }
Interface is based on diodepb.Interface
func (*Interface) ConvertToProtoEntity ¶
ConvertToProtoEntityInterface converts a Interface to a diodepb.Entity
func (*Interface) ConvertToProtoMessage ¶
ConvertToProtoMessageInterface converts a Interface to a diodepb.Interface
func (*Interface) GetDescription ¶
GetDescription returns the Description field
func (*Interface) GetEnabled ¶
GetEnabled returns the Enabled field
func (*Interface) GetMacAddress ¶
GetMacAddress returns the MacAddress field
func (*Interface) GetMarkConnected ¶
GetMarkConnected returns the MarkConnected field
func (*Interface) GetMgmtOnly ¶
GetMgmtOnly returns the MgmtOnly field
type Manufacturer ¶
Manufacturer is based on diodepb.Manufacturer
func (*Manufacturer) ConvertToProtoEntity ¶
func (e *Manufacturer) ConvertToProtoEntity() *diodepb.Entity
ConvertToProtoEntityManufacturer converts a Manufacturer to a diodepb.Entity
func (*Manufacturer) ConvertToProtoMessage ¶
func (e *Manufacturer) ConvertToProtoMessage() proto.Message
ConvertToProtoMessageManufacturer converts a Manufacturer to a diodepb.Manufacturer
func (*Manufacturer) GetDescription ¶
func (e *Manufacturer) GetDescription() *string
GetDescription returns the Description field
func (*Manufacturer) GetName ¶
func (e *Manufacturer) GetName() string
GetName returns the Name field
func (*Manufacturer) GetSlug ¶
func (e *Manufacturer) GetSlug() string
GetSlug returns the Slug field
func (*Manufacturer) GetTags ¶
func (e *Manufacturer) GetTags() []*diodepb.Tag
GetTags returns the Tags field
type Platform ¶
type Platform struct { Name *string Slug *string Manufacturer *Manufacturer Description *string Tags []*Tag }
Platform is based on diodepb.Platform
func (*Platform) ConvertToProtoEntity ¶
ConvertToProtoEntityPlatform converts a Platform to a diodepb.Entity
func (*Platform) ConvertToProtoMessage ¶
ConvertToProtoMessagePlatform converts a Platform to a diodepb.Platform
func (*Platform) GetDescription ¶
GetDescription returns the Description field
func (*Platform) GetManufacturer ¶
func (e *Platform) GetManufacturer() *diodepb.Manufacturer
GetManufacturer returns the Manufacturer field
type Prefix ¶
type Prefix struct { Prefix *string Site *Site Status *string IsPool *bool MarkUtilized *bool Description *string Comments *string Tags []*Tag }
Prefix is based on diodepb.Prefix
func (*Prefix) ConvertToProtoEntity ¶
ConvertToProtoEntityPrefix converts a Prefix to a diodepb.Entity
func (*Prefix) ConvertToProtoMessage ¶
ConvertToProtoMessagePrefix converts a Prefix to a diodepb.Prefix
func (*Prefix) GetComments ¶
GetComments returns the Comments field
func (*Prefix) GetDescription ¶
GetDescription returns the Description field
func (*Prefix) GetMarkUtilized ¶
GetMarkUtilized returns the MarkUtilized field
type Role ¶
Role is based on diodepb.Role
func (*Role) ConvertToProtoEntity ¶
ConvertToProtoEntityRole converts a Role to a diodepb.Entity
func (*Role) ConvertToProtoMessage ¶
ConvertToProtoMessageRole converts a Role to a diodepb.Role
func (*Role) GetDescription ¶
GetDescription returns the Description field
type Site ¶
type Site struct { Name *string Slug *string Status *string Facility *string TimeZone *string Description *string Comments *string Tags []*Tag }
Site is based on diodepb.Site
func (*Site) ConvertToProtoEntity ¶
ConvertToProtoEntitySite converts a Site to a diodepb.Entity
func (*Site) ConvertToProtoMessage ¶
ConvertToProtoMessageSite converts a Site to a diodepb.Site
func (*Site) GetComments ¶
GetComments returns the Comments field
func (*Site) GetDescription ¶
GetDescription returns the Description field
func (*Site) GetFacility ¶
GetFacility returns the Facility field
func (*Site) GetTimeZone ¶
GetTimeZone returns the TimeZone field
type Tag ¶
Tag is based on diodepb.Tag
func (*Tag) ConvertToProtoMessage ¶
ConvertToProtoMessageTag converts a Tag to a diodepb.Tag
type VMInterface ¶ added in v0.2.0
type VMInterface struct { VirtualMachine *VirtualMachine Name *string Enabled *bool Mtu *int32 MacAddress *string Description *string Tags []*Tag }
VMInterface is based on diodepb.VMInterface
func (*VMInterface) ConvertToProtoEntity ¶ added in v0.2.0
func (e *VMInterface) ConvertToProtoEntity() *diodepb.Entity
ConvertToProtoEntityVMInterface converts a VMInterface to a diodepb.Entity
func (*VMInterface) ConvertToProtoMessage ¶ added in v0.2.0
func (e *VMInterface) ConvertToProtoMessage() proto.Message
ConvertToProtoMessageVMInterface converts a VMInterface to a diodepb.VMInterface
func (*VMInterface) GetDescription ¶ added in v0.2.0
func (e *VMInterface) GetDescription() *string
GetDescription returns the Description field
func (*VMInterface) GetEnabled ¶ added in v0.2.0
func (e *VMInterface) GetEnabled() *bool
GetEnabled returns the Enabled field
func (*VMInterface) GetMacAddress ¶ added in v0.2.0
func (e *VMInterface) GetMacAddress() *string
GetMacAddress returns the MacAddress field
func (*VMInterface) GetMtu ¶ added in v0.2.0
func (e *VMInterface) GetMtu() *int32
GetMtu returns the Mtu field
func (*VMInterface) GetName ¶ added in v0.2.0
func (e *VMInterface) GetName() string
GetName returns the Name field
func (*VMInterface) GetTags ¶ added in v0.2.0
func (e *VMInterface) GetTags() []*diodepb.Tag
GetTags returns the Tags field
func (*VMInterface) GetVirtualMachine ¶ added in v0.2.0
func (e *VMInterface) GetVirtualMachine() *diodepb.VirtualMachine
GetVirtualMachine returns the VirtualMachine field
type VirtualDisk ¶ added in v0.2.0
type VirtualDisk struct { VirtualMachine *VirtualMachine Name *string Size *int32 Description *string Tags []*Tag }
VirtualDisk is based on diodepb.VirtualDisk
func (*VirtualDisk) ConvertToProtoEntity ¶ added in v0.2.0
func (e *VirtualDisk) ConvertToProtoEntity() *diodepb.Entity
ConvertToProtoEntityVirtualDisk converts a VirtualDisk to a diodepb.Entity
func (*VirtualDisk) ConvertToProtoMessage ¶ added in v0.2.0
func (e *VirtualDisk) ConvertToProtoMessage() proto.Message
ConvertToProtoMessageVirtualDisk converts a VirtualDisk to a diodepb.VirtualDisk
func (*VirtualDisk) GetDescription ¶ added in v0.2.0
func (e *VirtualDisk) GetDescription() *string
GetDescription returns the Description field
func (*VirtualDisk) GetName ¶ added in v0.2.0
func (e *VirtualDisk) GetName() string
GetName returns the Name field
func (*VirtualDisk) GetSize ¶ added in v0.2.0
func (e *VirtualDisk) GetSize() int32
GetSize returns the Size field
func (*VirtualDisk) GetTags ¶ added in v0.2.0
func (e *VirtualDisk) GetTags() []*diodepb.Tag
GetTags returns the Tags field
func (*VirtualDisk) GetVirtualMachine ¶ added in v0.2.0
func (e *VirtualDisk) GetVirtualMachine() *diodepb.VirtualMachine
GetVirtualMachine returns the VirtualMachine field
type VirtualMachine ¶ added in v0.2.0
type VirtualMachine struct { Name *string Status *string Site *Site Cluster *Cluster Role *Role Device *Device Platform *Platform PrimaryIp4 *IPAddress PrimaryIp6 *IPAddress Vcpus *int32 Memory *int32 Disk *int32 Description *string Comments *string Tags []*Tag }
VirtualMachine is based on diodepb.VirtualMachine
func (*VirtualMachine) ConvertToProtoEntity ¶ added in v0.2.0
func (e *VirtualMachine) ConvertToProtoEntity() *diodepb.Entity
ConvertToProtoEntityVirtualMachine converts a VirtualMachine to a diodepb.Entity
func (*VirtualMachine) ConvertToProtoMessage ¶ added in v0.2.0
func (e *VirtualMachine) ConvertToProtoMessage() proto.Message
ConvertToProtoMessageVirtualMachine converts a VirtualMachine to a diodepb.VirtualMachine
func (*VirtualMachine) GetCluster ¶ added in v0.2.0
func (e *VirtualMachine) GetCluster() *diodepb.Cluster
GetCluster returns the Cluster field
func (*VirtualMachine) GetComments ¶ added in v0.2.0
func (e *VirtualMachine) GetComments() *string
GetComments returns the Comments field
func (*VirtualMachine) GetDescription ¶ added in v0.2.0
func (e *VirtualMachine) GetDescription() *string
GetDescription returns the Description field
func (*VirtualMachine) GetDevice ¶ added in v0.2.0
func (e *VirtualMachine) GetDevice() *diodepb.Device
GetDevice returns the Device field
func (*VirtualMachine) GetDisk ¶ added in v0.2.0
func (e *VirtualMachine) GetDisk() *int32
GetDisk returns the Disk field
func (*VirtualMachine) GetMemory ¶ added in v0.2.0
func (e *VirtualMachine) GetMemory() *int32
GetMemory returns the Memory field
func (*VirtualMachine) GetName ¶ added in v0.2.0
func (e *VirtualMachine) GetName() string
GetName returns the Name field
func (*VirtualMachine) GetPlatform ¶ added in v0.2.0
func (e *VirtualMachine) GetPlatform() *diodepb.Platform
GetPlatform returns the Platform field
func (*VirtualMachine) GetPrimaryIp4 ¶ added in v0.2.0
func (e *VirtualMachine) GetPrimaryIp4() *diodepb.IPAddress
GetPrimaryIp4 returns the PrimaryIp4 field
func (*VirtualMachine) GetPrimaryIp6 ¶ added in v0.2.0
func (e *VirtualMachine) GetPrimaryIp6() *diodepb.IPAddress
GetPrimaryIp6 returns the PrimaryIp6 field
func (*VirtualMachine) GetRole ¶ added in v0.2.0
func (e *VirtualMachine) GetRole() *diodepb.Role
GetRole returns the Role field
func (*VirtualMachine) GetSite ¶ added in v0.2.0
func (e *VirtualMachine) GetSite() *diodepb.Site
GetSite returns the Site field
func (*VirtualMachine) GetStatus ¶ added in v0.2.0
func (e *VirtualMachine) GetStatus() string
GetStatus returns the Status field
func (*VirtualMachine) GetTags ¶ added in v0.2.0
func (e *VirtualMachine) GetTags() []*diodepb.Tag
GetTags returns the Tags field
func (*VirtualMachine) GetVcpus ¶ added in v0.2.0
func (e *VirtualMachine) GetVcpus() *int32
GetVcpus returns the Vcpus field