Documentation ¶
Index ¶
- type ServiceHandler
- func (h *ServiceHandler) AcquireHosts(ctx context.Context, req *svc.AcquireHostsRequest) (resp *svc.AcquireHostsResponse, err error)
- func (h *ServiceHandler) ClusterCapacity(ctx context.Context, req *svc.ClusterCapacityRequest) (resp *svc.ClusterCapacityResponse, err error)
- func (h *ServiceHandler) GetEvents(ctx context.Context, req *svc.GetEventsRequest) (resp *svc.GetEventsResponse, err error)
- func (h *ServiceHandler) GetHostCache(ctx context.Context, req *svc.GetHostCacheRequest) (resp *svc.GetHostCacheResponse, err error)
- func (h *ServiceHandler) KillPods(ctx context.Context, req *svc.KillPodsRequest) (resp *svc.KillPodsResponse, err error)
- func (h *ServiceHandler) LaunchPods(ctx context.Context, req *svc.LaunchPodsRequest) (resp *svc.LaunchPodsResponse, err error)
- func (h *ServiceHandler) TerminateLeases(ctx context.Context, req *svc.TerminateLeasesRequest) (resp *svc.TerminateLeasesResponse, err error)
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.
Click to show internal directories.
Click to hide internal directories.