lambda

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

This section is empty.

Functions

func BuildExecutionARN

func BuildExecutionARN(stateMachineARN string, grantID string) string

Types

type Runtime

type Runtime struct {
	StateMachineARN        string `env:"COMMONFATE_STATE_MACHINE_ARN"`
	LogLevel               string `env:"LOG_LEVEL,default=info"`
	EventBusArn            string `env:"COMMONFATE_EVENT_BUS_ARN"`
	EventBusSource         string `env:"COMMONFATE_EVENT_BUS_SOURCE"`
	GranterStateMachineARN string `env:"COMMONFATE_STATE_MACHINE_ARN"`
}

Runtime is a runtime which initiates a stepfunctions workflow

func (*Runtime) CreateGrant

func (r *Runtime) CreateGrant(ctx context.Context, vcg types.ValidCreateGrant) (types.Grant, error)

CreateGrant creates a new grant.

func (*Runtime) Init

func (r *Runtime) Init(ctx context.Context) error

Init initialises the runtime

func (*Runtime) RevokeGrant

func (r *Runtime) RevokeGrant(ctx context.Context, grantID string, revoker string) (*types.Grant, error)

calls out to the provider to revoke access to the grant and disables execution to the granter state function

type WorkflowInput

type WorkflowInput struct {
	Grant types.Grant `json:"grant"`
}

WorkflowInput is the input to the Step Functions workflow execution

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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