Documentation
¶
Index ¶
- func CreateRun(ctx context.Context, req schema.CreateRunRequest, deps *CreateRunDeps) (*schema.Run, error)
- func RebuildPackage(ctx context.Context, req schema.RebuildPackageRequest, ...) (*schema.Verdict, error)
- func RebuildSmoketest(ctx context.Context, sreq schema.SmoketestRequest, deps *RebuildSmoketestDeps) (*schema.SmoketestResponse, error)
- func Version(ctx context.Context, req schema.VersionRequest, deps *VersionDeps) (*schema.VersionResponse, error)
- type CreateRunDeps
- type RebuildPackageDeps
- type RebuildSmoketestDeps
- type VersionDeps
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)
func RebuildPackage ¶
func RebuildPackage(ctx context.Context, req schema.RebuildPackageRequest, deps *RebuildPackageDeps) (*schema.Verdict, error)
func RebuildSmoketest ¶
func RebuildSmoketest(ctx context.Context, sreq schema.SmoketestRequest, deps *RebuildSmoketestDeps) (*schema.SmoketestResponse, error)
func Version ¶
func Version(ctx context.Context, req schema.VersionRequest, deps *VersionDeps) (*schema.VersionResponse, error)
Types ¶
type CreateRunDeps ¶
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] }
Click to show internal directories.
Click to hide internal directories.