Documentation ¶
Index ¶
Constants ¶
View Source
const ( CustomActionType = "custom" HttpActionType = "http" )
Variables ¶
View Source
var UserAgentHeader string
Functions ¶
This section is empty.
Types ¶
type AssumeRole ¶
type AssumeRoleResult ¶
type AssumeRoleResult struct { Credentials Credentials `json:"credentials,omitempty"` AssumeRole AssumeRole `json:"assumeRole,omitempty"` }
type Configuration ¶
type Credentials ¶
type MessageHandler ¶
type MessageHandler interface {
Handle(message sqs.Message) (*runbook.ActionResultPayload, error)
}
func NewMessageHandler ¶
func NewMessageHandler(repositories git.Repositories, actionSpecs conf.ActionSpecifications, actionLoggers map[string]io.Writer) MessageHandler
type Poller ¶
type Poller interface { Processor RefreshClient(assumeRoleResult AssumeRoleResult) error QueueProvider() SQSProvider }
func NewPoller ¶
func NewPoller(workerPool worker_pool.WorkerPool, queueProvider SQSProvider, messageHandler MessageHandler, conf *conf.Configuration, ownerId string) Poller
type Processor ¶
func NewProcessor ¶
func NewProcessor(conf *conf.Configuration) Processor
type Properties ¶
type Properties struct { AssumeRoleResult AssumeRoleResult `json:"assumeRoleResult,omitempty"` Configuration Configuration `json:"queueConfiguration,omitempty"` }
func (Properties) ExpireTimeMillis ¶
func (p Properties) ExpireTimeMillis() int64
func (Properties) Region ¶
func (p Properties) Region() string
func (Properties) Url ¶
func (p Properties) Url() string
type SQSClient ¶
type SQSClient interface { ChangeMessageVisibility(input *sqs.ChangeMessageVisibilityInput) (*sqs.ChangeMessageVisibilityOutput, error) DeleteMessage(input *sqs.DeleteMessageInput) (*sqs.DeleteMessageOutput, error) ReceiveMessage(input *sqs.ReceiveMessageInput) (*sqs.ReceiveMessageOutput, error) }
type SQSProvider ¶
type SQSProvider interface { ChangeMessageVisibility(message *sqs.Message, visibilityTimeout int64) error DeleteMessage(message *sqs.Message) error ReceiveMessage(numOfMessage int64, visibilityTimeout int64) ([]*sqs.Message, error) RefreshClient(assumeRoleResult AssumeRoleResult) error Properties() Properties IsTokenExpired() bool }
func NewSqsProvider ¶
func NewSqsProvider(queueProperties Properties) (SQSProvider, error)
Click to show internal directories.
Click to hide internal directories.