-
Notifications
You must be signed in to change notification settings - Fork 568
/
iface.go
26 lines (22 loc) · 1.38 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
package pps
import (
"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(*txncontext.TransactionContext, *pps_client.StopJobRequest) error
UpdateJobStateInTransaction(*txncontext.TransactionContext, *pps_client.UpdateJobStateRequest) error
CreatePipelineInTransaction(*txncontext.TransactionContext, *pps_client.CreatePipelineRequest) error
// InspectPipelineInTransaction returns the pipeline information for a
// pipeline. Note that the pipeline name may include ancestry syntax.
InspectPipelineInTransaction(*txncontext.TransactionContext, *pps.Pipeline) (*pps_client.PipelineInfo, error)
ActivateAuthInTransaction(*txncontext.TransactionContext, *pps_client.ActivateAuthRequest) (*pps_client.ActivateAuthResponse, error)
}