installations

package
v0.0.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL