structure

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition interface {
	Check(v1.Image, *tarfs.FS) error
}

type Conditions

type Conditions []Condition

func (Conditions) Check

func (c Conditions) Check(i v1.Image) error

type Dir added in v0.0.24

type Dir struct {
	FilesOnly bool // only check file permissions within the directory [structure]
	Mode      *os.FileMode
	Recursive bool
}

type DirsCondition added in v0.0.24

type DirsCondition struct {
	Want map[string]Dir
}

func (DirsCondition) Check added in v0.0.24

func (d DirsCondition) Check(_ v1.Image, fsys *tarfs.FS) error

type EnvCondition

type EnvCondition struct {
	Want map[string]string
}

func (EnvCondition) Check

func (e EnvCondition) Check(i v1.Image, _ *tarfs.FS) error

type File

type File struct {
	Optional bool
	Mode     *os.FileMode
	Regex    string
}

type FilesCondition

type FilesCondition struct {
	Want map[string]File
}

func (FilesCondition) Check

func (f FilesCondition) Check(_ v1.Image, fsys *tarfs.FS) error

type Permission added in v0.0.24

type Permission struct {
	Block    *os.FileMode
	Override []string
}

type PermissionsCondition added in v0.0.24

type PermissionsCondition struct {
	Want map[string]Permission
}

func (PermissionsCondition) Check added in v0.0.24

func (p PermissionsCondition) Check(_ v1.Image, fsys *tarfs.FS) error

Jump to

Keyboard shortcuts

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