Documentation ¶
Index ¶
- func BuildNewBlueprint(cache cache.Cache, fs vfs.FileSystem, path string) (*ocispecv1.Manifest, error)
- func BuildNewBlueprintConfig(cache cache.Cache, fs vfs.FileSystem, path string) (ocispecv1.Descriptor, error)
- func BuildNewContentBlob(cache cache.Cache, fs vfs.FileSystem, path string) (ocispecv1.Descriptor, error)
- type Builder
- func (b *Builder) Blueprint(bp *lsv1alpha1.Blueprint) *Builder
- func (b *Builder) BuildBlueprint(fs vfs.FileSystem) error
- func (b *Builder) BuildResource(compress bool) (io.ReadCloser, *ctf.BlobInfo, error)
- func (b *Builder) BuildResourceToFs(fs vfs.FileSystem, path string, compress bool) error
- func (b *Builder) Fs(fs vfs.FileSystem) *Builder
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 (*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 ¶
BuildResource uses the configured blueprint and builds a (optionally gzipped) tarred blueprint.
func (*Builder) BuildResourceToFs ¶
BuildResourceToFs uses the configured blueprint and builds a (optionally gzipped) tarred blueprint. The resulting resource is written to the given filesystem and path.