Versions in this module Expand all Collapse all v1 v1.0.0 Jul 5, 2023 Changes in this version + var ErrInvalidSignature = errors.New("invalid Encore-Signature header") + var ErrNoSignature = errors.New("missing Encore-Signature header") + var ErrNoValidSignature = errors.New("no valid Encore-Signature signatures") + var ErrTooOld = errors.New("webhook event is too old") + func ComputeSignature(t time.Time, payload []byte, secret string) []byte + type Application struct + CreatedAt time.Time + ID string + Slug string + type Build struct + CommitHash string + CompletedAt *time.Time + Conclusion BuildConclusion + ID string + QueuedAt time.Time + StartedAt *time.Time + Status BuildStatus + type BuildConclusion string + const BuildCanceled + const BuildFailure + const BuildSuccess + type BuildStatus string + const BuildCompleted + const BuildQueued + const BuildRunning + type Deploy struct + CompletedAt *time.Time + Conclusion DeployConclusion + ID string + QueuedAt *time.Time + StartedAt *time.Time + Status DeployStatus + type DeployConclusion string + const DeployCanceled + const DeployFailure + const DeploySuccess + type DeployStatus string + const DeployCompleted + const DeployPending + const DeployQueued + const DeployRunning + type Environment struct + APIBaseURL string + CreatedAt time.Time + ID string + Name string + Type EnvironmentType + type EnvironmentType string + const EnvironmentTypeDevelopment + const EnvironmentTypePreview + const EnvironmentTypeProduction + type Event struct + Data any + ID string + SequenceID int64 + Type string + WebhookID string + func ParseEvent(payload []byte, header, secret string) (*Event, error) + type InfraChange struct + CompletedAt *time.Time + Conclusion InfraChangeConclusion + ID string + QueuedAt *time.Time + StartedAt *time.Time + Status InfraChangeStatus + type InfraChangeConclusion string + const InfraChangeCanceled + const InfraChangeFailure + const InfraChangeRejected + const InfraChangeSuccess + type InfraChangeStatus string + const InfraChangeAwaitingApproval + const InfraChangeCompleted + const InfraChangePending + const InfraChangeQueued + const InfraChangeRunning + type Rollout struct + Build *Build + CompletedAt *time.Time + Conclusion RolloutConclusion + Deploy *Deploy + ID string + InfraProvision *InfraChange + QueuedAt *time.Time + StartedAt *time.Time + Status RolloutStatus + type RolloutAwaitingInfraApprovalEvent struct + App *Application + Env *Environment + Rollout *Rollout + func (e *RolloutAwaitingInfraApprovalEvent) GetApp() *Application + func (e *RolloutAwaitingInfraApprovalEvent) GetEnv() *Environment + func (e *RolloutAwaitingInfraApprovalEvent) GetRollout() *Rollout + type RolloutCompletedEvent struct + App *Application + Env *Environment + Rollout *Rollout + func (e *RolloutCompletedEvent) GetApp() *Application + func (e *RolloutCompletedEvent) GetEnv() *Environment + func (e *RolloutCompletedEvent) GetRollout() *Rollout + type RolloutConclusion string + const RolloutCanceled + const RolloutFailure + const RolloutSuccess + type RolloutCreatedEvent struct + App *Application + Env *Environment + Rollout *Rollout + func (e *RolloutCreatedEvent) GetApp() *Application + func (e *RolloutCreatedEvent) GetEnv() *Environment + func (e *RolloutCreatedEvent) GetRollout() *Rollout + type RolloutEvent interface + GetApp func() *Application + GetEnv func() *Environment + GetRollout func() *Rollout + type RolloutStatus string + const RolloutCompleted + const RolloutPending + const RolloutQueued + const RolloutRunning