apicall

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	logger logr.Logger,
	jp jmespath.Interface,
	entry kyvernov1.ContextEntry,
	jsonCtx enginecontext.Interface,
	client ClientInterface,
	apiCallConfig APICallConfiguration,
) (*apiCall, error)

func NewCaller added in v1.12.0

func NewCaller(
	logger logr.Logger,
	name string,
	client ClientInterface,
	config APICallConfiguration,
) *caller

Types

type APICallConfiguration added in v1.10.6

type APICallConfiguration struct {
	// contains filtered or unexported fields
}

func NewAPICallConfiguration added in v1.10.6

func NewAPICallConfiguration(maxLen int64) APICallConfiguration

type Caller added in v1.12.0

type Caller interface {
	Execute(context.Context, *kyvernov1.APICall) ([]byte, error)
}

type ClientInterface added in v1.10.5

type ClientInterface interface {
	RawAbsPath(ctx context.Context, path string, method string, dataReader io.Reader) ([]byte, error)
}

Jump to

Keyboard shortcuts

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