Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileManifestEntry ¶
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 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)
Click to show internal directories.
Click to hide internal directories.