seeds

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package seeds downloads and caches published Podplane seed files.

Index

Constants

View Source
const (
	Recommended = "recommended"
	Minimal     = "minimal"
	None        = "none"
)

Variables

This section is empty.

Functions

func ParseName

func ParseName(value string) (string, error)

ParseName returns a validated seed name, applying the default when value is empty.

func ResolveClusterSeedPath

func ResolveClusterSeedPath(opts ResolveClusterOptions) (string, error)

ResolveClusterSeedPath resolves the seed configured in a cluster config to a local seed file path.

func ResolveSeedPath

func ResolveSeedPath(opts ResolveOptions) (string, error)

ResolveSeedPath resolves a published seed name and version to a local seed file path.

Types

type ResolveClusterOptions

type ResolveClusterOptions struct {
	Context           context.Context
	ClusterConfigPath string
	BaseURL           string
	CacheDir          string
}

type ResolveOptions

type ResolveOptions struct {
	Context  context.Context
	Name     string
	Version  string
	BaseURL  string
	CacheDir string
}

type Seed

type Seed struct {
	Name    string
	Version string
}

func ReadClusterSeed

func ReadClusterSeed(clusterConfigPath string) (Seed, error)

ReadClusterSeed returns the seed name and version configured in a cluster config.

Jump to

Keyboard shortcuts

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