models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 31

Documentation

Index

Constants

View Source
const (

	// DriveCacheTypeUnsafe captures enum value "Unsafe"
	DriveCacheTypeUnsafe string = "Unsafe"

	// DriveCacheTypeWriteback captures enum value "Writeback"
	DriveCacheTypeWriteback string = "Writeback"
)
View Source
const (

	// DriveIoEngineSync captures enum value "Sync"
	DriveIoEngineSync string = "Sync"

	// DriveIoEngineAsync captures enum value "Async"
	DriveIoEngineAsync string = "Async"
)
View Source
const (

	// InstanceActionInfoActionTypeFlushMetrics captures enum value "FlushMetrics"
	InstanceActionInfoActionTypeFlushMetrics string = "FlushMetrics"

	// InstanceActionInfoActionTypeInstanceStart captures enum value "InstanceStart"
	InstanceActionInfoActionTypeInstanceStart string = "InstanceStart"

	// InstanceActionInfoActionTypeSendCtrlAltDel captures enum value "SendCtrlAltDel"
	InstanceActionInfoActionTypeSendCtrlAltDel string = "SendCtrlAltDel"
)
View Source
const (

	// InstanceInfoStateNotStarted captures enum value "Not started"
	InstanceInfoStateNotStarted string = "Not started"

	// InstanceInfoStateRunning captures enum value "Running"
	InstanceInfoStateRunning string = "Running"

	// InstanceInfoStatePaused captures enum value "Paused"
	InstanceInfoStatePaused string = "Paused"
)
View Source
const (

	// LoggerLevelError captures enum value "Error"
	LoggerLevelError string = "Error"

	// LoggerLevelWarning captures enum value "Warning"
	LoggerLevelWarning string = "Warning"

	// LoggerLevelInfo captures enum value "Info"
	LoggerLevelInfo string = "Info"

	// LoggerLevelDebug captures enum value "Debug"
	LoggerLevelDebug string = "Debug"
)
View Source
const (

	// MmdsConfigVersionV1 captures enum value "V1"
	MmdsConfigVersionV1 string = "V1"

	// MmdsConfigVersionV2 captures enum value "V2"
	MmdsConfigVersionV2 string = "V2"
)
View Source
const (

	// SnapshotCreateParamsSnapshotTypeFull captures enum value "Full"
	SnapshotCreateParamsSnapshotTypeFull string = "Full"

	// SnapshotCreateParamsSnapshotTypeDiff captures enum value "Diff"
	SnapshotCreateParamsSnapshotTypeDiff string = "Diff"
)
View Source
const (

	// VMStatePaused captures enum value "Paused"
	VMStatePaused string = "Paused"

	// VMStateResumed captures enum value "Resumed"
	VMStateResumed string = "Resumed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Balloon added in v1.0.0

type Balloon struct {

	// Target balloon size in MiB.
	// Required: true
	AmountMib *int64 `json:"amount_mib"`

	// Whether the balloon should deflate when the guest has memory pressure.
	// Required: true
	DeflateOnOom *bool `json:"deflate_on_oom"`

	// Interval in seconds between refreshing statistics. A non-zero value will enable the statistics. Defaults to 0.
	StatsPollingIntervals int64 `json:"stats_polling_interval_s,omitempty"`
}

Balloon Balloon device descriptor. swagger:model Balloon

func (*Balloon) MarshalBinary added in v1.0.0

func (m *Balloon) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Balloon) UnmarshalBinary added in v1.0.0

func (m *Balloon) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Balloon) Validate added in v1.0.0

func (m *Balloon) Validate(formats strfmt.Registry) error

Validate validates this balloon

type BalloonStats added in v1.0.0

