diode

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
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

func Bool

func Bool(v bool) *bool

Bool returns a pointer to the bool value passed in.

func Float32

func Float32(v float32) *float32

Float32 returns a pointer to the float32 value passed in.

func Float64

func Float64(v float64) *float64

Float64 returns a pointer to the float64 value passed in.

func Int

func Int(v int) *int

Int returns a pointer to the int value passed in.

func Int32

func Int32(v int32) *int32

Int32 returns a pointer to the int32 value passed in.

func Int64

func Int64(v int64) *int64

Int64 returns a pointer to the int64 value passed in.

func String

func String(v string) *string

String returns a pointer to the string value passed in.

func Uint

func Uint(v uint) *uint

Uint returns a pointer to the uint value passed in.

func Uint32

func Uint32(v uint32) *uint32

Uint32 returns a pointer to the uint32 value passed in.

func Uint64

func Uint64(v uint64) *uint64

Uint64 returns a pointer to the uint64 value passed in.

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

func NewClient

func NewClient(target string, appName string, appVersion string, opts ...ClientOption) (Client, error)

NewClient creates a new diode client based on gRPC

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

func (e *Cluster) ConvertToProtoEntity() *diodepb.Entity

ConvertToProtoEntityCluster converts a Cluster to a diodepb.Entity

func (*Cluster) ConvertToProtoMessage added in v0.2.0

func (e *Cluster) ConvertToProtoMessage() proto.Message

ConvertToProtoMessageCluster converts a Cluster to a diodepb.Cluster

func (*Cluster) GetDescription added in v0.2.0

func (e *Cluster) GetDescription() *string

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) GetName added in v0.2.0

func (e *Cluster) GetName() string

GetName returns the Name field

func (*Cluster) GetSite added in v0.2.0

func (e *Cluster) GetSite() *diodepb.Site

GetSite returns the Site field

func (*Cluster) GetStatus added in v0.2.0

func (e *Cluster) GetStatus() string

GetStatus returns the Status field

func (*Cluster) GetTags added in v0.2.0

func (e *Cluster) GetTags() []*diodepb.Tag

GetTags returns the Tags 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

type ClusterGroup struct {
	Name        *string
	Slug        *string
	Description *string
	Tags        []*Tag
}

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

type ClusterType struct {
	Name        *string
	Slug        *string
	Description *string
	Tags        []*Tag
}

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

func (e *Device) ConvertToProtoEntity() *diodepb.Entity

ConvertToProtoEntityDevice converts a Device to a diodepb.Entity

func (*Device) ConvertToProtoMessage

func (e *Device) ConvertToProtoMessage() proto.Message

ConvertToProtoMessageDevice converts a Device to a diodepb.Device

func (*Device) GetAssetTag

func (e *Device) GetAssetTag() *string

GetAssetTag returns the AssetTag field

func (*Device) GetComments

func (e *Device) GetComments() *string

GetComments returns the Comments field

func (*Device) GetDescription

func (e *Device) GetDescription() *string

GetDescription returns the Description field

func (*Device) GetDeviceFqdn

func (e *Device) GetDeviceFqdn() *string

GetDeviceFqdn returns the DeviceFqdn field

func (*Device) GetDeviceType

func (e *Device) GetDeviceType() *diodepb.DeviceType

GetDeviceType returns the DeviceType field

func (*Device) GetName

func (e *Device) GetName() string

GetName returns the Name field

func (*Device) GetPlatform

func (e *Device) GetPlatform() *diodepb.Platform

GetPlatform returns the Platform field

func (*Device) GetPrimaryIp4

func (e *Device) GetPrimaryIp4() *diodepb.IPAddress

GetPrimaryIp4 returns the PrimaryIp4 field

func (*Device) GetPrimaryIp6

func (e *Device) GetPrimaryIp6() *diodepb.IPAddress

GetPrimaryIp6 returns the PrimaryIp6 field

func (*Device) GetRole

func (e *Device) GetRole() *diodepb.Role

GetRole returns the Role field

func (*Device) GetSerial

func (e *Device) GetSerial() *string

GetSerial returns the Serial field

func (*Device) GetSite

func (e *Device) GetSite() *diodepb.Site

GetSite returns the Site field

func (*Device) GetStatus

func (e *Device) GetStatus() string

GetStatus returns the Status field

func (*Device) GetTags

