lambda

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(v any) (provider.Provider, error)

New creates a new provider.

Types

type Spec

type Spec struct {
	ARN           string                `json:"arn"                      yaml:"arn"`
	RequestParams provider.ParameterSet `json:"request_params,omitempty" yaml:"request_params,omitempty"`
}

Spec describes the provider.

func (*Spec) Configure added in v0.5.0

func (s *Spec) Configure(cmd *cobra.Command)

Configure wires up the command's positional arguments, flags, and run behavior.

func (*Spec) Execute added in v0.8.0

func (s *Spec) Execute(ctx context.Context, in provider.Inputs) (*provider.Result, error)

Execute assigns the collected request parameters, invokes the function, and returns its payload (or a function error) as a text result.

func (*Spec) Sections added in v0.8.0

func (s *Spec) Sections() []provider.Section

Sections describes the function's request parameters for interactive entry.

func (*Spec) Summary added in v0.8.0

func (s *Spec) Summary() string

Summary describes the invocation in one line.

func (*Spec) Type

func (s *Spec) Type() string

Type returns the type.

func (*Spec) Validate

func (s *Spec) Validate() error

Validate validates the provider.

Jump to

Keyboard shortcuts

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