types

package
v0.0.0-...-c467027 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MPL-2.0 Imports: 5 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NetworkInterface_IfaceType_name = map[int32]string{
		0: "MACVTAP",
		1: "TAP",
	}
	NetworkInterface_IfaceType_value = map[string]int32{
		"MACVTAP": 0,
		"TAP":     1,
	}
)

Enum value maps for NetworkInterface_IfaceType.

View Source
var (
	MicroVMStatus_MicroVMState_name = map[int32]string{
		0: "PENDING",
		1: "CREATED",
		2: "FAILED",
		3: "DELETING",
	}
	MicroVMStatus_MicroVMState_value = map[string]int32{
		"PENDING":  0,
		"CREATED":  1,
		"FAILED":   2,
		"DELETING": 3,
	}
)

Enum value maps for MicroVMStatus_MicroVMState.

View Source
var (
	Mount_MountType_name = map[int32]string{
		0: "DEV",
		1: "HOSTPATH",
	}
	Mount_MountType_value = map[string]int32{
		"DEV":      0,
		"HOSTPATH": 1,
	}
)

Enum value maps for Mount_MountType.

View Source
var File_types_microvm_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ContainerVolumeSource

type ContainerVolumeSource struct {

	// Image specifies the conatiner image to use for the volume.
	Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

ContainerVolumeSource represents the details of a volume coming from a OCI image.

func (*ContainerVolumeSource) Descriptor deprecated

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

Deprecated: Use ContainerVolumeSource.ProtoReflect.Descriptor instead.

func (*ContainerVolumeSource) GetImage

func (x *ContainerVolumeSource) GetImage() string

func (*ContainerVolumeSource) ProtoMessage

func (*ContainerVolumeSource) ProtoMessage()

func (*ContainerVolumeSource) ProtoReflect

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

func (*ContainerVolumeSource) Reset

func (x *ContainerVolumeSource) Reset()

func (*ContainerVolumeSource) String

func (x *ContainerVolumeSource) String() string

type Initrd

type Initrd struct {

	// Image is the container image to use.
	Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// Filename is used to specify the name of the kernel file
	// in the Image. Defaults to initrd
	Filename *string `protobuf:"bytes,2,opt,name=filename,proto3,oneof" json:"filename,omitempty"`
	// contains filtered or unexported fields
}

Initrd represents the configuration for the initial ramdisk.

func (*Initrd) Descriptor deprecated

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

Deprecated: Use Initrd.ProtoReflect.Descriptor instead.

func (*Initrd) GetFilename

func (x *Initrd) GetFilename() string

func (*Initrd) GetImage

func (x *Initrd) GetImage() string

func (*Initrd) ProtoMessage

func (*Initrd) ProtoMessage()

func (*Initrd) ProtoReflect

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

func (*Initrd) Reset

func (x *Initrd) Reset()

func (*Initrd) String

func (x *Initrd) String() string

type Kernel

type Kernel struct {

	// Image is the container image to use.
	Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// Cmdline is the additional kernel command line args. Each provider has its
	// own recommended list, they will be used automatically. This field is for
	// additional values.
	Cmdline map[string]string `` /* 155-byte string literal not displayed */
	// Filename is used to specify the name of the kernel file
	// in the Image.
	Filename *string `protobuf:"bytes,3,opt,name=filename,proto3,oneof" json:"filename,omitempty"`
	// AddNetworkConfig if set to true indicates that the network-config kernel argument should be generated.
	AddNetworkConfig bool `protobuf:"varint,4,opt,name=add_network_config,json=addNetworkConfig,proto3" json:"add_network_config,omitempty"`
	// contains filtered or unexported fields
}

Kernel represents the configuration for a kernel.

func (*Kernel) Descriptor deprecated

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

Deprecated: Use Kernel.ProtoReflect.Descriptor instead.

func (*Kernel) GetAddNetworkConfig

func (x *Kernel) GetAddNetworkConfig() bool

func (*Kernel) GetCmdline

func (x *Kernel) GetCmdline() map[string]string

func (*Kernel) GetFilename

func (x *Kernel) GetFilename() string

func (*Kernel) GetImage

func (x *Kernel) GetImage() string

func (*Kernel) ProtoMessage

func (*Kernel) ProtoMessage()

func (*Kernel) ProtoReflect

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

func (*Kernel) Reset

func (x *Kernel) Reset()

func (*Kernel) String

func (x *Kernel) String() string

type MicroVM

type MicroVM struct {
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Spec is the specification of the microvm.
	Spec *MicroVMSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
	// Status is the runtime status of the microvm.
	Status *MicroVMStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

MicroVM represents a microvm machine that is created via a provider.

func (*MicroVM) Descriptor deprecated

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

Deprecated: Use MicroVM.ProtoReflect.Descriptor instead.

func (*MicroVM) GetSpec

func (x *MicroVM) GetSpec() *MicroVMSpec

func (*MicroVM) GetStatus

func (x *MicroVM) GetStatus() *MicroVMStatus

func (*MicroVM) GetVersion

func (x *MicroVM) GetVersion() int32

func (*MicroVM) ProtoMessage

func (*MicroVM) ProtoMessage()

func (*MicroVM) ProtoReflect

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

func (*MicroVM) Reset

func (x *MicroVM) Reset()

func (*MicroVM) String

func (x *MicroVM) String() string

type MicroVMSpec

type MicroVMSpec struct {

	// ID is the identifier of the microvm.
	// If this empty at creation time a ID will be automatically generated.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Namespace is the name of the namespace the microvm belongs to.
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// Labels allows you to include extra data for the microvms.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// VCPU specifies how many vcpu the machine will be allocated.
	Vcpu int32 `protobuf:"varint,4,opt,name=vcpu,proto3" json:"vcpu,omitempty"`
	// MemoryInMb is the amount of memory in megabytes that the machine will be allocated.
	MemoryInMb int32 `protobuf:"varint,5,opt,name=memory_in_mb,json=memoryInMb,proto3" json:"memory_in_mb,omitempty"`
	// Kernel is the details of the kernel to use .
	Kernel *Kernel `protobuf:"bytes,6,opt,name=kernel,proto3" json:"kernel,omitempty"`
	// Initrd is the optional details of the initial ramdisk.
	Initrd *Initrd `protobuf:"bytes,7,opt,name=initrd,proto3,oneof" json:"initrd,omitempty"`
	// RootVolume specifies the root volume mount for the MicroVM.
	RootVolume *Volume `protobuf:"bytes,8,opt,name=root_volume,json=rootVolume,proto3" json:"root_volume,omitempty"`
	// AdditionalVolumes specifies the volumes to be attached to the microvm.
	AdditionalVolumes []*Volume `protobuf:"bytes,9,rep,name=additional_volumes,json=additionalVolumes,proto3" json:"additional_volumes,omitempty"`
	// Interfaces specifies the network interfaces to be attached to the microvm.
	// Device names on the guest machine are determined by the order defined in
	// the list starting from eth1, eth2, ..., ethN.
	Interfaces []*NetworkInterface `protobuf:"bytes,10,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
	// Metadata allows you to specify data to be added to the metadata service. The key is the name
	// of the metadata item and the value is the base64 encoded contents of the metadata.
	Metadata map[string]string `` /* 158-byte string literal not displayed */
	// CreatedAt indicates the time the microvm was created at.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// UpdatedAt indicates the time the microvm was last updated.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// DeletedAt indicates the time the microvm was marked as deleted.
	DeletedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// UID is a globally unique identifier of the microvm.
	Uid *string `protobuf:"bytes,15,opt,name=uid,proto3,oneof" json:"uid,omitempty"`
	// Provider allows you to specify the name of the microvm provider to use. If this isn't supplied
	// then the default provider will be used.
	Provider *string `protobuf:"bytes,16,opt,name=provider,proto3,oneof" json:"provider,omitempty"`
	// contains filtered or unexported fields
}

MicroVMSpec represents the specification for a microvm.

func (*MicroVMSpec) Descriptor deprecated

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

Deprecated: Use MicroVMSpec.ProtoReflect.Descriptor instead.

func (*MicroVMSpec) GetAdditionalVolumes

func (x *MicroVMSpec) GetAdditionalVolumes() []*Volume

func (*MicroVMSpec) GetCreatedAt

func (x *MicroVMSpec) GetCreatedAt() *timestamppb.Timestamp

func (*MicroVMSpec) GetDeletedAt

func (x *MicroVMSpec) GetDeletedAt() *timestamppb.Timestamp

func (*MicroVMSpec) GetId

func (x *MicroVMSpec) GetId() string

func (*MicroVMSpec) GetInitrd

func (x *MicroVMSpec) GetInitrd() *Initrd

func (*MicroVMSpec) GetInterfaces

func (x *MicroVMSpec) GetInterfaces() []*NetworkInterface

func (*MicroVMSpec) GetKernel

func (x *MicroVMSpec) GetKernel() *Kernel

func (*MicroVMSpec) GetLabels

func (x *MicroVMSpec) GetLabels() map[string]string

func (*MicroVMSpec) GetMemoryInMb

func (x *MicroVMSpec) GetMemoryInMb() int32

func (*MicroVMSpec) GetMetadata

func (x *MicroVMSpec) GetMetadata() map[string]string

func (*MicroVMSpec) GetNamespace

func (x *MicroVMSpec) GetNamespace() string

func (*MicroVMSpec) GetProvider

func (x *MicroVMSpec) GetProvider() string

func (*MicroVMSpec) GetRootVolume

func (x *MicroVMSpec) GetRootVolume() *Volume

func (*MicroVMSpec) GetUid

func (x *MicroVMSpec) GetUid() string

func (*MicroVMSpec) GetUpdatedAt

func (x *MicroVMSpec) GetUpdatedAt() *timestamppb.Timestamp

func (*MicroVMSpec) GetVcpu

func (x *MicroVMSpec) GetVcpu() int32

func (*MicroVMSpec) ProtoMessage

func (*MicroVMSpec) ProtoMessage()

func (*MicroVMSpec) ProtoReflect

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

func (*MicroVMSpec) Reset

func (x *MicroVMSpec) Reset()

func (*MicroVMSpec) String

func (x *MicroVMSpec) String() string

type MicroVMStatus

type MicroVMStatus struct {

	// State stores information about the last known state of the vm and the spec.
	State MicroVMStatus_MicroVMState `protobuf:"varint,1,opt,name=state,proto3,enum=flintlock.types.MicroVMStatus_MicroVMState" json:"state,omitempty"`
	// Volumes holds the status of the volumes.
	Volumes map[string]*VolumeStatus `` /* 155-byte string literal not displayed */
	// KernelMount holds the status of the kernel mount point.
	KernelMount *Mount `protobuf:"bytes,3,opt,name=kernel_mount,json=kernelMount,proto3" json:"kernel_mount,omitempty"`
	// InitrdMount holds the status of the initrd mount point.
	InitrdMount *Mount `protobuf:"bytes,4,opt,name=initrd_mount,json=initrdMount,proto3" json:"initrd_mount,omitempty"`
	// NetworkInterfaces holds the status of the network interfaces.
	NetworkInterfaces map[string]*NetworkInterfaceStatus `` /* 200-byte string literal not displayed */
	// Retry is a counter about how many times we retried to reconcile.
	Retry int32 `protobuf:"varint,6,opt,name=retry,proto3" json:"retry,omitempty"`
	// contains filtered or unexported fields
}

MicroVMStatus contains the runtime status of the microvm.

func (*MicroVMStatus) Descriptor deprecated

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

Deprecated: Use MicroVMStatus.ProtoReflect.Descriptor instead.

func (*MicroVMStatus) GetInitrdMount

func (x *MicroVMStatus) GetInitrdMount() *Mount

func (*MicroVMStatus) GetKernelMount

func (x *MicroVMStatus) GetKernelMount() *Mount

func (*MicroVMStatus) GetNetworkInterfaces

func (x *MicroVMStatus) GetNetworkInterfaces() map[string]*NetworkInterfaceStatus

func (*MicroVMStatus) GetRetry

func (x *MicroVMStatus) GetRetry() int32

func (*MicroVMStatus) GetState

func (*MicroVMStatus) GetVolumes

func (x *MicroVMStatus) GetVolumes() map[string]*VolumeStatus

func (*MicroVMStatus) ProtoMessage

func (*MicroVMStatus) ProtoMessage()

func (*MicroVMStatus) ProtoReflect

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

func (*MicroVMStatus) Reset

func (x *MicroVMStatus) Reset()

func (*MicroVMStatus) String

func (x *MicroVMStatus) String() string

type MicroVMStatus_MicroVMState

type MicroVMStatus_MicroVMState int32
const (
	MicroVMStatus_PENDING  MicroVMStatus_MicroVMState = 0
	MicroVMStatus_CREATED  MicroVMStatus_MicroVMState = 1
	MicroVMStatus_FAILED   MicroVMStatus_MicroVMState = 2
	MicroVMStatus_DELETING MicroVMStatus_MicroVMState = 3
)

func (MicroVMStatus_MicroVMState) Descriptor

func (MicroVMStatus_MicroVMState) Enum

func (MicroVMStatus_MicroVMState) EnumDescriptor deprecated

func (MicroVMStatus_MicroVMState) EnumDescriptor() ([]byte, []int)

Deprecated: Use MicroVMStatus_MicroVMState.Descriptor instead.

func (MicroVMStatus_MicroVMState) Number

func (MicroVMStatus_MicroVMState) String

func (MicroVMStatus_MicroVMState) Type

type Mount

type Mount struct {

	// Type specifies the type of the mount (e.g. device or directory).
	Type Mount_MountType `protobuf:"varint,1,opt,name=type,proto3,enum=flintlock.types.Mount_MountType" json:"type,omitempty"`
	// Source is the location of the mounted volume.
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

Mount represents a volume mount point.

func (*Mount) Descriptor deprecated

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

Deprecated: Use Mount.ProtoReflect.Descriptor instead.

func (*Mount) GetSource

func (x *Mount) GetSource() string

func (*Mount) GetType

func (x *Mount) GetType() Mount_MountType

func (*Mount) ProtoMessage

func (*Mount) ProtoMessage()

func (*Mount) ProtoReflect

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

func (*Mount) Reset

func (x *Mount) Reset()

func (*Mount) String

func (x *Mount) String() string

type Mount_MountType

type Mount_MountType int32
const (
	Mount_DEV      Mount_MountType = 0
	Mount_HOSTPATH Mount_MountType = 1
)

func (Mount_MountType) Descriptor

func (Mount_MountType) Enum

func (x Mount_MountType) Enum() *Mount_MountType

func (Mount_MountType) EnumDescriptor deprecated

func (Mount_MountType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Mount_MountType.Descriptor instead.

func (Mount_MountType) Number

func (Mount_MountType) String

func (x Mount_MountType) String() string

func (Mount_MountType) Type

type NetworkInterface

type NetworkInterface struct {

	// DeviceID is the ID of the interface. There is no relation between the ID
	// and the name of the interface device on the quest machine.
	DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	// IfaceType specifies the type of network interface to create for use by the guest.
	Type NetworkInterface_IfaceType `protobuf:"varint,2,opt,name=type,proto3,enum=flintlock.types.NetworkInterface_IfaceType" json:"type,omitempty"`
	// GuestMAC allows the specifying of a specifi MAC address to use for the interface. If
	// not supplied a autogenerated MAC address will be used.
	GuestMac *string `protobuf:"bytes,4,opt,name=guest_mac,json=guestMac,proto3,oneof" json:"guest_mac,omitempty"`
	// Address is an optional static IP address to manually assign to this interface.
	// If not supplied then DHCP will be used.
	Address *StaticAddress `protobuf:"bytes,5,opt,name=address,proto3,oneof" json:"address,omitempty"`
	// Overrides is optional overrides applicable for network configuration.
	Overrides *NetworkOverrides `protobuf:"bytes,6,opt,name=overrides,proto3,oneof" json:"overrides,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkInterface) Descriptor deprecated

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

Deprecated: Use NetworkInterface.ProtoReflect.Descriptor instead.

func (*NetworkInterface) GetAddress

func (x *NetworkInterface) GetAddress() *StaticAddress

func (*NetworkInterface) GetDeviceId

func (x *NetworkInterface) GetDeviceId() string

func (*NetworkInterface) GetGuestMac

func (x *NetworkInterface) GetGuestMac() string

func (*NetworkInterface) GetOverrides

func (x *NetworkInterface) GetOverrides() *NetworkOverrides

func (*NetworkInterface) GetType

func (*NetworkInterface) ProtoMessage

func (*NetworkInterface) ProtoMessage()

func (*NetworkInterface) ProtoReflect

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

func (*NetworkInterface) Reset

func (x *NetworkInterface) Reset()

func (*NetworkInterface) String

func (x *NetworkInterface) String() string

type NetworkInterfaceStatus

type NetworkInterfaceStatus struct {

	// HostDeviceName is the name of the network interface used from the host. This will be
	// a tuntap or macvtap interface.
	HostDeviceName string `protobuf:"bytes,1,opt,name=host_device_name,json=hostDeviceName,proto3" json:"host_device_name,omitempty"`
	// Index is the index of the network interface on the host.
	Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// MACAddress is the MAC address of the host interface.
	MacAddress string `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkInterfaceStatus) Descriptor deprecated

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

Deprecated: Use NetworkInterfaceStatus.ProtoReflect.Descriptor instead.

func (*NetworkInterfaceStatus) GetHostDeviceName

func (x *NetworkInterfaceStatus) GetHostDeviceName() string

func (*NetworkInterfaceStatus) GetIndex

func (x *NetworkInterfaceStatus) GetIndex() int32

func (*NetworkInterfaceStatus) GetMacAddress

func (x *NetworkInterfaceStatus) GetMacAddress() string

func (*NetworkInterfaceStatus) ProtoMessage

func (*NetworkInterfaceStatus) ProtoMessage()

func (*NetworkInterfaceStatus) ProtoReflect

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

func (*NetworkInterfaceStatus) Reset

func (x *NetworkInterfaceStatus) Reset()

func (*NetworkInterfaceStatus) String

func (x *NetworkInterfaceStatus) String() string

type NetworkInterface_IfaceType

type NetworkInterface_IfaceType int32
const (
	// MACVTAP represents a network interface that is macvtap.
	NetworkInterface_MACVTAP NetworkInterface_IfaceType = 0
	// TAP represents a network interface that is a tap.
	NetworkInterface_TAP NetworkInterface_IfaceType = 1
)

func (NetworkInterface_IfaceType) Descriptor

func (NetworkInterface_IfaceType) Enum

func (NetworkInterface_IfaceType) EnumDescriptor deprecated

func (NetworkInterface_IfaceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use NetworkInterface_IfaceType.Descriptor instead.

func (NetworkInterface_IfaceType) Number

func (NetworkInterface_IfaceType) String

func (NetworkInterface_IfaceType) Type

type NetworkOverrides

type NetworkOverrides struct {

	// BridgeName is the name of the Linux bridge to attach TAP devices to. This overrides
	// any value set at the overall flintlock level.
	BridgeName *string `protobuf:"bytes,1,opt,name=bridge_name,json=bridgeName,proto3,oneof" json:"bridge_name,omitempty"`
	// contains filtered or unexported fields
}

NetworkOverrides represents override values for a network interface.

func (*NetworkOverrides) Descriptor deprecated

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

Deprecated: Use NetworkOverrides.ProtoReflect.Descriptor instead.

func (*NetworkOverrides) GetBridgeName

func (x *NetworkOverrides) GetBridgeName() string

func (*NetworkOverrides) ProtoMessage

func (*NetworkOverrides) ProtoMessage()

func (*NetworkOverrides) ProtoReflect

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

func (*NetworkOverrides) Reset

func (x *NetworkOverrides) Reset()

func (*NetworkOverrides) String

func (x *NetworkOverrides) String() string

type StaticAddress

type StaticAddress struct {

	// Address is the static IP address (IPv4 or IPv6) to assign to this interface.
	// Must be CIDR notation.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Gateway is used to optionaly set the default gateway for IPv4 or IPv6.
	Gateway *string `protobuf:"bytes,2,opt,name=gateway,proto3,oneof" json:"gateway,omitempty"`
	// Nameservers allows you to optionaly specify nameservers for the interface.
	Nameservers []string `protobuf:"bytes,3,rep,name=nameservers,proto3" json:"nameservers,omitempty"`
	// contains filtered or unexported fields
}

StaticAddress represents a static IPv4 or IPv6 address.

func (*StaticAddress) Descriptor deprecated

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

Deprecated: Use StaticAddress.ProtoReflect.Descriptor instead.

func (*StaticAddress) GetAddress

func (x *StaticAddress) GetAddress() string

func (*StaticAddress) GetGateway

func (x *StaticAddress) GetGateway() string

func (*StaticAddress) GetNameservers

func (x *StaticAddress) GetNameservers() []string

func (*StaticAddress) ProtoMessage

func (*StaticAddress) ProtoMessage()

func (*StaticAddress) ProtoReflect

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

func (*StaticAddress) Reset

func (x *StaticAddress) Reset()

func (*StaticAddress) String

func (x *StaticAddress) String() string

type Volume

type Volume struct {

	// ID is the uinique identifier of the volume.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// IsReadOnly specifies that the volume is to be mounted readonly.
	IsReadOnly bool `protobuf:"varint,2,opt,name=is_read_only,json=isReadOnly,proto3" json:"is_read_only,omitempty"`
	// MountPoint allows you to optionally specify a mount point for the volume. This only
	// applied to additional volumes and it will use cloud-init to mount the volumes.
	MountPoint *string `protobuf:"bytes,3,opt,name=mount_point,json=mountPoint,proto3,oneof" json:"mount_point,omitempty"`
	// Source is where the volume will be sourced from.
	Source *VolumeSource `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	// PartitionID is the uuid of the boot partition.
	PartitionId *string `protobuf:"bytes,5,opt,name=partition_id,json=partitionId,proto3,oneof" json:"partition_id,omitempty"`
	// Size is the size to resize this volume to.
	SizeInMb *int32 `protobuf:"varint,6,opt,name=size_in_mb,json=sizeInMb,proto3,oneof" json:"size_in_mb,omitempty"` // TODO: add rate limiting
	// contains filtered or unexported fields
}

Volume represents the configuration for a volume to be attached to a microvm.

func (*Volume) Descriptor deprecated

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

Deprecated: Use Volume.ProtoReflect.Descriptor instead.

func (*Volume) GetId

func (x *Volume) GetId() string

func (*Volume) GetIsReadOnly

func (x *Volume) GetIsReadOnly() bool

func (*Volume) GetMountPoint

func (x *Volume) GetMountPoint() string

func (*Volume) GetPartitionId

func (x *Volume) GetPartitionId() string

func (*Volume) GetSizeInMb

func (x *Volume) GetSizeInMb() int32

func (*Volume) GetSource

func (x *Volume) GetSource() *VolumeSource

func (*Volume) ProtoMessage

func (*Volume) ProtoMessage()

func (*Volume) ProtoReflect

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

func (*Volume) Reset

func (x *Volume) Reset()

func (*Volume) String

func (x *Volume) String() string

type VolumeSource

type VolumeSource struct {

	// Container is used to specify a source of a volume as a OCI container.
	ContainerSource *string `protobuf:"bytes,1,opt,name=container_source,json=containerSource,proto3,oneof" json:"container_source,omitempty"` //TODO: add CSI
	// contains filtered or unexported fields
}

VolumeSource is the source of a volume. Based loosely on the volumes in Kubernetes Pod specs.

func (*VolumeSource) Descriptor deprecated

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

Deprecated: Use VolumeSource.ProtoReflect.Descriptor instead.

func (*VolumeSource) GetContainerSource

func (x *VolumeSource) GetContainerSource() string

func (*VolumeSource) ProtoMessage

func (*VolumeSource) ProtoMessage()

func (*VolumeSource) ProtoReflect

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

func (*VolumeSource) Reset

func (x *VolumeSource) Reset()

func (*VolumeSource) String

func (x *VolumeSource) String() string

type VolumeStatus

type VolumeStatus struct {

	// Mount represents a volume mount point.
	Mount *Mount `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeStatus) Descriptor deprecated

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

Deprecated: Use VolumeStatus.ProtoReflect.Descriptor instead.

func (*VolumeStatus) GetMount

func (x *VolumeStatus) GetMount() *Mount

func (*VolumeStatus) ProtoMessage

func (*VolumeStatus) ProtoMessage()

func (*VolumeStatus) ProtoReflect

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

func (*VolumeStatus) Reset

func (x *VolumeStatus) Reset()

func (*VolumeStatus) String

func (x *VolumeStatus) String() string

Jump to

Keyboard shortcuts

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