github.com/pachyderm/pachyderm@v1.13.4/src/server/pps/iface.go (about) 1 package pps 2 3 import ( 4 "context" 5 6 pfs_client "github.com/pachyderm/pachyderm/src/client/pfs" 7 pps_client "github.com/pachyderm/pachyderm/src/client/pps" 8 "github.com/pachyderm/pachyderm/src/server/pkg/transactionenv/txncontext" 9 ) 10 11 // TransactionServer is an interface for the transactionally-supported 12 // methods that can be called through the PPS server. 13 type TransactionServer interface { 14 UpdateJobStateInTransaction(*txncontext.TransactionContext, *pps_client.UpdateJobStateRequest) error 15 CreatePipelineInTransaction(*txncontext.TransactionContext, *pps_client.CreatePipelineRequest, **pfs_client.Commit) error 16 } 17 18 // InternalAPI is the set of non-RPC methods that are used internally within pachd 19 type InternalAPI interface { 20 TransactionServer 21 22 ListPipelineNoAuth(context.Context, *pps_client.ListPipelineRequest) (*pps_client.PipelineInfos, error) 23 } 24 25 // APIServer is the set of all methods exposed by PPS 26 type APIServer interface { 27 pps_client.APIServer 28 InternalAPI 29 }