Documentation ¶
Overview ¶
Package v1alpha1 provides resources which implement "glue" code from v1alpha1 Talos init system.
Index ¶
- Constants
- type Service
- func (r *Service) DeepCopy() resource.Resource
- func (r *Service) Healthy() bool
- func (r *Service) Metadata() *resource.Metadata
- func (r *Service) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *Service) Running() bool
- func (r *Service) SetHealthy(healthy bool)
- func (r *Service) SetRunning(running bool)
- func (r *Service) SetUnknown(unknown bool)
- func (r *Service) Spec() interface{}
- func (r *Service) String() string
- func (r *Service) Unknown() bool
- type ServiceSpec
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 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() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*Service) SetHealthy ¶
SetHealthy changes .spec.healthy.
func (*Service) SetRunning ¶
SetRunning changes .spec.running.
func (*Service) SetUnknown ¶ added in v0.11.0
SetUnknown changes .spec.unknown.
type ServiceSpec ¶
type ServiceSpec struct { Running bool `yaml:"running"` Healthy bool `yaml:"healthy"` Unknown bool `yaml:"unknown"` }
ServiceSpec describe service state.
Click to show internal directories.
Click to hide internal directories.