Documentation
¶
Index ¶
Constants ¶
View Source
const (
ModuleName = "runner_controller"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunnerControllerClient ¶
type RunnerControllerClient struct {
// contains filtered or unexported fields
}
func NewRunnerControllerClient ¶
func NewRunnerControllerClient(log *slog.Logger, agentConnPool func(agentKey api.AgentKey) grpc.ClientConnInterface) *RunnerControllerClient
func (*RunnerControllerClient) AdmitJob ¶ added in v18.7.0
func (c *RunnerControllerClient) AdmitJob(ctx context.Context, agentKey api.AgentKey, req *rpc.AdmitJobRequest) (*rpc.AdmitJobResponse, error)
AdmitJob sends an AdmitJob RPC request to a matching agent.
This method uses the simplified tunneling approach. A Runner Controller client for that agent key must have an open AdmitJob RPC call to any KAS. The req is routed through a gateway KAS (potentially itself) to that client. This method must send the RPC messages in reversed order - meaning that the actually defined RPC "resposne" becomes this Runner Controller clients request and the vice versa.
Click to show internal directories.
Click to hide internal directories.