hostmgrsvc

package
v0.0.0-...-c0686e8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 17 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 NewTestServiceHandler

func NewTestServiceHandler() *ServiceHandler

NewTestServiceHandler returns an empty new ServiceHandler ptr for testing.

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) KillAndHoldPods

func (h *ServiceHandler) KillAndHoldPods(
	ctx context.Context,
	req *svc.KillAndHoldPodsRequest,
) (resp *svc.KillAndHoldPodsResponse, err error)

KillAndHoldPods implements HostManagerService.KillAndHoldPods.

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