type BalloonStats struct {

	// Actual amount of memory (in MiB) the device is holding.
	// Required: true
	ActualMib *int64 `json:"actual_mib"`

	// Actual number of pages the device is holding.
	// Required: true
	ActualPages *int64 `json:"actual_pages"`

	// An estimate of how much memory is available (in bytes) for starting new applications, without pushing the system to swap.
	AvailableMemory int64 `json:"available_memory,omitempty"`

	// The amount of memory, in bytes, that can be quickly reclaimed without additional I/O. Typically these pages are used for caching files from disk.
	DiskCaches int64 `json:"disk_caches,omitempty"`

	// The amount of memory not being used for any purpose (in bytes).
	FreeMemory int64 `json:"free_memory,omitempty"`

	// The number of successful hugetlb page allocations in the guest.
	HugetlbAllocations int64 `json:"hugetlb_allocations,omitempty"`

	// The number of failed hugetlb page allocations in the guest.
	HugetlbFailures int64 `json:"hugetlb_failures,omitempty"`

	// The number of major page faults that have occurred.
	MajorFaults int64 `json:"major_faults,omitempty"`

	// The number of minor page faults that have occurred.
	MinorFaults int64 `json:"minor_faults,omitempty"`

	// The amount of memory that has been swapped in (in bytes).
	SwapIn int64 `json:"swap_in,omitempty"`

	// The amount of memory that has been swapped out to disk (in bytes).
	SwapOut int64 `json:"swap_out,omitempty"`

	// Target amount of memory (in MiB) the device aims to hold.
	// Required: true
	TargetMib *int64 `json:"target_mib"`

	// Target number of pages the device aims to hold.
	// Required: true
	TargetPages *int64 `json:"target_pages"`

	// The total amount of memory available (in bytes).
	TotalMemory int64 `json:"total_memory,omitempty"`
}

BalloonStats Describes the balloon device statistics. swagger:model BalloonStats

func (*BalloonStats) MarshalBinary added in v1.0.0

func (m *BalloonStats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BalloonStats) UnmarshalBinary added in v1.0.0

func (m *BalloonStats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BalloonStats) Validate added in v1.0.0

func (m *BalloonStats) Validate(formats strfmt.Registry) error

Validate validates this balloon stats

type BalloonStatsUpdate added in v1.0.0

type BalloonStatsUpdate struct {

	// Interval in seconds between refreshing statistics.
	// Required: true
	StatsPollingIntervals *int64 `json:"stats_polling_interval_s"`
}

BalloonStatsUpdate Update the statistics polling interval, with the first statistics update scheduled immediately. Statistics cannot be turned on/off after boot. swagger:model BalloonStatsUpdate

func (*BalloonStatsUpdate) MarshalBinary added in v1.0.0

func (m *BalloonStatsUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BalloonStatsUpdate) UnmarshalBinary added in v1.0.0

func (m *BalloonStatsUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BalloonStatsUpdate) Validate added in v1.0.0

func (m *BalloonStatsUpdate) Validate(formats strfmt.Registry) error

Validate validates this balloon stats update

type BalloonUpdate added in v1.0.0

type BalloonUpdate struct {

	// Target balloon size in MiB.
	// Required: true
	AmountMib *int64 `json:"amount_mib"`
}

BalloonUpdate Balloon device descriptor. swagger:model BalloonUpdate

func (*BalloonUpdate) MarshalBinary added in v1.0.0

func (m *BalloonUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BalloonUpdate) UnmarshalBinary added in v1.0.0

func (m *BalloonUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BalloonUpdate) Validate added in v1.0.0

func (m *BalloonUpdate) Validate(formats strfmt.Registry) error

Validate validates this balloon update

type BootSource

type BootSource struct {

	// Kernel boot arguments
	BootArgs string `json:"boot_args,omitempty"`

	// Host level path to the initrd image used to boot the guest
	InitrdPath string `json:"initrd_path,omitempty"`

	// Host level path to the kernel image used to boot the guest
	// Required: true
	KernelImagePath *string `json:"kernel_image_path"`
}

BootSource Boot source descriptor. swagger:model BootSource

func (*BootSource) MarshalBinary

func (m *BootSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BootSource) UnmarshalBinary

func (m *BootSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BootSource) Validate

func (m *BootSource) Validate(formats strfmt.Registry) error

Validate validates this boot source

type CPUTemplate

type CPUTemplate string

CPUTemplate The CPU Template defines a set of flags to be disabled from the microvm so that the features exposed to the guest are the same as in the selected instance type. Works only on Intel. swagger:model CpuTemplate

const (

	// CPUTemplateC3 captures enum value "C3"
	CPUTemplateC3 CPUTemplate = "C3"

	// CPUTemplateT2 captures enum value "T2"
	CPUTemplateT2 CPUTemplate = "T2"
)

func (CPUTemplate) Validate

func (m CPUTemplate) Validate(formats strfmt.Registry) error

Validate validates this Cpu template

type Drive

