Documentation ¶
Overview ¶
Package v1alpha1 provides resources which implement "glue" code from v1alpha1 Talos init system.
Index ¶
Constants ¶
View Source
const NamespaceName resource.Namespace = "runtime"
NamespaceName contains resources linking v1alpha2 components with v1alpha1 Talos runtime.
View Source
const ServiceType = resource.Type("Services.v1alpha1.talos.dev")
ServiceType is type of Service resource.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service = typed.Resource[ServiceSpec, ServiceRD]
Service describes running service state.
func NewService ¶
NewService initializes a Service resource.
type ServiceRD ¶
type ServiceRD struct{}
ServiceRD provides auxiliary methods for Service.
func (ServiceRD) ResourceDefinition ¶
func (ServiceRD) ResourceDefinition(resource.Metadata, ServiceSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type ServiceSpec ¶
type ServiceSpec struct { Running bool `yaml:"running" protobuf:"1"` Healthy bool `yaml:"healthy" protobuf:"2"` Unknown bool `yaml:"unknown" protobuf:"3"` }
ServiceSpec describe service state.
func (ServiceSpec) DeepCopy ¶
func (o ServiceSpec) DeepCopy() ServiceSpec
DeepCopy generates a deep copy of ServiceSpec.
Click to show internal directories.
Click to hide internal directories.