Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server *server.Server Project string Subscription string RequiredChecks []string DryRun bool Timeout int }
Config stores the necessary details for a Subscriber
func (*Config) TimeoutDuration ¶
TimeoutDuration returns the configured timeout for this Server.
type Payload ¶
type Payload struct { Action string `json:"action"` Digest string `json:"digest"` Tag string `json:"tag,omitempty"` }
Payload contains the information from the pub/sub message
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
Subscriber contains the information required to pull messages from a pub/sub topic.
func NewSubscriber ¶
func NewSubscriber(config *Config, secrets *config.Secrets, metrics metrics.Client, log *logrus.Logger) *Subscriber
NewSubscriber creates a new subscription topic puller for a subscription.
Click to show internal directories.
Click to hide internal directories.