Documentation
¶
Index ¶
- Constants
- Variables
- type Service
- func (s Service) CreateWorkerLed(ctx context.Context, req *pbs.CreateWorkerLedRequest) (*pbs.CreateWorkerLedResponse, error)
- func (s Service) DeleteWorker(ctx context.Context, req *pbs.DeleteWorkerRequest) (*pbs.DeleteWorkerResponse, error)
- func (s Service) GetWorker(ctx context.Context, req *pbs.GetWorkerRequest) (*pbs.GetWorkerResponse, error)
- func (s Service) ListWorkers(ctx context.Context, req *pbs.ListWorkersRequest) (*pbs.ListWorkersResponse, error)
- func (s Service) UpdateWorker(ctx context.Context, req *pbs.UpdateWorkerRequest) (*pbs.UpdateWorkerResponse, error)
Constants ¶
View Source
const ( PkiWorkerType = "pki" KmsWorkerType = "kms" )
Variables ¶
View Source
var ( // IdActions contains the set of actions that can be performed on // individual resources IdActions = action.ActionSet{ action.NoOp, action.Read, action.Update, action.Delete, } // CollectionActions contains the set of actions that can be performed on // this collection CollectionActions = action.ActionSet{ action.CreateWorkerLed, action.List, } )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { pbs.UnimplementedWorkerServiceServer // contains filtered or unexported fields }
Service handles request as described by the pbs.WorkerServiceServer interface.
func NewService ¶
func NewService(ctx context.Context, repo common.ServersRepoFactory, iamRepoFn common.IamRepoFactory) (Service, error)
NewService returns a worker service which handles worker related requests to boundary.
func (Service) CreateWorkerLed ¶
func (s Service) CreateWorkerLed(ctx context.Context, req *pbs.CreateWorkerLedRequest) (*pbs.CreateWorkerLedResponse, error)
CreateWorker implements the interface pbs.WorkerServiceServer.
func (Service) DeleteWorker ¶
func (s Service) DeleteWorker(ctx context.Context, req *pbs.DeleteWorkerRequest) (*pbs.DeleteWorkerResponse, error)
DeleteWorker implements the interface pbs.WorkerServiceServer.
func (Service) GetWorker ¶
func (s Service) GetWorker(ctx context.Context, req *pbs.GetWorkerRequest) (*pbs.GetWorkerResponse, error)
GetWorker implements the interface pbs.WorkerServiceServer.
func (Service) ListWorkers ¶
func (s Service) ListWorkers(ctx context.Context, req *pbs.ListWorkersRequest) (*pbs.ListWorkersResponse, error)
ListWorkers implements the interface pbs.WorkerServiceServer.
func (Service) UpdateWorker ¶
func (s Service) UpdateWorker(ctx context.Context, req *pbs.UpdateWorkerRequest) (*pbs.UpdateWorkerResponse, error)
UpdateWorker implements the interface pbs.WorkerServiceServer.
Click to show internal directories.
Click to hide internal directories.