files

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MPL-2.0 Imports: 4 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

type EtcFileSpec struct {
	// contains filtered or unexported fields
}

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.

func (*EtcFileSpec) DeepCopy

func (r *EtcFileSpec) DeepCopy() resource.Resource

DeepCopy implements resource.Resource.

func (*EtcFileSpec) Metadata

func (r *EtcFileSpec) Metadata() *resource.Metadata

Metadata implements resource.Resource.

func (*EtcFileSpec) ResourceDefinition

func (r *EtcFileSpec) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements meta.ResourceDefinitionProvider interface.

func (*EtcFileSpec) Spec

func (r *EtcFileSpec) Spec() interface{}

Spec implements resource.Resource.

func (*EtcFileSpec) String

func (r *EtcFileSpec) String() string

func (*EtcFileSpec) TypedSpec

func (r *EtcFileSpec) TypedSpec() *EtcFileSpecSpec

TypedSpec allows to access the Spec with the proper type.

type EtcFileSpecSpec

type EtcFileSpecSpec struct {
	Contents []byte      `yaml:"contents"`
	Mode     fs.FileMode `yaml:"mode"`
}

EtcFileSpecSpec describes status of rendered secrets.

type EtcFileStatus

type EtcFileStatus struct {
	// contains filtered or unexported fields
}

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.

func (*EtcFileStatus) DeepCopy

func (r *EtcFileStatus) DeepCopy() resource.Resource

DeepCopy implements resource.Resource.

func (*EtcFileStatus) Metadata

func (r *EtcFileStatus) Metadata() *resource.Metadata

Metadata implements resource.Resource.

func (*EtcFileStatus) ResourceDefinition

func (r *EtcFileStatus) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements meta.ResourceDefinitionProvider interface.

func (*EtcFileStatus) Spec

func (r *EtcFileStatus) Spec() interface{}

Spec implements resource.Resource.

func (*EtcFileStatus) String

func (r *EtcFileStatus) String() string

func (*EtcFileStatus) TypedSpec

func (r *EtcFileStatus) TypedSpec() *EtcFileStatusSpec

TypedSpec allows to access the Spec with the proper type.

type EtcFileStatusSpec

type EtcFileStatusSpec struct {
	SpecVersion string `yaml:"specVersion"`
}

EtcFileStatusSpec describes status of rendered secrets.

Jump to

Keyboard shortcuts

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