Documentation
¶
Overview ¶
Package installations contains logic relating to GitHub provider installations
Index ¶
Constants ¶
View Source
const ( // InstallationEventKey is the key for the event in the message metadata (e.g. removed) InstallationEventKey = "event" // ClassKey is the key for the provider class in the message metadata ClassKey = "class" )
View Source
const (
// ProviderInstallationTopic is the topic for when a provider installation is removed
ProviderInstallationTopic = "internal.provider.installation.removed.event"
)
Variables ¶
This section is empty.
Functions ¶
func ProviderInstanceRemovedMessage ¶
func ProviderInstanceRemovedMessage( msg *message.Message, providerClass db.ProviderClass, payload []byte, )
ProviderInstanceRemovedMessage returns the provider installation event from the message
Types ¶
type InstallationManager ¶
type InstallationManager struct {
// contains filtered or unexported fields
}
InstallationManager is a struct representing the installation manager
func NewInstallationManager ¶
func NewInstallationManager( svc service.GitHubProviderService, ) *InstallationManager
NewInstallationManager creates a new installation manager
func (*InstallationManager) Register ¶
func (im *InstallationManager) Register(reg events.Registrar)
Register implements the Consumer interface.
type ProviderInstallationEvent ¶
type ProviderInstallationEvent string
ProviderInstallationEvent is an event that occurs when a provider installation changes
const ( // ProviderInstanceRemovedEvent is an event that occurs when a provider instance is removed ProviderInstanceRemovedEvent ProviderInstallationEvent = "provider_instance_removed" )
Click to show internal directories.
Click to hide internal directories.