invocation

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Overview

Package invocation carries the identity of the step currently being dispatched through context.Context, so that Layer 1 providers (which only ever see ctx and Values — never manifest.Step) can differentiate per-invocation resources, such as Dagger service graphs that would otherwise be content-addressed to the same node when two steps build an identical container definition concurrently (see providers/rust/dockerdaemon.go).

This lives under pkg/shipwright (the public capability contract module boundary), not internal/: providers/rust and providers/go are separately versioned Go modules that only ever depend on shipwright's public API — they cannot import internal/... packages of the root module — so any type shared between the engine and a provider must live here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StepID

func StepID(ctx context.Context) (string, bool)

StepID returns the step identity carried by ctx, if any.

func WithStepID

func WithStepID(ctx context.Context, id string) context.Context

WithStepID returns a context carrying id as the current step's identity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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