placemat

package
v2.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCluster

func NewCluster(spec *types.ClusterSpec) (*cluster, error)

NewCluster creates a Cluster from spec.

Types

type Cluster

type Cluster interface {
	// Setup configures and starts virtual data center
	Setup(ctx context.Context, r *vm.Runtime) error
}

Cluster represents the interface to setup virtual data center

type NodeStatus

type NodeStatus struct {
	Name        string                 `json:"name"`
	Taps        map[string]string      `json:"taps"`
	Volumes     []string               `json:"volumes"`
	CPU         int                    `json:"cpu"`
	Memory      string                 `json:"memory"`
	UEFI        bool                   `json:"uefi"`
	TPM         bool                   `json:"tpm"`
	SMBIOS      SMBIOSStatus           `json:"smbios"`
	PowerStatus virtualbmc.PowerStatus `json:"power_status"`
	SocketPath  string                 `json:"socket_path"`
}

NodeStatus represents status of a Node

type SMBIOSStatus

type SMBIOSStatus struct {
	Manufacturer string `json:"manufacturer"`
	Product      string `json:"product"`
	Serial       string `json:"serial"`
}

SMBIOSStatus represents SMBIOS of a Node

Jump to

Keyboard shortcuts

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