chartinput

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package chartinput enumerates regular files under Helm's input policies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Files

func Files(ctx context.Context, input fs.FS, archiveShape bool) ([]*archive.BufferedFile, error)

Files MUST apply the same Helm file policy to reader discovery and chart capture.

func Walk

func Walk(ctx context.Context, input fs.FS, directory bool, visit func(string, fs.FileInfo, []byte) error) error

Walk visits admitted regular files, borrowing already-read policy bytes for .helmignore.

Types

type Capture

type Capture struct {
	Files   []*archive.BufferedFile
	Archive []byte
}

Capture MUST retain immutable bytes until all chart consumers finish.

func CaptureAt

func CaptureAt(
	ctx context.Context,
	input fs.FS,
	options Options,
	visit func(string, fs.FileInfo, []byte),
) (Capture, bool, bool, error)

CaptureAt MUST retain partial coordinates independently of payload readability.

func (Capture) Load

func (c Capture) Load() (*chart.Chart, error)

Load MUST preserve Helm diagnostics for the chart owner to classify.

type Dependency

type Dependency struct {
	Declaration chart.Dependency
	Name        string
	Path        string
	Capture     Capture
}

Dependency MUST retain the effective name and artifact-relative origin with its bytes.

func (*Dependency) Remote

func (d *Dependency) Remote() bool

Remote classifies the declaration even when local path resolution fails.

type Description

type Description struct {
	Parent       Capture
	Dependencies []Dependency
	Chart        *chart.Chart
}

Description MUST preserve existing children while adding only selected missing dependencies.

func Describe

func Describe(
	ctx context.Context,
	input fs.FS,
	options Options,
	visit func(string, fs.FileInfo, []byte),
) (Description, bool, error)

Describe retains partial dependency coordinates when reconciliation must report a read failure.

func (*Description) Complete

func (d *Description) Complete(ctx context.Context, input fs.FS, options Options) (Description, bool, error)

Complete MUST recapture sibling bytes while retaining the parent's immutable selection.

type Options

type Options struct {
	Name     string
	Archive  bool
	Validate func(string) error
	Parent   []*archive.BufferedFile
}

Options MUST retain the artifact-relative location and its owner's path boundary. Filesystem calls make Options escape as an aggregate; visitors MUST stay separate to keep their state on the stack.

Jump to

Keyboard shortcuts

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