type Drive struct {

	// Represents the caching strategy for the block device.
	// Enum: [Unsafe Writeback]
	CacheType *string `json:"cache_type,omitempty"`

	// drive id
	// Required: true
	DriveID *string `json:"drive_id"`

	// Type of the IO engine used by the device. "Async" is supported on host kernels newer than 5.10.51.
	// Enum: [Sync Async]
	IoEngine *string `json:"io_engine,omitempty"`

	// is read only
	// Required: true
	IsReadOnly *bool `json:"is_read_only"`

	// is root device
	// Required: true
	IsRootDevice *bool `json:"is_root_device"`

	// Represents the unique id of the boot partition of this device. It is optional and it will be taken into account only if the is_root_device field is true.
	Partuuid string `json:"partuuid,omitempty"`

	// Host level path for the guest drive
	// Required: true
	PathOnHost *string `json:"path_on_host"`

	// rate limiter
	RateLimiter *RateLimiter `json:"rate_limiter,omitempty"`
}

Drive drive swagger:model Drive

func (*Drive) MarshalBinary

func (m *Drive) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Drive) UnmarshalBinary

func (m *Drive) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Drive) Validate

func (m *Drive) Validate(formats strfmt.Registry) error

Validate validates this drive

type Error

type Error struct {

	// A description of the error condition
	// Read Only: true
	FaultMessage string `json:"fault_message,omitempty"`
}

Error error swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type FirecrackerVersion added in v1.0.0

type FirecrackerVersion struct {

	// Firecracker build version.
	// Required: true
	FirecrackerVersion *string `json:"firecracker_version"`
}

FirecrackerVersion Describes the Firecracker version. swagger:model FirecrackerVersion

func (*FirecrackerVersion) MarshalBinary added in v1.0.0

func (m *FirecrackerVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FirecrackerVersion) UnmarshalBinary added in v1.0.0

func (m *FirecrackerVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FirecrackerVersion) Validate added in v1.0.0

func (m *FirecrackerVersion) Validate(formats strfmt.Registry) error

Validate validates this firecracker version

type FullVMConfiguration added in v1.0.0

type FullVMConfiguration struct {

	// balloon
	Balloon *Balloon `json:"balloon,omitempty"`

	// boot source
	BootSource *BootSource `json:"boot-source,omitempty"`

	// Configurations for all block devices.
	Drives []*Drive `json:"drives"`

	// logger
	Logger *Logger `json:"logger,omitempty"`

	// machine config
	MachineConfig *MachineConfiguration `json:"machine-config,omitempty"`

	// metrics
	Metrics *Metrics `json:"metrics,omitempty"`

	// mmds config
	MmdsConfig *MmdsConfig `json:"mmds-config,omitempty"`

	// Configurations for all net devices.
	NetworkInterfaces []*NetworkInterface `json:"network-interfaces"`

	// vsock
	Vsock *Vsock `json:"vsock,omitempty"`
}

FullVMConfiguration full Vm configuration swagger:model FullVmConfiguration

func (*FullVMConfiguration) MarshalBinary added in v1.0.0

func (m *FullVMConfiguration) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FullVMConfiguration) UnmarshalBinary added in v1.0.0

func (m *FullVMConfiguration) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FullVMConfiguration) Validate added in v1.0.0

func (m *FullVMConfiguration) Validate(formats strfmt.Registry) error

Validate validates this full Vm configuration

type InstanceActionInfo

type InstanceActionInfo struct {

	// Enumeration indicating what type of action is contained in the payload
	// Required: true
	// Enum: [FlushMetrics InstanceStart SendCtrlAltDel]
	ActionType *string `json:"action_type"`
}

InstanceActionInfo Variant wrapper containing the real action. swagger:model InstanceActionInfo

func (*InstanceActionInfo) MarshalBinary

func (m *InstanceActionInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InstanceActionInfo) UnmarshalBinary

func (m *InstanceActionInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InstanceActionInfo) Validate

func (m *InstanceActionInfo) Validate(formats strfmt.Registry) error

Validate validates this instance action info

type InstanceInfo

type InstanceInfo struct {

	// Application name.
	// Required: true
	AppName *string `json:"app_name"`

	// MicroVM / instance ID.
	// Required: true
	ID *string `json:"id"`

	// The current detailed state (Not started, Running, Paused) of the Firecracker instance. This value is read-only for the control-plane.
	// Required: true
	// Enum: [Not started Running Paused]
	State *string `json:"state"`

	// MicroVM hypervisor build version.
	// Required: true
	VmmVersion *string `json:"vmm_version"`
}

