files

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package files provides resources which describe files on disk.

Index

Constants

View Source
const EtcFileSpecType = resource.Type("EtcFileSpecs.files.talos.dev")

EtcFileSpecType is type of EtcFile resource.

View Source
const EtcFileStatusType = resource.Type("EtcFileStatuses.files.talos.dev")

EtcFileStatusType is type of EtcFile resource.

View Source
const NamespaceName resource.Namespace = "files"

NamespaceName contains file resources.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcFileSpec

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL