Documentation ¶
Index ¶
- Constants
- Variables
- func CanConsumePublicImages(conf cfg.Configuration) bool
- func HostPlatform(ctx context.Context, conf cfg.Configuration) (specs.Platform, error)
- func InvokeFunction(ctx context.Context, loc pkggraph.Location, rootDir string, ...) (compute.Computable[*protocol.InvokeResponse], error)
- func InvokeWithBinary(ctx context.Context, env pkggraph.SealedContext, inv *types.DeferredInvocation, ...) (compute.Computable[*protocol.InvokeResponse], error)
- func Run(ctx context.Context, conf cfg.Configuration, opts rtypes.RunToolOpts) error
- func RunWithOpts(ctx context.Context, conf cfg.Configuration, opts rtypes.RunToolOpts, ...) error
- type LowLevelInvokeOptions
- type ResolveMethodFunc
- type Runtime
Constants ¶
View Source
const (
MaxInvocationDuration = 1 * time.Minute
)
Variables ¶
View Source
var InvocationCanUseBuildkit = false
View Source
var LowLevelToolsProtocolVersion = 2
View Source
var MakeAlternativeRuntime func(cfg.Configuration) Runtime
Functions ¶
func CanConsumePublicImages ¶
func CanConsumePublicImages(conf cfg.Configuration) bool
func HostPlatform ¶
func InvokeFunction ¶
func InvokeFunction(ctx context.Context, loc pkggraph.Location, rootDir string, inv *types.DeferredInvocation) (compute.Computable[*protocol.InvokeResponse], error)
func InvokeWithBinary ¶
func InvokeWithBinary(ctx context.Context, env pkggraph.SealedContext, inv *types.DeferredInvocation, prepared *binary.Prepared) (compute.Computable[*protocol.InvokeResponse], error)
func Run ¶
func Run(ctx context.Context, conf cfg.Configuration, opts rtypes.RunToolOpts) error
func RunWithOpts ¶
func RunWithOpts(ctx context.Context, conf cfg.Configuration, opts rtypes.RunToolOpts, onStart func()) error
Types ¶
type LowLevelInvokeOptions ¶
type LowLevelInvokeOptions[Req, Resp proto.Message] struct { RedactRequest func(proto.Message) proto.Message RedactResponse func(proto.Message) proto.Message }
func (LowLevelInvokeOptions[Req, Resp]) Invoke ¶
func (oo LowLevelInvokeOptions[Req, Resp]) Invoke(ctx context.Context, conf cfg.Configuration, pkg schema.PackageName, opts rtypes.RunToolOpts, req Req, resolve ResolveMethodFunc[Req, Resp]) (Resp, error)
func (LowLevelInvokeOptions[Req, Resp]) InvokeOnBuildkit ¶
func (oo LowLevelInvokeOptions[Req, Resp]) InvokeOnBuildkit(ctx context.Context, conf cfg.Configuration, method string, pkg schema.PackageName, imageID oci.ImageID, opts rtypes.RunToolOpts, req Req) (Resp, error)
type ResolveMethodFunc ¶
type ResolveMethodFunc[Req, Resp proto.Message] func(*grpc.ClientConn) func(context.Context, Req, ...grpc.CallOption) (Resp, error)
Click to show internal directories.
Click to hide internal directories.