-
Notifications
You must be signed in to change notification settings - Fork 568
/
iface.go
29 lines (24 loc) · 1.56 KB
/
iface.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package pps
import (
"context"
"github.com/pachyderm/pachyderm/v2/src/internal/transactionenv/txncontext"
"github.com/pachyderm/pachyderm/v2/src/pps"
pps_client "github.com/pachyderm/pachyderm/v2/src/pps"
)
// APIServer is the internal interface for other services to call this one.
// This includes all the public RPC methods and additional internal-only methods for use within pachd.
// These methods *do not* check that a user is authorized unless otherwise noted.
type APIServer interface {
pps_client.APIServer
NewPropagater(*txncontext.TransactionContext) txncontext.PpsPropagater
NewJobStopper(*txncontext.TransactionContext) txncontext.PpsJobStopper
NewJobFinisher(*txncontext.TransactionContext) txncontext.PpsJobFinisher
StopJobInTransaction(context.Context, *txncontext.TransactionContext, *pps_client.StopJobRequest) error
UpdateJobStateInTransaction(context.Context, *txncontext.TransactionContext, *pps_client.UpdateJobStateRequest) error
CreatePipelineInTransaction(context.Context, *txncontext.TransactionContext, *pps_client.CreatePipelineTransaction) error
// InspectPipelineInTransaction returns the pipeline information for a
// pipeline. Note that the pipeline name may include ancestry syntax.
InspectPipelineInTransaction(context.Context, *txncontext.TransactionContext, *pps.Pipeline) (*pps_client.PipelineInfo, error)
ActivateAuthInTransaction(context.Context, *txncontext.TransactionContext, *pps_client.ActivateAuthRequest) (*pps_client.ActivateAuthResponse, error)
CreateDetPipelineSideEffects(context.Context, *pps.Pipeline, []string) error
}