rest

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 9 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 {
	Endpoint    string                `json:"endpoint"               yaml:"endpoint"`
	Method      string                `json:"method"                 yaml:"method"`
	Headers     map[string]string     `json:"headers,omitempty"      yaml:"headers,omitempty"`
	QueryParams provider.ParameterSet `json:"query_params,omitempty" yaml:"query_params,omitempty"`
	BodyParams  provider.ParameterSet `json:"body_params,omitempty"  yaml:"body_params,omitempty"`
	PrintStatus bool                  `json:"print_status,omitempty" yaml:"print_status"`
}

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) 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