InstanceInfo Describes MicroVM instance information. swagger:model InstanceInfo

func (*InstanceInfo) MarshalBinary

func (m *InstanceInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InstanceInfo) UnmarshalBinary

func (m *InstanceInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InstanceInfo) Validate

func (m *InstanceInfo) Validate(formats strfmt.Registry) error

Validate validates this instance info

type Logger

type Logger struct {

	// Set the level. The possible values are case-insensitive.
	// Enum: [Error Warning Info Debug]
	Level *string `json:"level,omitempty"`

	// Path to the named pipe or file for the human readable log output.
	// Required: true
	LogPath *string `json:"log_path"`

	// Whether or not to output the level in the logs.
	ShowLevel *bool `json:"show_level,omitempty"`

	// Whether or not to include the file path and line number of the log's origin.
	ShowLogOrigin *bool `json:"show_log_origin,omitempty"`
}

Logger Describes the configuration option for the logging capability. swagger:model Logger

func (*Logger) MarshalBinary

func (m *Logger) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Logger) UnmarshalBinary

func (m *Logger) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Logger) Validate

func (m *Logger) Validate(formats strfmt.Registry) error

Validate validates this logger

type MachineConfiguration

type MachineConfiguration struct {

	// cpu template
	CPUTemplate CPUTemplate `json:"cpu_template,omitempty"`

	// Memory size of VM
	// Required: true
	MemSizeMib *int64 `json:"mem_size_mib"`

	// Flag for enabling/disabling simultaneous multithreading. Can be enabled only on x86.
	Smt *bool `json:"smt,omitempty"`

	// Enable dirty page tracking. If this is enabled, then incremental guest memory snapshots can be created. These belong to diff snapshots, which contain, besides the microVM state, only the memory dirtied since a previous snapshot. Full snapshots each contain a full copy of the guest memory.
	TrackDirtyPages bool `json:"track_dirty_pages,omitempty"`

	// Number of vCPUs (either 1 or an even number)
	// Required: true
	// Maximum: 32
	// Minimum: 1
	VcpuCount *int64 `json:"vcpu_count"`
}

MachineConfiguration Describes the number of vCPUs, memory size, SMT capabilities and the CPU template. swagger:model MachineConfiguration

func (*MachineConfiguration) MarshalBinary

func (m *MachineConfiguration) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MachineConfiguration) UnmarshalBinary

func (m *MachineConfiguration) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MachineConfiguration) Validate

func (m *MachineConfiguration) Validate(formats strfmt.Registry) error

Validate validates this machine configuration

type Metrics added in v0.22.0

type Metrics struct {

	// Path to the named pipe or file where the JSON-formatted metrics are flushed.
	// Required: true
	MetricsPath *string `json:"metrics_path"`
}

Metrics Describes the configuration option for the metrics capability. swagger:model Metrics

func (*Metrics) MarshalBinary added in v0.22.0

func (m *Metrics) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Metrics) UnmarshalBinary added in v0.22.0

func (m *Metrics) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Metrics) Validate added in v0.22.0

func (m *Metrics) Validate(formats strfmt.Registry) error

Validate validates this metrics

type MmdsConfig added in v0.22.0

type MmdsConfig struct {

	// A valid IPv4 link-local address.
	IPV4Address *string `json:"ipv4_address,omitempty"`

	// List of the network interface IDs capable of forwarding packets to the MMDS. Network interface IDs mentioned must be valid at the time of this request. The net device model will reply to HTTP GET requests sent to the MMDS address via the interfaces mentioned. In this case, both ARP requests and TCP segments heading to `ipv4_address` are intercepted by the device model, and do not reach the associated TAP device.
	// Required: true
	NetworkInterfaces []string `json:"network_interfaces"`

	// Enumeration indicating the MMDS version to be configured.
	// Enum: [V1 V2]
	Version *string `json:"version,omitempty"`
}

MmdsConfig Defines the MMDS configuration. swagger:model MmdsConfig

func (*MmdsConfig) MarshalBinary added in v0.22.0

func (m *MmdsConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MmdsConfig) UnmarshalBinary added in v0.22.0

func (m *MmdsConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MmdsConfig) Validate added in v0.22.0

