MCPcopy Index your code
hub / github.com/coder/coder / WithAPIVersion

Function WithAPIVersion

coderd/agentapi/lifecycle.go:24–26  ·  view source on GitHub ↗
(ctx context.Context, version string)

Source from the content-addressed store, hash-verified

22type contextKeyAPIVersion struct{}
23
24func WithAPIVersion(ctx context.Context, version string) context.Context {
25 return context.WithValue(ctx, contextKeyAPIVersion{}, version)
26}
27
28type LifecycleAPI struct {
29 AgentFn func(context.Context) (database.WorkspaceAgent, error)

Callers 2

workspaceAgentRPCMethod · 0.92
TestUpdateStartupFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestUpdateStartupFunction · 0.74