api

package
v0.0.0-...-2ed3a29 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Scheme contains the types needed by the resource API.
	Scheme = runtime.NewScheme()
	// Codecs is a codec factory for serving the resource API.
	Codecs = serializer.NewCodecFactory(Scheme)
)

Functions

func BuildEphemeralReports

func BuildEphemeralReports(ephr, cephr rest.Storage) genericapiserver.APIGroupInfo

BuildEphemeralReports constructs APIGroupInfo the reports.kyverno.io API group using the given getters.

func BuildPolicyReports

func BuildPolicyReports(polr, cpolr rest.Storage) genericapiserver.APIGroupInfo

BuildPolicyReports constructs APIGroupInfo the wgpolicyk8s.io API group using the given getters.

func DefaultSubsetNegotiatedSerializer

func DefaultSubsetNegotiatedSerializer(codecs serializer.CodecFactory) runtime.NegotiatedSerializer

func Install

Install builds the reports for the wgpolicyk8s.io and reports.kyverno.io API, and then installs it into the given API reports-server.

func NoProtobuf

func NoProtobuf(info runtime.SerializerInfo) bool

func RegisterAPIMetrics

func RegisterAPIMetrics(registrationFunc func(metrics.Registerable) error) error

func SubsetNegotiatedSerializer

func SubsetNegotiatedSerializer(codecs serializer.CodecFactory, accepts ...func(info runtime.SerializerInfo) bool) runtime.NegotiatedSerializer

Types

type API

func ClusterEphemeralReportStore

func ClusterEphemeralReportStore(store storage.Interface) API

func ClusterPolicyReportStore

func ClusterPolicyReportStore(store storage.Interface) API

func EphemeralReportStore

func EphemeralReportStore(store storage.Interface) API

func PolicyReportStore

func PolicyReportStore(store storage.Interface) API

Directories

Path Synopsis
generated

Jump to

Keyboard shortcuts

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