Documentation ¶
Index ¶
- Constants
- type API
- type AgentAPI
- func (ab *AgentAPI) AcceptJob(agentKey string, job *api.Job) (*api.Job, error)
- func (ab *AgentAPI) Beat(agentKey string) (*api.Heartbeat, error)
- func (ab *AgentAPI) Ping(agentKey string) (*api.Ping, error)
- func (ab *AgentAPI) Register(agentName string, agentKey string, tags []string) (*api.Agent, error)
- type WorkflowData
Constants ¶
View Source
const ( // DefaultAPIEndpoint default api endpoint DefaultAPIEndpoint = "https://agent.buildkite.com/v3" // Version the serverless agent version Version = "1.0.0" // BuildVersion the serverless agent version BuildVersion = "1.0.0" // MaxAgentConcurrentJobs jobs which can be run per agent instance MaxAgentConcurrentJobs = 1 // DefaultAgentNamePrefix serverless agent name prefix used when registering the agent DefaultAgentNamePrefix = "serverless-agent" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Register(string, string, []string) (*api.Agent, error) Beat(string) (*api.Heartbeat, error) Ping(string) (*api.Ping, error) AcceptJob(string, *api.Job) (*api.Job, error) }
API wrap up all the buildkite api operations
type AgentAPI ¶
type AgentAPI struct { }
AgentAPI wrapper around all the buildkite api operations
type WorkflowData ¶
type WorkflowData struct { Job *api.Job `json:"job,omitempty"` BuildID string `json:"build_id,omitempty"` BuildStatus string `json:"build_status,omitempty"` WaitTime int `json:"wait_time,omitempty"` NextToken string `json:"next_token,omitempty"` LogBytes int `json:"log_bytes,omitempty"` LogSequence int `json:"log_sequence,omitempty"` AgentName string `json:"agent_name,omitempty"` CodeBuildProjectName string `json:"code_build_project_name,omitempty"` }
WorkflowData this is information passed along in the step function workflow
Click to show internal directories.
Click to hide internal directories.