Documentation
¶
Index ¶
- func DefaultCommitResolver(commitSources map[string][]ostree.SourceSpec) (map[string][]ostree.CommitSpec, error)
- func DefaultContainerResolver(containerSources map[string][]container.SourceSpec, archName string) (map[string][]container.Spec, error)
- func DefaultDepsolver(cacheDir string, packageSets map[string][]rpmmd.PackageSet, d distro.Distro, ...) (map[string]dnfjson.DepsolveResult, error)
- type CommitResolverFunc
- type ContainerResolverFunc
- type DepsolveFunc
- type Generator
- type Options
- type SBOMWriterFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCommitResolver ¶
func DefaultCommitResolver(commitSources map[string][]ostree.SourceSpec) (map[string][]ostree.CommitSpec, error)
DefaultCommitResolver provides a default implementation for ostree commit resolving. It should rarely be necessary to use it directly and will be used by default by manifestgen (unless overriden)
func DefaultContainerResolver ¶
func DefaultContainerResolver(containerSources map[string][]container.SourceSpec, archName string) (map[string][]container.Spec, error)
DefaultContainersResolve provides a default implementation for container resolving. It should rarely be necessary to use it directly and will be used by default by manifestgen (unless overriden)
func DefaultDepsolver ¶
func DefaultDepsolver(cacheDir string, packageSets map[string][]rpmmd.PackageSet, d distro.Distro, arch string) (map[string]dnfjson.DepsolveResult, error)
DefaultDepsolver provides a default implementation for depsolving. It should rarely be necessary to use it directly and will be used by default by manifestgen (unless overriden)
Types ¶
type CommitResolverFunc ¶
type CommitResolverFunc func(commitSources map[string][]ostree.SourceSpec) (map[string][]ostree.CommitSpec, error)
type ContainerResolverFunc ¶
type DepsolveFunc ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator can generate an osbuild manifest from a given repository and options.
func New ¶
func New(reporegistry *reporegistry.RepoRegistry, opts *Options) (*Generator, error)
New will create a new manifest generator
type Options ¶
type Options struct { Cachedir string // Output is the writer that the generated osbuild manifest will // written to. Output io.Writer RpmDownloader osbuild.RpmDownloader // SBOMWriter will be called for each generated SBOM the // filename contains the suggest filename string and the // content can be read SBOMWriter SBOMWriterFunc // CustomSeed overrides the default rng seed, this is mostly // useful for testing CustomSeed *int64 // Custom "solver" functions, if unset the defaults will be // used. Only needed for specialized use-cases. Depsolver DepsolveFunc ContainerResolver ContainerResolverFunc CommitResolver CommitResolverFunc }
Options contains the optional settings for the manifest generation. For unset values defaults will be used.