build

package
v0.0.0-...-cfcd82a Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func NewBuilder

func NewBuilder(binaryPath string) *Builder

func (*Builder) Run

func (builder *Builder) Run(option BuilderOption) error

Run exec nydus-image CLI to build layer

type BuilderOption

type BuilderOption struct {
	ParentBootstrapPath string
	BootstrapPath       string
	RootfsPath          string
	BackendType         string
	BackendConfig       string
	PrefetchDir         string
	WhiteoutSpec        string
	OutputJSONPath      string
}

type Workflow

type Workflow struct {
	WorkflowOption
	// contains filtered or unexported fields
}

func NewWorkflow

func NewWorkflow(option WorkflowOption) (*Workflow, error)

NewWorkflow prepare bootstrap and blobs path for layered build workflow

func (*Workflow) Build

func (workflow *Workflow) Build(
	layerDir, parentBootstrapPath, bootstrapPath string,
) (string, error)

Build nydus bootstrap and blob, returned blobPath's basename is sha256 hex string

type WorkflowOption

type WorkflowOption struct {
	TargetDir      string
	NydusImagePath string
	PrefetchDir    string
	WhiteoutSpec   string
}

Jump to

Keyboard shortcuts

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