ops

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 46 Imported by: 127

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiffOp added in v0.10.0

func NewDiffOp(v solver.Vertex, op *pb.Op_Diff, w worker.Worker) (solver.Op, error)

func NewFileOp added in v0.5.0

func NewFileOp(v solver.Vertex, op *pb.Op_File, cm cache.Manager, parallelism *semaphore.Weighted, w worker.Worker) (solver.Op, error)

func NewMergeOp added in v0.10.0

func NewMergeOp(v solver.Vertex, op *pb.Op_Merge, w worker.Worker) (solver.Op, error)

Types

type BuildOp added in v0.11.0

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

func (*BuildOp) Acquire added in v0.11.0

func (b *BuildOp) Acquire(ctx context.Context) (solver.ReleaseFunc, error)

func (*BuildOp) CacheMap added in v0.11.0

func (b *BuildOp) CacheMap(ctx context.Context, g session.Group, index int) (*solver.CacheMap, bool, error)

func (*BuildOp) Exec added in v0.11.0

func (b *BuildOp) Exec(ctx context.Context, g session.Group, inputs []solver.Result) (outputs []solver.Result, retErr error)

func (*BuildOp) IsProvenanceProvider added in v0.11.0

func (b *BuildOp) IsProvenanceProvider()

type ExecOp added in v0.11.0

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

func NewExecOp

func NewExecOp(v solver.Vertex, op *pb.Op_Exec, platform *pb.Platform, cm cache.Manager, parallelism *semaphore.Weighted, sm *session.Manager, exec executor.Executor, w worker.Worker) (*ExecOp, error)

func (*ExecOp) Acquire added in v0.11.0

func (e *ExecOp) Acquire(ctx context.Context) (solver.ReleaseFunc, error)

func (*ExecOp) CacheMap added in v0.11.0

func (e *ExecOp) CacheMap(ctx context.Context, g session.Group, index int) (*solver.CacheMap, bool, error)

func (*ExecOp) Digest added in v0.12.0

func (e *ExecOp) Digest() digest.Digest

func (*ExecOp) Exec added in v0.11.0

func (e *ExecOp) Exec(ctx context.Context, g session.Group, inputs []solver.Result) (results []solver.Result, err error)

func (*ExecOp) IsProvenanceProvider added in v0.11.0

func (e *ExecOp) IsProvenanceProvider()

func (*ExecOp) Proto added in v0.11.0

func (e *ExecOp) Proto() *pb.ExecOp

func (*ExecOp) Samples added in v0.12.0

func (e *ExecOp) Samples() (*resourcestypes.Samples, error)

type FileOpSolver added in v0.5.0

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

func NewFileOpSolver added in v0.5.0

func (*FileOpSolver) Solve added in v0.5.0

func (s *FileOpSolver) Solve(ctx context.Context, inputs []fileoptypes.Ref, actions []*pb.FileAction, g session.Group) ([]fileoptypes.Ref, error)

type SourceOp added in v0.11.0

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

func NewSourceOp

func NewSourceOp(vtx solver.Vertex, op *pb.Op_Source, platform *pb.Platform, sm *source.Manager, parallelism *semaphore.Weighted, sessM *session.Manager, w worker.Worker) (*SourceOp, error)

func (*SourceOp) Acquire added in v0.11.0

func (s *SourceOp) Acquire(ctx context.Context) (solver.ReleaseFunc, error)

func (*SourceOp) CacheMap added in v0.11.0

func (s *SourceOp) CacheMap(ctx context.Context, g session.Group, index int) (*solver.CacheMap, bool, error)

func (*SourceOp) Exec added in v0.11.0

func (s *SourceOp) Exec(ctx context.Context, g session.Group, _ []solver.Result) (outputs []solver.Result, err error)

func (*SourceOp) IsProvenanceProvider added in v0.11.0

func (s *SourceOp) IsProvenanceProvider()

func (*SourceOp) Pin added in v0.11.0

func (s *SourceOp) Pin() (source.Identifier, string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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