Documentation
¶
Index ¶
Constants ¶
View Source
const ( CommandCompletedType = "command-completed" CommandRunningType = "command-running" CommandErroredType = "command-errored" CommandCanceledType = "command-canceled" CommandHeartbeatType = "command-heartbeat" )
Variables ¶
This section is empty.
Functions ¶
func ListenForConnections ¶
func ListenForConnections()
ListenForConnections is the entrypoint. Listens for, and processes, the remote requests.
Types ¶
type CommandCompleted ¶
type CommandCompleted struct {
GUID string `json:"guid"`
EventType string `json:"event"`
Timestamp int64 `json:"timestamp"`
ExitCode int `json:"exit_code"`
Success bool `json:"success"`
}
func (CommandCompleted) EventTypeValue ¶
func (c CommandCompleted) EventTypeValue() string
func (CommandCompleted) GUIDValue ¶
func (c CommandCompleted) GUIDValue() string
type WebhookSender ¶
type WebhookSender struct {
// contains filtered or unexported fields
}
func NewWebhookSender ¶
func NewWebhookSender(client *http.Client, endpoint string, token string) *WebhookSender
Click to show internal directories.
Click to hide internal directories.