func (e *Device) GetTags() []*diodepb.Tag

GetTags returns the Tags 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) GetSlug

func (e *DeviceType) GetSlug() string

GetSlug returns the Slug 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

func (e *IPAddress) ConvertToProtoEntity() *diodepb.Entity

ConvertToProtoEntityIPAddress converts a IPAddress to a diodepb.Entity

func (*IPAddress) ConvertToProtoMessage

func (e *IPAddress) ConvertToProtoMessage() proto.Message

ConvertToProtoMessageIPAddress converts a IPAddress to a diodepb.IPAddress

func (*IPAddress) GetAddress

func (e *IPAddress) GetAddress() string

GetAddress returns the Address field

func (*IPAddress) GetAssignedObject

func (e *IPAddress) GetAssignedObject() *diodepb.IPAddress_Interface

GetAssignedObject returns the AssignedObject field

func (*IPAddress) GetComments

func (e *IPAddress) GetComments() *string

GetComments returns the Comments field

func (*IPAddress) GetDescription

func (e *IPAddress) GetDescription() *string

GetDescription returns the Description field

func (*IPAddress) GetDnsName

func (e *IPAddress) GetDnsName() *string

GetDnsName returns the DnsName field

func (*IPAddress) GetRole

func (e *IPAddress) GetRole() string

GetRole returns the Role field

func (*IPAddress) GetStatus

func (e *IPAddress) GetStatus() string

GetStatus returns the Status field

func (*IPAddress) GetTags

func (e *IPAddress) GetTags() []*diodepb.Tag

GetTags returns the Tags 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

func (e *Interface) ConvertToProtoEntity() *diodepb.Entity

ConvertToProtoEntityInterface converts a Interface to a diodepb.Entity

func (*Interface) ConvertToProtoMessage

func (e *Interface) ConvertToProtoMessage() proto.Message

ConvertToProtoMessageInterface converts a Interface to a diodepb.Interface

func (*Interface) GetDescription

func (e *Interface) GetDescription() *string

GetDescription returns the Description field

func (*Interface) GetDevice

func (e *Interface) GetDevice() *diodepb.Device

GetDevice returns the Device field

func (*Interface) GetEnabled

func (e *Interface) GetEnabled() *bool

GetEnabled returns the Enabled field

func (*Interface) GetLabel

func (e *Interface) GetLabel() *string

GetLabel returns the Label field

func (*Interface) GetMacAddress

func (e *Interface) GetMacAddress() *string

GetMacAddress returns the MacAddress field

func (*Interface) GetMarkConnected

func (e *Interface) GetMarkConnected() *bool

GetMarkConnected returns the MarkConnected field

func (*Interface) GetMgmtOnly

func (e *Interface) GetMgmtOnly() *bool

GetMgmtOnly returns the MgmtOnly field

func (*Interface) GetMode

func (e *Interface) GetMode() string

GetMode returns the Mode field

func (*Interface) GetMtu

func (e *Interface) GetMtu() *int32

GetMtu returns the Mtu field

func (*Interface) GetName

func (e *Interface) GetName() string

GetName returns the Name field

func (*Interface) GetSpeed

func (e *Interface) GetSpeed() *int32

GetSpeed returns the Speed field

func (*Interface) GetTags

func (e *Interface) GetTags() []*diodepb.Tag

GetTags returns the Tags field

func (*Interface) GetType

func (e *Interface) GetType() string

GetType returns the Type field

func (*Interface) GetWwn

func (e *Interface) GetWwn() *string

GetWwn returns the Wwn field

type Manufacturer

type Manufacturer struct {
	Name        *string
	Slug        *string
	Description *string
	Tags        []*Tag
}

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

func (e *Platform) ConvertToProtoEntity() *diodepb.Entity

ConvertToProtoEntityPlatform converts a Platform to a diodepb.Entity

func (*Platform) ConvertToProtoMessage

func (e *Platform) ConvertToProtoMessage() proto.Message

ConvertToProtoMessagePlatform converts a Platform to a diodepb.Platform

func (*Platform) GetDescription

func (e *Platform) GetDescription() *string

GetDescription returns the Description field

func (*Platform) GetManufacturer

func (e *Platform) GetManufacturer() *diodepb.Manufacturer

GetManufacturer returns the Manufacturer field

func (*Platform) GetName

func (e *Platform) GetName() string

GetName returns the Name field