func (m *MmdsConfig) Validate(formats strfmt.Registry) error

Validate validates this mmds config

type MmdsContentsObject added in v1.0.0

type MmdsContentsObject interface{}

MmdsContentsObject Describes the contents of MMDS in JSON format. swagger:model MmdsContentsObject

type NetworkInterface

type NetworkInterface struct {

	// guest mac
	GuestMac string `json:"guest_mac,omitempty"`

	// Host level path for the guest network interface
	// Required: true
	HostDevName *string `json:"host_dev_name"`

	// iface id
	// Required: true
	IfaceID *string `json:"iface_id"`

	// rx rate limiter
	RxRateLimiter *RateLimiter `json:"rx_rate_limiter,omitempty"`

	// tx rate limiter
	TxRateLimiter *RateLimiter `json:"tx_rate_limiter,omitempty"`
}

NetworkInterface Defines a network interface. swagger:model NetworkInterface

func (*NetworkInterface) MarshalBinary

func (m *NetworkInterface) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkInterface) UnmarshalBinary

func (m *NetworkInterface) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkInterface) Validate

func (m *NetworkInterface) Validate(formats strfmt.Registry) error

Validate validates this network interface

type PartialDrive

type PartialDrive struct {

	// drive id
	// Required: true
	DriveID *string `json:"drive_id"`

	// Host level path for the guest drive
	PathOnHost string `json:"path_on_host,omitempty"`

	// rate limiter
	RateLimiter *RateLimiter `json:"rate_limiter,omitempty"`
}

PartialDrive partial drive swagger:model PartialDrive

func (*PartialDrive) MarshalBinary

func (m *PartialDrive) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PartialDrive) UnmarshalBinary

func (m *PartialDrive) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PartialDrive) Validate

func (m *PartialDrive) Validate(formats strfmt.Registry) error

Validate validates this partial drive

type PartialNetworkInterface

type PartialNetworkInterface struct {

	// iface id
	// Required: true
	IfaceID *string `json:"iface_id"`

	// rx rate limiter
	RxRateLimiter *RateLimiter `json:"rx_rate_limiter,omitempty"`

	// tx rate limiter
	TxRateLimiter *RateLimiter `json:"tx_rate_limiter,omitempty"`
}

PartialNetworkInterface Defines a partial network interface structure, used to update the rate limiters for that interface, after microvm start. swagger:model PartialNetworkInterface

func (*PartialNetworkInterface) MarshalBinary

func (m *PartialNetworkInterface) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PartialNetworkInterface) UnmarshalBinary

func (m *PartialNetworkInterface) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PartialNetworkInterface) Validate

func (m *PartialNetworkInterface) Validate(formats strfmt.Registry) error

Validate validates this partial network interface

type RateLimiter

type RateLimiter struct {

	// Token bucket with bytes as tokens
	Bandwidth *TokenBucket `json:"bandwidth,omitempty"`

	// Token bucket with operations as tokens
	Ops *TokenBucket `json:"ops,omitempty"`
}

RateLimiter Defines an IO rate limiter with independent bytes/s and ops/s limits. Limits are defined by configuring each of the _bandwidth_ and _ops_ token buckets. swagger:model RateLimiter

func (*RateLimiter) MarshalBinary

func (m *RateLimiter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RateLimiter) UnmarshalBinary

func (m *RateLimiter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RateLimiter) Validate

func (m *RateLimiter) Validate(formats strfmt.Registry) error

Validate validates this rate limiter

type SnapshotCreateParams added in v1.0.0

type SnapshotCreateParams struct {

	// Path to the file that will contain the guest memory.
	// Required: true
	MemFilePath *string `json:"mem_file_path"`

	// Path to the file that will contain the microVM state.
	// Required: true
	SnapshotPath *string `json:"snapshot_path"`

	// Type of snapshot to create. It is optional and by default, a full snapshot is created.
	// Enum: [Full Diff]
	SnapshotType string `json:"snapshot_type,omitempty"`

	// The microVM version for which we want to create the snapshot. It is optional and it defaults to the current version.
	Version string `json:"version,omitempty"`
}

SnapshotCreateParams snapshot create params swagger:model SnapshotCreateParams

func (*SnapshotCreateParams) MarshalBinary added in v1.0.0

func (m *SnapshotCreateParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SnapshotCreateParams) UnmarshalBinary added in v1.0.0

