Documentation
¶
Index ¶
- func New(v any) (provider.Provider, error)
- type Spec
- func (s *Spec) Configure(cmd *cobra.Command)
- func (s *Spec) Execute(ctx context.Context, in provider.Inputs) (*provider.Result, error)
- func (s *Spec) Preview(_ context.Context, in provider.Inputs) (*provider.RequestPreview, error)
- func (s *Spec) Sections() []provider.Section
- func (s *Spec) Summary() string
- func (s *Spec) Type() string
- func (s *Spec) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Configure wires up the command's positional arguments, flags, and run behavior.
func (*Spec) Execute ¶ added in v0.8.0
Execute assigns the collected request parameters, invokes the function, and returns its payload (or a function error) as a text result.
func (*Spec) Preview ¶ added in v0.9.0
Preview reports the resolved invocation (ARN plus JSON payload) and the headless CLI arguments that reproduce it, without invoking the function.
func (*Spec) Sections ¶ added in v0.8.0
Sections describes the function's request parameters for interactive entry.
Click to show internal directories.
Click to hide internal directories.