api

package
v0.0.0-...-1b9946f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              FunctionSpec   `json:"spec"`
	Status            FunctionStatus `json:"status"`
}

Function invokes an extrinsic function over HTTP. Use this to implement arbitrary transforms on your data that are not supported by other gadgets. The body of the HTTP request will be the input data. Separate transformed output channels are created for each input channel.

type FunctionSpec

type FunctionSpec struct {
	api.GadgetSpec
	Endpoint string            `json:"endpoint"` // (required) http endpoint of the function
	Headers  map[string]string `json:"headers"`  // (optional) http request headers
}

FunctionSpec the desired state of a function gadget. The endpoint and headers can be interpolated with secret values, example: {"Authorization": "Bearer ${my-secret-name:my-secret-value}"}

type FunctionStatus

type FunctionStatus struct {
	api.GadgetStatus
}

FunctionStatus the observed state of a function gadget.

Jump to

Keyboard shortcuts

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