bus

package
v0.0.0-...-0fd85f3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Convention

type Convention struct {
	Config  config.Config
	Service Services
}

func (Convention) Converge

func (c Convention) Converge(ctx context.Context, d deployment.Deployment) error

func (Convention) Disable

func (Convention) DisableAll

func (c Convention) DisableAll(ctx context.Context, d deployment.Deployment) error

func (Convention) Emit

func (c Convention) Emit(ctx context.Context, detail config.EventDetail) error

func (Convention) Enable

func (Convention) EnableAll

func (c Convention) EnableAll(ctx context.Context, d deployment.Deployment) error

func (Convention) Find

func (c Convention) Find(ctx context.Context, d deployment.Deployment, bus, rule string) (Subscription, error)

func (Convention) List

type EventService

type EventService interface {
	List(ctx context.Context) ([]event.JoinedRule, error)
	Put(ctx context.Context, bus, rule, expression, function, arn string) error
	Delete(ctx context.Context, bus, rule, function, arn string) error
	Emit(ctx context.Context, accountId, busName, detailType string, detail any) error
}

type Meta

type Meta struct {
	Bus         string
	Rule        string
	Destroy     bool
	Update      bool
	Reason      string
	Convergence string
	Expression  string
}

type RegistryService

type RegistryService interface {
	InspectByDigest(ctx context.Context, registryId, repository, digest string) (dockerTypes.ImageInspect, error)
}

type Services

type Services struct {
	Registry RegistryService
	Event    EventService
}

type Subscription

type Subscription struct {
	event.JoinedRule
	Meta Meta
}

Jump to

Keyboard shortcuts

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