func (*Platform) GetSlug

func (e *Platform) GetSlug() string

GetSlug returns the Slug field

func (*Platform) GetTags

func (e *Platform) GetTags() []*diodepb.Tag

GetTags returns the Tags 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

func (e *Prefix) ConvertToProtoEntity() *diodepb.Entity

ConvertToProtoEntityPrefix converts a Prefix to a diodepb.Entity

func (*Prefix) ConvertToProtoMessage

func (e *Prefix) ConvertToProtoMessage() proto.Message

ConvertToProtoMessagePrefix converts a Prefix to a diodepb.Prefix

func (*Prefix) GetComments

func (e *Prefix) GetComments() *string

GetComments returns the Comments field

func (*Prefix) GetDescription

func (e *Prefix) GetDescription() *string

GetDescription returns the Description field

func (*Prefix) GetIsPool

func (e *Prefix) GetIsPool() *bool

GetIsPool returns the IsPool field

func (*Prefix) GetMarkUtilized

func (e *Prefix) GetMarkUtilized() *bool

GetMarkUtilized returns the MarkUtilized field

func (*Prefix) GetPrefix

func (e *Prefix) GetPrefix() string

GetPrefix returns the Prefix field

func (*Prefix) GetSite

func (e *Prefix) GetSite() *diodepb.Site

GetSite returns the Site field

func (*Prefix) GetStatus

func (e *Prefix) GetStatus() string

GetStatus returns the Status field

func (*Prefix) GetTags

func (e *Prefix) GetTags() []*diodepb.Tag

GetTags returns the Tags field

type Role

type Role struct {
	Name        *string
	Slug        *string
	Color       *string
	Description *string
	Tags        []*Tag
}

Role is based on diodepb.Role

func (*Role) ConvertToProtoEntity

func (e *Role) ConvertToProtoEntity() *diodepb.Entity

ConvertToProtoEntityRole converts a Role to a diodepb.Entity

func (*Role) ConvertToProtoMessage

func (e *Role) ConvertToProtoMessage() proto.Message

ConvertToProtoMessageRole converts a Role to a diodepb.Role

func (*Role) GetColor

func (e *Role) GetColor() string

GetColor returns the Color field

func (*Role) GetDescription

func (e *Role) GetDescription() *string

GetDescription returns the Description field

func (*Role) GetName

func (e *Role) GetName() string

GetName returns the Name field

func (*Role) GetSlug

func (e *Role) GetSlug() string

GetSlug returns the Slug field

func (*Role) GetTags

func (e *Role) GetTags() []*diodepb.Tag

GetTags returns the Tags 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

func (e *Site) ConvertToProtoEntity() *diodepb.Entity

ConvertToProtoEntitySite converts a Site to a diodepb.Entity

func (*Site) ConvertToProtoMessage

func (e *Site) ConvertToProtoMessage() proto.Message

ConvertToProtoMessageSite converts a Site to a diodepb.Site

func (*Site) GetComments

func (e *Site) GetComments() *string

GetComments returns the Comments field

func (*Site) GetDescription

func (e *Site) GetDescription() *string

GetDescription returns the Description field

func (*Site) GetFacility

func (e *Site) GetFacility() *string

GetFacility returns the Facility field

func (*Site) GetName

func (e *Site) GetName() string

GetName returns the Name field

func (*Site) GetSlug

func (e *Site) GetSlug() string

GetSlug returns the Slug field

func (*Site) GetStatus

func (e *Site) GetStatus() string

GetStatus returns the Status field

func (*Site) GetTags

func (e *Site) GetTags() []*diodepb.Tag

GetTags returns the Tags field

func (*Site) GetTimeZone

func (e *Site) GetTimeZone() *string

GetTimeZone returns the TimeZone field

type Tag

type Tag struct {
	Name  *string
	Slug  *string
	Color *string
}

Tag is based on diodepb.Tag

func (*Tag) ConvertToProtoMessage

func (e *Tag) ConvertToProtoMessage() proto.Message

ConvertToProtoMessageTag converts a Tag to a diodepb.Tag

func (*Tag) GetColor

func (e *Tag) GetColor() string

GetColor returns the Color field

func (*Tag) GetName

func (e *Tag) GetName() string

GetName returns the Name field

func (*Tag) GetSlug

func (e *Tag) GetSlug() string

GetSlug returns the Slug field

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

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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