talos

package
v1.8.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package talos contains Talos specific resources.

Index

Constants

View Source
const (
	EventSinkStateType = resource.Type("EventSinkStates.talemu.sidero.dev")
	EventSinkStateID   = "current"
)

EventSinkStateType is the type of EventSinkState resource.

View Source
const (
	// ImageType is the type of Image resource.
	ImageType = resource.Type("Images.talemu.sidero.dev")

	// ImageID is the single id of the Talos image installed on the machine.
	ImageID = "current"
)
View Source
const (
	// RebootStatusType is the type of RebootStatus resource.
	RebootStatusType = resource.Type("RebootStatuses.talemu.sidero.dev")

	// RebootID is the ID of the singleton represeting rebooting state.
	RebootID = resource.ID("current")
)
View Source
const (
	// VersionType is the type of Version resource.
	VersionType = resource.Type("Versions.talemu.sidero.dev")

	// VersionID is the single id of the Talos version of the emulated machine.
	VersionID = "current"
)
View Source
const (
	// CachedImageType is the type of CachedImage resource.
	CachedImageType = resource.Type("CachedImages.talemu.sidero.dev")
)
View Source
const (
	// DiskType is the type of Disk resource.
	DiskType = resource.Type("Disks.talemu.sidero.dev")
)
View Source
const NamespaceName = "emulator"

NamespaceName sets the default namespace name for the emulator resources.

View Source
const (
	// RebootType is the type of Reboot resource.
	RebootType = resource.Type("Reboots.talemu.sidero.dev")
)

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, state state.State) error

Register Talos resource group in the state.

Types

type CachedImage

CachedImage is each image that was pulled by the image pre-pull.

func NewCachedImage

func NewCachedImage(ns, id string) *CachedImage

NewCachedImage creates new CachedImage resource.

type CachedImageExtension

type CachedImageExtension struct{}

CachedImageExtension providers auxiliary methods for CachedImage resource.

func (CachedImageExtension) ResourceDefinition

func (CachedImageExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type CachedImageSpec

CachedImageSpec wraps specs.CachedImageSpec.

type Disk

Disk resource contains a single disk information.

func NewDisk

func NewDisk(ns, id string) *Disk

NewDisk creates new Disk resource.

type DiskExtension

type DiskExtension struct{}

DiskExtension providers auxiliary methods for Disk resource.

func (DiskExtension) ResourceDefinition

func (DiskExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type DiskSpec

DiskSpec wraps specs.DiskSpec.

type EventSinkState

EventSinkState resource contains event sink state.

func NewEventSinkState

func NewEventSinkState(ns, id string) *EventSinkState

NewEventSinkState creates new EventSinkState state.

type EventSinkStateExtension

type EventSinkStateExtension struct{}

EventSinkStateExtension providers auxiliary methods for EventSinkState resource.

func (EventSinkStateExtension) ResourceDefinition

ResourceDefinition implements typed.Extension interface.

type EventSinkStateSpec

EventSinkStateSpec wraps specs.EventSinkStateSpec.

type Image

Image resource keeps the last image used in the upgrade request.

func NewImage

func NewImage(ns, id string) *Image

NewImage creates new Image resource.

type ImageExtension

type ImageExtension struct{}

ImageExtension providers auxiliary methods for Image resource.

func (ImageExtension) ResourceDefinition

func (ImageExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type ImageSpec

ImageSpec wraps specs.ImageSpec.

type Reboot

Reboot is used to simulate reboots.

func NewReboot

func NewReboot(ns, id string) *Reboot

NewReboot creates new Reboot resource.

type RebootExtension

type RebootExtension struct{}

RebootExtension providers auxiliary methods for Reboot resource.

func (RebootExtension) ResourceDefinition

func (RebootExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type RebootSpec

RebootSpec wraps specs.RebootSpec.

type RebootStatus

RebootStatus is used to simulate reboots.

func NewRebootStatus

func NewRebootStatus(ns, id string) *RebootStatus

NewRebootStatus creates new RebootStatus resource.

type RebootStatusExtension

type RebootStatusExtension struct{}

RebootStatusExtension providers auxiliary methods for RebootStatus resource.

func (RebootStatusExtension) ResourceDefinition

func (RebootStatusExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type RebootStatusSpec

RebootStatusSpec wraps specs.RebootStatusSpec.

type Version

Version resource keeps the current Talos version of the machine.

func NewVersion

func NewVersion(ns, id string) *Version

NewVersion creates new Version resource.

type VersionExtension

type VersionExtension struct{}

VersionExtension providers auxiliary methods for Version resource.

func (VersionExtension) ResourceDefinition

func (VersionExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type VersionSpec

VersionSpec wraps specs.VersionSpec.

Jump to

Keyboard shortcuts

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