filesystem

package
v0.0.0-...-5f03148 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSID

type FSID string

type Filesystem

type Filesystem struct {
	ID FSID `json:"id"`
}

func Diffed

func Diffed(ctx context.Context, lower, upper *Filesystem, platform specs.Platform) (*Filesystem, error)

func FromDefinition

func FromDefinition(def *llb.Definition) *Filesystem

func FromSource

func FromSource(source any) (*Filesystem, error)

func FromState

func FromState(ctx context.Context, st llb.State, platform specs.Platform) (*Filesystem, error)

func Merged

func Merged(ctx context.Context, filesystems []*Filesystem, platform specs.Platform) (*Filesystem, error)

func New

func New(id FSID) *Filesystem

func (*Filesystem) Evaluate

func (f *Filesystem) Evaluate(ctx context.Context, gw bkgw.Client) error

func (*Filesystem) ReadFile

func (f *Filesystem) ReadFile(ctx context.Context, gw bkgw.Client, path string) ([]byte, error)

func (*Filesystem) ToDefinition

func (f *Filesystem) ToDefinition() (*pb.Definition, error)

func (*Filesystem) ToState

func (f *Filesystem) ToState() (llb.State, error)

Jump to

Keyboard shortcuts

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