bputils

package
v0.119.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildNewBlueprint

func BuildNewBlueprint(cache cache.Cache, fs vfs.FileSystem, path string) (*ocispecv1.Manifest, error)

BuildNewBlueprint creates a ocispec Manifest from a component definition.

func BuildNewBlueprintConfig

func BuildNewBlueprintConfig(cache cache.Cache, fs vfs.FileSystem, path string) (ocispecv1.Descriptor, error)

BuildNewBlueprintConfig creates a ocispec Manifest from a component definition.

func BuildNewContentBlob

func BuildNewContentBlob(cache cache.Cache, fs vfs.FileSystem, path string) (ocispecv1.Descriptor, error)

BuildNewContentBlob creates a ocispec Manifest from a component definition.

Types

type Builder

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

Builder describes a blueprint builder

func NewBuilder

func NewBuilder() *Builder

NewBuilder creates a new blueprint builder

func (*Builder) Blueprint

func (b *Builder) Blueprint(bp *lsv1alpha1.Blueprint) *Builder

Blueprint sets the blueprint that should be used for the builder.

func (*Builder) BuildBlueprint

func (b *Builder) BuildBlueprint(fs vfs.FileSystem) error

BuildBlueprint creates a new blueprint using the given filesystem.

func (*Builder) BuildResource

func (b *Builder) BuildResource(compress bool) (io.ReadCloser, *ctf.BlobInfo, error)

BuildResource uses the configured blueprint and builds a (optionally gzipped) tarred blueprint.

func (*Builder) BuildResourceToFs

func (b *Builder) BuildResourceToFs(fs vfs.FileSystem, path string, compress bool) error

BuildResourceToFs uses the configured blueprint and builds a (optionally gzipped) tarred blueprint. The resulting resource is written to the given filesystem and path.

func (*Builder) Fs

func (b *Builder) Fs(fs vfs.FileSystem) *Builder

Fs sets the filesystem that should be used for the builder.

Jump to

Keyboard shortcuts

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