Help us shape the future of Go! Take the 2026 Go Developer Survey

jobref

package
v0.0.97 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package jobref carries the identities returned by a job submission together.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithScope

func WithScope(ctx context.Context, s Scope) context.Context

Types

type Ref

type Ref struct {
	TenantID string `json:"tenant_id"`
	GoalID   string `json:"goal_id"`
	JobID    string `json:"job_id"`
}

func FromHandle

func FromHandle(h jobdb.JobHandle) (Ref, error)

func (Ref) Key

func (r Ref) Key() jobdb.JobKey

func (Ref) Validate

func (r Ref) Validate() error

type RestartSubmitter

type RestartSubmitter interface {
	SubmitRestartJobRef(context.Context, jobdb.SubmitRestartJobRequest) (Ref, error)
}

type Scope

type Scope struct {
	Submit func(context.Context, jobdb.SubmitJob) (Ref, error)
}

Scope is supplied by the trusted execution runtime, preserving the current lease-bound submission authority. Identity comes from the native SDK context.

func FromContext

func FromContext(ctx context.Context) (Scope, bool)

type Submitter

type Submitter interface {
	SubmitJobRef(context.Context, jobdb.SubmitJob) (Ref, error)
}

Jump to

Keyboard shortcuts

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