Documentation ¶
Index ¶
- type ServiceHandler
- func (h *ServiceHandler) CreateResourcePool(ctx context.Context, req *respool.CreateRequest) (*respool.CreateResponse, error)
- func (h *ServiceHandler) DeleteResourcePool(ctx context.Context, req *respool.DeleteRequest) (*respool.DeleteResponse, error)
- func (h *ServiceHandler) GetResourcePool(ctx context.Context, req *respool.GetRequest) (*respool.GetResponse, error)
- func (h *ServiceHandler) LookupResourcePoolID(ctx context.Context, req *respool.LookupRequest) (*respool.LookupResponse, error)
- func (h *ServiceHandler) Query(ctx context.Context, req *respool.QueryRequest) (*respool.QueryResponse, error)
- func (h *ServiceHandler) UpdateResourcePool(ctx context.Context, req *respool.UpdateRequest) (*respool.UpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceHandler ¶
ServiceHandler implements peloton.api.respool.ResourcePoolService
func InitServiceHandler ¶
func InitServiceHandler( d *yarpc.Dispatcher, parent tally.Scope, tree res.Tree, resPoolOps ormobjects.ResPoolOps, ) *ServiceHandler
InitServiceHandler returns a new handler for ResourcePoolService.
func (*ServiceHandler) CreateResourcePool ¶
func (h *ServiceHandler) CreateResourcePool( ctx context.Context, req *respool.CreateRequest) ( *respool.CreateResponse, error)
CreateResourcePool will create resource pool.
func (*ServiceHandler) DeleteResourcePool ¶
func (h *ServiceHandler) DeleteResourcePool( ctx context.Context, req *respool.DeleteRequest) ( *respool.DeleteResponse, error)
DeleteResourcePool will delete resource pool.
func (*ServiceHandler) GetResourcePool ¶
func (h *ServiceHandler) GetResourcePool( ctx context.Context, req *respool.GetRequest) (*respool.GetResponse, error)
GetResourcePool will get resource pool.
func (*ServiceHandler) LookupResourcePoolID ¶
func (h *ServiceHandler) LookupResourcePoolID(ctx context.Context, req *respool.LookupRequest) ( *respool.LookupResponse, error)
LookupResourcePoolID returns the resource pool ID for a given resource pool path.
func (*ServiceHandler) Query ¶
func (h *ServiceHandler) Query( ctx context.Context, req *respool.QueryRequest) ( *respool.QueryResponse, error)
Query returns the matching resource pools by default returns all.
func (*ServiceHandler) UpdateResourcePool ¶
func (h *ServiceHandler) UpdateResourcePool( ctx context.Context, req *respool.UpdateRequest) ( *respool.UpdateResponse, error)
UpdateResourcePool will update resource pool.
Click to show internal directories.
Click to hide internal directories.