config

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSecret

func NewSecret(name string, creds *auth.HelmAuth) *helm.Secret

func Parse

func Parse(f vfs.FS, configDir string) (conf *image.Configuration, err error)

func Write

func Write(f vfs.FS, configDir string, conf *image.Configuration) error

Types

type Helm

type Helm struct {
	FS             vfs.FS
	RelativePath   string
	DestinationDir string
	ValuesResolver helmValuesResolver
	Logger         log.Logger
}

func NewHelm

func NewHelm(fs vfs.FS, valuesResolver helmValuesResolver, logger log.Logger, destinationDir string) *Helm

func (*Helm) Configure

func (h *Helm) Configure(conf *image.Configuration, rm *resolver.ResolvedManifest) ([]string, map[string][]byte, error)

type Manager

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

func NewManager

func NewManager(sys *sys.System, helm helmConfigurator, opts ...Opts) *Manager

func (*Manager) ConfigureComponents

func (m *Manager) ConfigureComponents(ctx context.Context, conf *image.Configuration, output Output) (rm *resolver.ResolvedManifest, err error)

ConfigureComponents configures the components defined in the provided configuration and returns the resolved release manifest from said configuration.

type Opts

type Opts func(m *Manager)

func WithDownloadFunc

func WithDownloadFunc(d downloadFunc) Opts

func WithLocal

func WithLocal(local bool) Opts

func WithManifestResolver

func WithManifestResolver(r releaseManifestResolver) Opts

func WithUnpackFunc

func WithUnpackFunc(u unpackFunc) Opts

type Output

type Output struct {
	RootPath string

	// ConfigPath is only populated if configuration (incl. network, catalyst and custom scripts)
	// is requested separately. Note that extensions are *always* part of the RootPath instead.
	ConfigPath string
}

func NewOutput

func NewOutput(fs vfs.FS, rootPath, configPath string) (Output, error)

func (Output) CatalystConfigDir

func (o Output) CatalystConfigDir() string

func (Output) Cleanup

func (o Output) Cleanup(fs vfs.FS) error

func (Output) ExtractedFilesStoreDir

func (o Output) ExtractedFilesStoreDir() string

func (Output) FirstbootConfigDir

func (o Output) FirstbootConfigDir() string

func (Output) ISOStoreDir

func (o Output) ISOStoreDir() string

func (Output) OverlaysDir

func (o Output) OverlaysDir() string

func (Output) ReleaseManifestsStoreDir

func (o Output) ReleaseManifestsStoreDir() string

type SchemaVersion

type SchemaVersion string
const SchemaV0 SchemaVersion = "v0"

func LoadSchemaVersion

func LoadSchemaVersion(f vfs.FS, configDir string) (SchemaVersion, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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