invocation

package
v0.0.289 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeBinaryConfig added in v0.0.114

func MergeBinaryConfig(original, with *schema.BinaryConfig) (*schema.BinaryConfig, error)

func MergePreparedConfig added in v0.0.114

func MergePreparedConfig(prepared *binary.Prepared, with *schema.Invocation) (*schema.BinaryConfig, error)

func ValidateProviderReponse added in v0.0.111

func ValidateProviderReponse(response *protocol.ToolResponse) error

Types

type Invocation

type Invocation struct {
	Buildkit             buildkit.ClientFactory
	ImageName            string
	Image                compute.Computable[oci.ResolvableImage]
	SupportedToolVersion int
	Config               *schema.BinaryConfig
	Snapshots            []Snapshot
	NoCache              bool
	Inject               []*schema.Invocation_ValueInjection
	BinaryLabels         []*schema.Label
}

func BuildAndPrepare added in v0.0.112

func BuildAndPrepare(ctx context.Context, pl pkggraph.SealedPackageLoader, env cfg.Context, serverLocRef *pkggraph.Location, with *schema.Invocation) (*Invocation, error)

type Snapshot

type Snapshot struct {
	Name     string
	Contents fs.FS
}

Jump to

Keyboard shortcuts

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