respoolsvc

package
v0.0.0-...-a69e935 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceHandler

type ServiceHandler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL