instanceinfo

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_instanceinfo_instanceinfo_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CloudProperties

type CloudProperties struct {
	ProjectId        string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	InstanceId       string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	Zone             string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"`
	InstanceName     string `protobuf:"bytes,4,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"`
	Image            string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"`
	NumericProjectId string `protobuf:"bytes,6,opt,name=numeric_project_id,json=numericProjectId,proto3" json:"numeric_project_id,omitempty"`
	Region           string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"` // This is needed only for baremtal systems and is not
	// contains filtered or unexported fields
}

func (*CloudProperties) Descriptor deprecated

func (*CloudProperties) Descriptor() ([]byte, []int)

Deprecated: Use CloudProperties.ProtoReflect.Descriptor instead.

func (*CloudProperties) GetImage

func (x *CloudProperties) GetImage() string

func (*CloudProperties) GetInstanceId

func (x *CloudProperties) GetInstanceId() string

func (*CloudProperties) GetInstanceName

func (x *CloudProperties) GetInstanceName() string

func (*CloudProperties) GetNumericProjectId

func (x *CloudProperties) GetNumericProjectId() string

func (*CloudProperties) GetProjectId

func (x *CloudProperties) GetProjectId() string

func (*CloudProperties) GetRegion

func (x *CloudProperties) GetRegion() string

func (*CloudProperties) GetZone

func (x *CloudProperties) GetZone() string

func (*CloudProperties) ProtoMessage

func (*CloudProperties) ProtoMessage()

func (*CloudProperties) ProtoReflect

func (x *CloudProperties) ProtoReflect() protoreflect.Message

func (*CloudProperties) Reset

func (x *CloudProperties) Reset()

func (*CloudProperties) String

func (x *CloudProperties) String() string

type Disk

type Disk struct {

	// e.g. SCRATCH, PERSISTENT, etc.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// last element of the disk source attribute, unique per project
	// only exists if this is a persistent disk
	DiskName string `protobuf:"bytes,2,opt,name=disk_name,json=diskName,proto3" json:"disk_name,omitempty"`
	// human readable device name, does not necessarily match the disk_name
	DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
	// UNKNOWN, LOCAL_SSD, or PD_XXX
	DeviceType string `protobuf:"bytes,4,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	IsLocalSsd bool   `protobuf:"varint,5,opt,name=is_local_ssd,json=isLocalSsd,proto3" json:"is_local_ssd,omitempty"`
	// local disk mapping for device_name
	// found by following the link to  /dev/disk/by-id/google-*
	Mapping string `protobuf:"bytes,6,opt,name=mapping,proto3" json:"mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*Disk) Descriptor deprecated

func (*Disk) Descriptor() ([]byte, []int)

Deprecated: Use Disk.ProtoReflect.Descriptor instead.

func (*Disk) GetDeviceName

func (x *Disk) GetDeviceName() string

func (*Disk) GetDeviceType

func (x *Disk) GetDeviceType() string

func (*Disk) GetDiskName

func (x *Disk) GetDiskName() string

func (*Disk) GetIsLocalSsd

func (x *Disk) GetIsLocalSsd() bool

func (*Disk) GetMapping

func (x *Disk) GetMapping() string

func (*Disk) GetType

func (x *Disk) GetType() string

func (*Disk) ProtoMessage

func (*Disk) ProtoMessage()

func (*Disk) ProtoReflect

func (x *Disk) ProtoReflect() protoreflect.Message

func (*Disk) Reset

func (x *Disk) Reset()

func (*Disk) String

func (x *Disk) String() string

type InstanceProperties

type InstanceProperties struct {
	MachineType               string            `protobuf:"bytes,1,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"`
	CpuPlatform               string            `protobuf:"bytes,2,opt,name=cpu_platform,json=cpuPlatform,proto3" json:"cpu_platform,omitempty"`
	Disks                     []*Disk           `protobuf:"bytes,3,rep,name=disks,proto3" json:"disks,omitempty"`
	NetworkAdapters           []*NetworkAdapter `protobuf:"bytes,4,rep,name=network_adapters,json=networkAdapters,proto3" json:"network_adapters,omitempty"`
	CreationTimestamp         string            `protobuf:"bytes,5,opt,name=creation_timestamp,json=creationTimestamp,proto3" json:"creation_timestamp,omitempty"`
	LastMigrationEndTimestamp string            `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*InstanceProperties) Descriptor deprecated

func (*InstanceProperties) Descriptor() ([]byte, []int)

Deprecated: Use InstanceProperties.ProtoReflect.Descriptor instead.

func (*InstanceProperties) GetCpuPlatform

func (x *InstanceProperties) GetCpuPlatform() string

func (*InstanceProperties) GetCreationTimestamp

func (x *InstanceProperties) GetCreationTimestamp() string

func (*InstanceProperties) GetDisks

func (x *InstanceProperties) GetDisks() []*Disk

func (*InstanceProperties) GetLastMigrationEndTimestamp

func (x *InstanceProperties) GetLastMigrationEndTimestamp() string

func (*InstanceProperties) GetMachineType

func (x *InstanceProperties) GetMachineType() string

func (*InstanceProperties) GetNetworkAdapters

func (x *InstanceProperties) GetNetworkAdapters() []*NetworkAdapter

func (*InstanceProperties) ProtoMessage

func (*InstanceProperties) ProtoMessage()

func (*InstanceProperties) ProtoReflect

func (x *InstanceProperties) ProtoReflect() protoreflect.Message

func (*InstanceProperties) Reset

func (x *InstanceProperties) Reset()

func (*InstanceProperties) String

func (x *InstanceProperties) String() string

type NetworkAdapter

type NetworkAdapter struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	NetworkIp string `protobuf:"bytes,2,opt,name=network_ip,json=networkIp,proto3" json:"network_ip,omitempty"`
	Network   string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
	// local nic name mapping
	Mapping string `protobuf:"bytes,4,opt,name=mapping,proto3" json:"mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkAdapter) Descriptor deprecated

func (*NetworkAdapter) Descriptor() ([]byte, []int)

Deprecated: Use NetworkAdapter.ProtoReflect.Descriptor instead.

func (*NetworkAdapter) GetMapping

func (x *NetworkAdapter) GetMapping() string

func (*NetworkAdapter) GetName

func (x *NetworkAdapter) GetName() string

func (*NetworkAdapter) GetNetwork

func (x *NetworkAdapter) GetNetwork() string

func (*NetworkAdapter) GetNetworkIp

func (x *NetworkAdapter) GetNetworkIp() string

func (*NetworkAdapter) ProtoMessage

func (*NetworkAdapter) ProtoMessage()

func (*NetworkAdapter) ProtoReflect

func (x *NetworkAdapter) ProtoReflect() protoreflect.Message

func (*NetworkAdapter) Reset

func (x *NetworkAdapter) Reset()

func (*NetworkAdapter) String

func (x *NetworkAdapter) String() string

Jump to

Keyboard shortcuts

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