chartarchive

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileManifestEntry

type FileManifestEntry struct {
	Path   string `json:"path"`
	Mode   int64  `json:"mode"`
	Size   int64  `json:"size"`
	SHA256 string `json:"sha256"`
}

type PackageOptions

type PackageOptions struct {
	// OutputPath is the desired archive file path. If empty, a name is derived
	// from chart metadata and written to the current working directory.
	//
	// If OutputPath points to an existing directory, the archive filename will
	// be derived and placed within that directory.
	OutputPath string
	Force      bool
}

type PackageResult

type PackageResult struct {
	ArchivePath    string
	ChartDir       string
	ChartName      string
	ChartVersion   string
	ManifestSHA256 string
	ContentSHA256  string
	FileCount      int
	TotalBytes     int64
}

func PackageDir

func PackageDir(ctx context.Context, chartDir string, opts PackageOptions) (*PackageResult, error)

type UnpackOptions

type UnpackOptions struct {
	// DestinationPath is the directory to write chart files into. If empty,
	// it is derived from the chart metadata (e.g., <name>-<version>).
	DestinationPath string
	Force           bool
	Workers         int
	MaxBytes        int64 // 0 means unlimited; only used for streaming stdin by callers.
}

type UnpackResult

type UnpackResult struct {
	ArchivePath     string `json:"archivePath"`
	ChartName       string `json:"chartName,omitempty"`
	ChartVersion    string `json:"chartVersion,omitempty"`
	DestinationPath string `json:"destinationPath"`
	FileCount       int    `json:"fileCount"`
	TotalBytes      int64  `json:"totalBytes"`
	ContentSHA256   string `json:"contentSha256,omitempty"`
}

func UnpackArchive

func UnpackArchive(ctx context.Context, archivePath string, opts UnpackOptions) (*UnpackResult, error)

type VerifyResult

type VerifyResult struct {
	ArchivePath    string `json:"archivePath"`
	ChartName      string `json:"chartName,omitempty"`
	ChartVersion   string `json:"chartVersion,omitempty"`
	ChartDir       string `json:"chartDir,omitempty"`
	ManifestSHA256 string `json:"manifestSha256,omitempty"`
	FileCount      int    `json:"fileCount"`
	TotalBytes     int64  `json:"totalBytes"`
	ContentSHA256  string `json:"contentSha256,omitempty"`
}

func VerifyArchive

func VerifyArchive(ctx context.Context, path string) (*VerifyResult, error)

Jump to

Keyboard shortcuts

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