hostmgrsvc

package
v0.0.0-...-d2b1cdf Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceHandler

type ServiceHandler struct {
	// contains filtered or unexported fields
}

ServiceHandler implements private.hostmgr.v1alpha.svc.HostManagerService.

func NewServiceHandler

func NewServiceHandler(
	d *yarpc.Dispatcher,
	parent tally.Scope,
	plugin plugins.Plugin,
	hostCache hostcache.HostCache,
	pem podeventmanager.PodEventManager,
) *ServiceHandler

NewServiceHandler creates a new ServiceHandler.

func (*ServiceHandler) AcquireHosts

func (h *ServiceHandler) AcquireHosts(
	ctx context.Context,
	req *svc.AcquireHostsRequest,
) (resp *svc.AcquireHostsResponse, err error)

AcquireHosts implements HostManagerService.AcquireHosts.

func (*ServiceHandler) ClusterCapacity

func (h *ServiceHandler) ClusterCapacity(
	ctx context.Context,
	req *svc.ClusterCapacityRequest,
) (resp *svc.ClusterCapacityResponse, err error)

ClusterCapacity implements HostManagerService.ClusterCapacity.

func (*ServiceHandler) GetEvents

func (h *ServiceHandler) GetEvents(
	ctx context.Context,
	req *svc.GetEventsRequest,
) (resp *svc.GetEventsResponse, err error)

GetEvents returns all outstanding pod events in the event stream. It is for debug purpose only.

func (*ServiceHandler) GetHostCache

func (h *ServiceHandler) GetHostCache(
	ctx context.Context,
	req *svc.GetHostCacheRequest,
) (resp *svc.GetHostCacheResponse, err error)

GetHostCache returns a dump of the host cache.

func (*ServiceHandler) KillPods

func (h *ServiceHandler) KillPods(
	ctx context.Context,
	req *svc.KillPodsRequest,
) (resp *svc.KillPodsResponse, err error)

KillPods implements HostManagerService.KillPods.

func (*ServiceHandler) LaunchPods

func (h *ServiceHandler) LaunchPods(
	ctx context.Context,
	req *svc.LaunchPodsRequest,
) (resp *svc.LaunchPodsResponse, err error)

LaunchPods implements HostManagerService.LaunchPods.

func (*ServiceHandler) TerminateLeases

func (h *ServiceHandler) TerminateLeases(
	ctx context.Context,
	req *svc.TerminateLeasesRequest,
) (resp *svc.TerminateLeasesResponse, err error)

TerminateLeases implements HostManagerService.TerminateLeases.

Jump to

Keyboard shortcuts

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