Documentation ¶
Overview ¶
Package files provides resources which describe files on disk.
Index ¶
Constants ¶
const EtcFileSpecType = resource.Type("EtcFileSpecs.files.talos.dev")
EtcFileSpecType is type of EtcFile resource.
const EtcFileStatusType = resource.Type("EtcFileStatuses.files.talos.dev")
EtcFileStatusType is type of EtcFile resource.
const NamespaceName resource.Namespace = "files"
NamespaceName contains file resources.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcFileSpec ¶
type EtcFileSpec = typed.Resource[EtcFileSpecSpec, EtcFileSpecExtension]
EtcFileSpec resource holds contents of the file which should be put to `/etc` directory.
func NewEtcFileSpec ¶
func NewEtcFileSpec(namespace resource.Namespace, id resource.ID) *EtcFileSpec
NewEtcFileSpec initializes a EtcFileSpec resource.
type EtcFileSpecExtension ¶ added in v1.4.0
type EtcFileSpecExtension struct{}
EtcFileSpecExtension provides auxiliary methods for EtcFileSpec.
func (EtcFileSpecExtension) ResourceDefinition ¶ added in v1.4.0
func (EtcFileSpecExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type EtcFileSpecSpec ¶
type EtcFileSpecSpec struct { Contents []byte `yaml:"contents" protobuf:"1"` Mode fs.FileMode `yaml:"mode" protobuf:"2"` }
EtcFileSpecSpec describes status of rendered secrets.
func (EtcFileSpecSpec) DeepCopy ¶
func (o EtcFileSpecSpec) DeepCopy() EtcFileSpecSpec
DeepCopy generates a deep copy of EtcFileSpecSpec.
type EtcFileStatus ¶
type EtcFileStatus = typed.Resource[EtcFileStatusSpec, EtcFileStatusMD]
EtcFileStatus resource holds contents of the file which should be put to `/etc` directory.
func NewEtcFileStatus ¶
func NewEtcFileStatus(namespace resource.Namespace, id resource.ID) *EtcFileStatus
NewEtcFileStatus initializes a EtcFileStatus resource.
type EtcFileStatusMD ¶
type EtcFileStatusMD struct{}
EtcFileStatusMD provides auxiliary methods for EtcFileStatus.
func (EtcFileStatusMD) ResourceDefinition ¶
func (EtcFileStatusMD) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type EtcFileStatusSpec ¶
type EtcFileStatusSpec struct {
SpecVersion string `yaml:"specVersion" protobuf:"1"`
}
EtcFileStatusSpec describes status of rendered secrets.
func (EtcFileStatusSpec) DeepCopy ¶
func (o EtcFileStatusSpec) DeepCopy() EtcFileStatusSpec
DeepCopy generates a deep copy of EtcFileStatusSpec.