Documentation ¶
Overview ¶
Package talos contains Talos specific resources.
Index ¶
- Constants
- func Register(ctx context.Context, state state.State) error
- type CachedImage
- type CachedImageExtension
- type CachedImageSpec
- type Disk
- type DiskExtension
- type DiskSpec
- type EventSinkState
- type EventSinkStateExtension
- type EventSinkStateSpec
- type Image
- type ImageExtension
- type ImageSpec
- type Reboot
- type RebootExtension
- type RebootSpec
- type RebootStatus
- type RebootStatusExtension
- type RebootStatusSpec
- type Version
- type VersionExtension
- type VersionSpec
Constants ¶
const ( EventSinkStateType = resource.Type("EventSinkStates.talemu.sidero.dev") EventSinkStateID = "current" )
EventSinkStateType is the type of EventSinkState resource.
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" )
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") )
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" )
const ( // CachedImageType is the type of CachedImage resource. CachedImageType = resource.Type("CachedImages.talemu.sidero.dev") )
const ( // DiskType is the type of Disk resource. DiskType = resource.Type("Disks.talemu.sidero.dev") )
const NamespaceName = "emulator"
NamespaceName sets the default namespace name for the emulator resources.
const ( // RebootType is the type of Reboot resource. RebootType = resource.Type("Reboots.talemu.sidero.dev") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachedImage ¶
type CachedImage = typed.Resource[CachedImageSpec, CachedImageExtension]
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 ¶
type CachedImageSpec = protobuf.ResourceSpec[specs.CachedImageSpec, *specs.CachedImageSpec]
CachedImageSpec wraps specs.CachedImageSpec.
type Disk ¶
type Disk = typed.Resource[DiskSpec, DiskExtension]
Disk resource contains a single disk information.
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 EventSinkState ¶
type EventSinkState = typed.Resource[EventSinkStateSpec, EventSinkStateExtension]
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 ¶
func (EventSinkStateExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type EventSinkStateSpec ¶
type EventSinkStateSpec = protobuf.ResourceSpec[specs.EventSinkStateSpec, *specs.EventSinkStateSpec]
EventSinkStateSpec wraps specs.EventSinkStateSpec.
type Image ¶
type Image = typed.Resource[ImageSpec, ImageExtension]
Image resource keeps the last image used in the upgrade request.
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 Reboot ¶
type Reboot = typed.Resource[RebootSpec, RebootExtension]
Reboot is used to simulate reboots.
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 ¶
type RebootSpec = protobuf.ResourceSpec[specs.RebootSpec, *specs.RebootSpec]
RebootSpec wraps specs.RebootSpec.
type RebootStatus ¶
type RebootStatus = typed.Resource[RebootStatusSpec, RebootStatusExtension]
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 ¶
type RebootStatusSpec = protobuf.ResourceSpec[specs.RebootStatusSpec, *specs.RebootStatusSpec]
RebootStatusSpec wraps specs.RebootStatusSpec.
type Version ¶
type Version = typed.Resource[VersionSpec, VersionExtension]
Version resource keeps the current Talos version of the machine.
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 ¶
type VersionSpec = protobuf.ResourceSpec[specs.VersionSpec, *specs.VersionSpec]
VersionSpec wraps specs.VersionSpec.