provider

package
v0.0.0-...-611ff29 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProviders

type DefaultProviders struct {
	// contains filtered or unexported fields
}

DefaultProviders - default providers container

func New

func New(providers []Provider, approvalsManager approvals.Manager) *DefaultProviders

New - new providers registry

func (*DefaultProviders) List

func (p *DefaultProviders) List() []string

List - list available providers

func (*DefaultProviders) Stop

func (p *DefaultProviders) Stop()

Stop - stop all providers

func (*DefaultProviders) Submit

func (p *DefaultProviders) Submit(event types.Event) error

Submit - submit event to all providers

func (*DefaultProviders) TrackedImages

func (p *DefaultProviders) TrackedImages() ([]*types.TrackedImage, error)

TrackedImages - get tracked images for provider

type Provider

type Provider interface {
	Submit(event types.Event) error
	TrackedImages() ([]*types.TrackedImage, error)
	GetName() string
	Stop()
}

Provider - generic provider interface

type Providers

type Providers interface {
	Submit(event types.Event) error
	TrackedImages() ([]*types.TrackedImage, error)
	List() []string // list all providers
	Stop()          // stop all providers
}

Providers - available providers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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