Documentation ¶
Overview ¶
Package v1alpha1 provides resources which implement "glue" code from v1alpha1 Talos init system.
Index ¶
- Constants
- type BootstrapStatus
- func (r *BootstrapStatus) DeepCopy() resource.Resource
- func (r *BootstrapStatus) Metadata() *resource.Metadata
- func (r *BootstrapStatus) ResourceDefinition() core.ResourceDefinitionSpec
- func (r *BootstrapStatus) Spec() interface{}
- func (r *BootstrapStatus) Status() *BootstrapStatusSpec
- func (r *BootstrapStatus) String() string
- type BootstrapStatusSpec
- type Service
- func (r *Service) DeepCopy() resource.Resource
- func (r *Service) Healthy() bool
- func (r *Service) Metadata() *resource.Metadata
- func (r *Service) ResourceDefinition() core.ResourceDefinitionSpec
- func (r *Service) Running() bool
- func (r *Service) SetHealthy(healthy bool)
- func (r *Service) SetRunning(running bool)
- func (r *Service) Spec() interface{}
- func (r *Service) String() string
- type ServiceSpec
- type TimeSync
- func (r *TimeSync) DeepCopy() resource.Resource
- func (r *TimeSync) Metadata() *resource.Metadata
- func (r *TimeSync) ResourceDefinition() core.ResourceDefinitionSpec
- func (r *TimeSync) SetSync(sync bool)
- func (r *TimeSync) Spec() interface{}
- func (r *TimeSync) String() string
- func (r *TimeSync) Sync() bool
- type TimeSyncSpec
Constants ¶
const BootstrapStatusID = resource.ID("bootstrapStatus")
BootstrapStatusID is a singleton instance ID.
const BootstrapStatusType = resource.Type("v1alpha1/bootstrapStatus")
BootstrapStatusType is type of BootstrapStatus resource.
const NamespaceName resource.Namespace = "v1alpha1"
NamespaceName contains resources linking v2alpha1 components with v1alpha1 Talos runtime.
const ServiceType = resource.Type("v1alpha1/service")
ServiceType is type of Service resource.
const TimeSyncID = resource.ID("timeSync")
TimeSyncID is the ID of the singletone resource.
const TimeSyncType = resource.Type("v1alpha1/timeSync")
TimeSyncType is type of TimeSync resource.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapStatus ¶
type BootstrapStatus struct {
// contains filtered or unexported fields
}
BootstrapStatus describes v1alpha1 (bootkube) bootstrap status.
func NewBootstrapStatus ¶
func NewBootstrapStatus() *BootstrapStatus
NewBootstrapStatus initializes a BootstrapStatus resource.
func (*BootstrapStatus) DeepCopy ¶
func (r *BootstrapStatus) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*BootstrapStatus) Metadata ¶
func (r *BootstrapStatus) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*BootstrapStatus) ResourceDefinition ¶
func (r *BootstrapStatus) ResourceDefinition() core.ResourceDefinitionSpec
ResourceDefinition implements core.ResourceDefinitionProvider interface.
func (*BootstrapStatus) Spec ¶
func (r *BootstrapStatus) Spec() interface{}
Spec implements resource.Resource.
func (*BootstrapStatus) Status ¶
func (r *BootstrapStatus) Status() *BootstrapStatusSpec
Status returns .spec.
func (*BootstrapStatus) String ¶
func (r *BootstrapStatus) String() string
type BootstrapStatusSpec ¶
type BootstrapStatusSpec struct {
SelfHostedControlPlane bool `yaml:"selfHostedControlPlane"`
}
BootstrapStatusSpec describe service state.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service describes running service state.
func NewService ¶
NewService initializes a Service resource.
func (*Service) ResourceDefinition ¶
func (r *Service) ResourceDefinition() core.ResourceDefinitionSpec
ResourceDefinition implements core.ResourceDefinitionProvider interface.
func (*Service) SetHealthy ¶
SetHealthy changes .spec.healthy.
func (*Service) SetRunning ¶
SetRunning changes .spec.running.
type ServiceSpec ¶
ServiceSpec describe service state.
type TimeSync ¶
type TimeSync struct {
// contains filtered or unexported fields
}
TimeSync describes running current time sync status.
func (*TimeSync) ResourceDefinition ¶
func (r *TimeSync) ResourceDefinition() core.ResourceDefinitionSpec
ResourceDefinition implements core.ResourceDefinitionProvider interface.
type TimeSyncSpec ¶
type TimeSyncSpec struct {
Sync bool `yaml:"sync"`
}
TimeSyncSpec describes time sync state.