func (m *SnapshotCreateParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SnapshotCreateParams) Validate added in v1.0.0

func (m *SnapshotCreateParams) Validate(formats strfmt.Registry) error

Validate validates this snapshot create params

type SnapshotLoadParams added in v1.0.0

type SnapshotLoadParams struct {

	// Enable support for incremental (diff) snapshots by tracking dirty guest pages.
	EnableDiffSnapshots bool `json:"enable_diff_snapshots,omitempty"`

	// Path to the file that contains the guest memory to be loaded.
	// Required: true
	MemFilePath *string `json:"mem_file_path"`

	// When set to true, the vm is also resumed if the snapshot load is successful.
	ResumeVM bool `json:"resume_vm,omitempty"`

	// Path to the file that contains the microVM state to be loaded.
	// Required: true
	SnapshotPath *string `json:"snapshot_path"`
}

SnapshotLoadParams snapshot load params swagger:model SnapshotLoadParams

func (*SnapshotLoadParams) MarshalBinary added in v1.0.0

func (m *SnapshotLoadParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SnapshotLoadParams) UnmarshalBinary added in v1.0.0

func (m *SnapshotLoadParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SnapshotLoadParams) Validate added in v1.0.0

func (m *SnapshotLoadParams) Validate(formats strfmt.Registry) error

Validate validates this snapshot load params

type TokenBucket

type TokenBucket struct {

	// The initial size of a token bucket.
	// Minimum: 0
	OneTimeBurst *int64 `json:"one_time_burst,omitempty"`

	// The amount of milliseconds it takes for the bucket to refill.
	// Required: true
	// Minimum: 0
	RefillTime *int64 `json:"refill_time"`

	// The total number of tokens this bucket can hold.
	// Required: true
	// Minimum: 0
	Size *int64 `json:"size"`
}

TokenBucket Defines a token bucket with a maximum capacity (size), an initial burst size (one_time_burst) and an interval for refilling purposes (refill_time). The refill-rate is derived from size and refill_time, and it is the constant rate at which the tokens replenish. The refill process only starts happening after the initial burst budget is consumed. Consumption from the token bucket is unbounded in speed which allows for bursts bound in size by the amount of tokens available. Once the token bucket is empty, consumption speed is bound by the refill_rate. swagger:model TokenBucket

func (*TokenBucket) MarshalBinary

func (m *TokenBucket) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TokenBucket) UnmarshalBinary

func (m *TokenBucket) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TokenBucket) Validate

func (m *TokenBucket) Validate(formats strfmt.Registry) error

Validate validates this token bucket

type VM added in v1.0.0

type VM struct {

	// state
	// Required: true
	// Enum: [Paused Resumed]
	State *string `json:"state"`
}

VM Defines the microVM running state. It is especially useful in the snapshotting context. swagger:model Vm

func (*VM) MarshalBinary added in v1.0.0

func (m *VM) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VM) UnmarshalBinary added in v1.0.0

func (m *VM) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VM) Validate added in v1.0.0

func (m *VM) Validate(formats strfmt.Registry) error

Validate validates this Vm

type Vsock

type Vsock struct {

	// Guest Vsock CID
	// Required: true
	// Minimum: 3
	GuestCid *int64 `json:"guest_cid"`

	// Path to UNIX domain socket, used to proxy vsock connections.
	// Required: true
	UdsPath *string `json:"uds_path"`

	// This parameter has been deprecated since v1.0.0.
	VsockID string `json:"vsock_id,omitempty"`
}

Vsock Defines a vsock device, backed by a set of Unix Domain Sockets, on the host side. For host-initiated connections, Firecracker will be listening on the Unix socket identified by the path `uds_path`. Firecracker will create this socket, bind and listen on it. Host-initiated connections will be performed by connection to this socket and issuing a connection forwarding request to the desired guest-side vsock port (i.e. `CONNECT 52\n`, to connect to port 52). For guest-initiated connections, Firecracker will expect host software to be bound and listening on Unix sockets at `uds_path_<PORT>`. E.g. "/path/to/host_vsock.sock_52" for port number 52. swagger:model Vsock

func (*Vsock) MarshalBinary

func (m *Vsock) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Vsock) UnmarshalBinary

func (m *Vsock) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Vsock) Validate

func (m *Vsock) Validate(formats strfmt.Registry) error

Validate validates this vsock

Jump to

Keyboard shortcuts

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