event

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	EventBridge EventBridgeClient
	Lambda      LambdaClient
}

type JoinedRule

type JoinedRule struct {
	Bus    types.EventBus
	Rule   types.Rule
	Target types.Target
}

type LambdaClient

type LambdaClient interface {
	AddPermission(ctx context.Context, params *lambda.AddPermissionInput, optFns ...func(*lambda.Options)) (*lambda.AddPermissionOutput, error)
	RemovePermission(ctx context.Context, params *lambda.RemovePermissionInput, optFns ...func(*lambda.Options)) (*lambda.RemovePermissionOutput, error)
}

type Service

type Service struct {
	Client Client
}

func FromClients

func FromClients(eventBridge EventBridgeClient, lambdaClient LambdaClient) Service

func (Service) Delete

func (s Service) Delete(ctx context.Context, busName, ruleName, functionName, functionArn string) error

func (Service) Emit

func (s Service) Emit(ctx context.Context, accountId, busName, detailType string, detail any) error

func (Service) List

func (s Service) List(ctx context.Context) ([]JoinedRule, error)

func (Service) Put

func (s Service) Put(ctx context.Context, busName, ruleName, ruleContent, functionName, functionArn string) error

Jump to

Keyboard shortcuts

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