handler

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LocalDeploymentMap map[string]string

make of deploymentID to relative path example: ../../testvault-provider/provider

Functions

func GetRuntime

func GetRuntime(ctx context.Context, handler Handler) (*handlerclient.Client, error)

Types

type Diagnostic

type Diagnostic struct {
	Level   types.LogLevel `json:"level" dynamodbav:"level"`
	Code    string         `json:"code" dynamodbav:"code"`
	Message string         `json:"message" dynamodbav:"message"`
}

type Handler

type Handler struct {
	ID          string       `json:"id" dynamodbav:"id"`
	Runtime     string       `json:"runtime" dynamodbav:"runtime"`
	AWSAccount  string       `json:"awsAccount" dynamodbav:"awsAccount"`
	AWSRegion   string       `json:"awsRegion" dynamodbav:"awsRegion"`
	Healthy     bool         `json:"healthy" dynamodbav:"healthy"`
	Diagnostics []Diagnostic `json:"diagnostics" dynamodbav:"diagnostics"`
	// Provider description comes from polling the provider via a healthcheck
	ProviderDescription *providerregistrysdk.DescribeResponse `json:"providerDescription" dynamodbav:"providerDescription"`
}

represents a lambda TargetGroupDeployment

func TestHandler

func TestHandler(id string, opt ...func(*Handler)) Handler

func (Handler) AddDiagnostic

func (ha Handler) AddDiagnostic(d Diagnostic) Handler

func (*Handler) DDBKeys

func (h *Handler) DDBKeys() (ddb.Keys, error)

func (*Handler) FunctionARN

func (h *Handler) FunctionARN() string

func (*Handler) InvokeRoleARN

func (h *Handler) InvokeRoleARN() string

func (Handler) SetHealth

func (ha Handler) SetHealth(h bool) Handler

func (Handler) SetProviderDescription

func (ha Handler) SetProviderDescription(p *providerregistrysdk.DescribeResponse) Handler

func (*Handler) ToAPI

func (h *Handler) ToAPI() types.TGHandler

Jump to

Keyboard shortcuts

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