修改配置编辑不了的问题
This commit is contained in:
1 parent
22b504e53e
commit
2a2f78c81e
42 files changed
+1082
-178
No files matched your search
@@ -34,6 +34,12 @@ type JobBuilder interface {
|
||||
Build(context.Context, JobBuildInput) (jobs.CreateCommand, error)
|
||||
}
|
||||
|
||||
// ProviderCommandBuilder is the shared seam used by creation, retry, and quote
|
||||
// paths. Implementations may resolve runtime provider settings per request.
|
||||
type ProviderCommandBuilder interface {
|
||||
Build(context.Context, string, string, string, string, map[string]any) (jobs.CreateCommand, error)
|
||||
}
|
||||
|
||||
type JobCreationCoordinator interface {
|
||||
CreatePlatform(context.Context, identity.Session, orchestration.CreationInput) (jobs.Job, bool, error)
|
||||
CreatePublic(context.Context, orchestration.CreationInput) (jobs.Job, bool, error)
|
||||
@@ -48,7 +54,7 @@ type JobTickLimiter interface {
|
||||
}
|
||||
|
||||
// ProviderBuilderAdapter exposes jobs.ProviderJobBuilder at the HTTP seam.
|
||||
type ProviderBuilderAdapter struct{ Builder jobs.ProviderJobBuilder }
|
||||
type ProviderBuilderAdapter struct{ Builder ProviderCommandBuilder }
|
||||
|
||||
func (a ProviderBuilderAdapter) Build(ctx context.Context, in JobBuildInput) (jobs.CreateCommand, error) {
|
||||
return a.Builder.Build(ctx, in.Scope.OwnerID, in.Scope.ExternalClientID, in.Capability, in.IdempotencyKey, in.Body)
|
||||
|
||||
Reference in new issue
Block a user