Documentation ¶
Overview ¶
Package agent provides the agent that will claim and run the jobs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent will claim the next available job and dispatch it using the configured job dispatcher
type ClaimJobInput ¶
type ClaimJobInput struct {
AgentID string
}
ClaimJobInput is the input for claiming the next available job
type ClaimJobResponse ¶
ClaimJobResponse is the response when claiming a job
type Client ¶
type Client interface { CreateSession(ctx context.Context, agentID string) (string, error) SendHeartbeat(ctx context.Context, sessionID string) error ClaimJob(ctx context.Context, input *ClaimJobInput) (*ClaimJobResponse, error) SendError(ctx context.Context, sessionID string, err error) error }
Client interface for claiming a job
type JobDispatcherSettings ¶
JobDispatcherSettings defines the job dispatcher that'll be used for this agent
Directories ¶
Path | Synopsis |
---|---|
Package jobdispatcher package
|
Package jobdispatcher package |
docker
Package docker package
|
Package docker package |
ecs
Package ecs package
|
Package ecs package |
kubernetes
Package kubernetes package
|
Package kubernetes package |
kubernetes/configurer
Package configurer package
|
Package configurer package |
kubernetes/configurer/eks
Package eks package
|
Package eks package |
local
Package local package
|
Package local package |
Click to show internal directories.
Click to hide internal directories.