apiservice

package
v0.0.0-...-3dc2347 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRun

func CreateRun(ctx context.Context, req schema.CreateRunRequest, deps *CreateRunDeps) (*schema.Run, error)

Types

type CreateRunDeps

type CreateRunDeps struct {
	FirestoreClient *firestore.Client
}

type RebuildPackageDeps

type RebuildPackageDeps struct {
	HTTPClient                 httpx.BasicClient
	FirestoreClient            *firestore.Client
	Signer                     *dsse.EnvelopeSigner
	GCBClient                  gcb.Client
	BuildProject               string
	BuildServiceAccount        string
	UtilPrebuildBucket         string
	UtilPrebuildAuth           bool
	BuildLogsBucket            string
	ServiceRepo                rebuild.Location
	PrebuildRepo               rebuild.Location
	BuildDefRepo               rebuild.Location
	PublishForLocalServiceRepo bool
	AttestationStore           rebuild.AssetStore
	LocalMetadataStore         rebuild.AssetStore
	DebugStoreBuilder          func(ctx context.Context) (rebuild.AssetStore, error)
	RemoteMetadataStoreBuilder func(ctx context.Context, uuid string) (rebuild.LocatableAssetStore, error)
	OverwriteAttestations      bool
	InferStub                  api.StubT[schema.InferenceRequest, schema.StrategyOneOf]
}

TODO: LocalMetadataStore and DebugStoreBuilder can be combined into a layered AssetStore.

type RebuildSmoketestDeps

type RebuildSmoketestDeps struct {
	FirestoreClient *firestore.Client
	SmoketestStub   api.StubT[schema.SmoketestRequest, schema.SmoketestResponse]
	VersionStub     api.StubT[schema.VersionRequest, schema.VersionResponse]
}

type VersionDeps

type VersionDeps struct {
	FirestoreClient       *firestore.Client
	BuildLocalVersionStub api.StubT[schema.VersionRequest, schema.VersionResponse]
	InferenceVersionStub  api.StubT[schema.VersionRequest, schema.VersionResponse]
}

Jump to

Keyboard shortcuts

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