github.com/pachyderm/pachyderm@v1.13.4/src/server/pfs/iface.go (about)

     1  package pfs
     2  
     3  import (
     4  	"context"
     5  
     6  	pfs_client "github.com/pachyderm/pachyderm/src/client/pfs"
     7  	col "github.com/pachyderm/pachyderm/src/server/pkg/collection"
     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 PFS server.
    13  type TransactionServer interface {
    14  	NewPropagater(col.STM) txncontext.PfsPropagater
    15  	NewPipelineFinisher(*txncontext.TransactionContext) txncontext.PipelineCommitFinisher
    16  
    17  	CreateRepoInTransaction(*txncontext.TransactionContext, *pfs_client.CreateRepoRequest) error
    18  	InspectRepoInTransaction(*txncontext.TransactionContext, *pfs_client.InspectRepoRequest) (*pfs_client.RepoInfo, error)
    19  	DeleteRepoInTransaction(*txncontext.TransactionContext, *pfs_client.DeleteRepoRequest) error
    20  
    21  	StartCommitInTransaction(*txncontext.TransactionContext, *pfs_client.StartCommitRequest, *pfs_client.Commit) (*pfs_client.Commit, error)
    22  	FinishCommitInTransaction(*txncontext.TransactionContext, *pfs_client.FinishCommitRequest) error
    23  	DeleteCommitInTransaction(*txncontext.TransactionContext, *pfs_client.DeleteCommitRequest) error
    24  
    25  	CreateBranchInTransaction(*txncontext.TransactionContext, *pfs_client.CreateBranchRequest) error
    26  	InspectBranchInTransaction(*txncontext.TransactionContext, *pfs_client.InspectBranchRequest) (*pfs_client.BranchInfo, error)
    27  	DeleteBranchInTransaction(*txncontext.TransactionContext, *pfs_client.DeleteBranchRequest) error
    28  }
    29  
    30  // APIServer is the combination of the public RPC interface, the internal transaction interface and
    31  // other internal methods exposed by the PFS service
    32  type APIServer interface {
    33  	pfs_client.APIServer
    34  	TransactionServer
    35  
    36  	ListRepoNoAuth(context.Context, *pfs_client.ListRepoRequest) (*pfs_client.ListRepoResponse, error)
    37  }