Documentation ¶
Index ¶
- Constants
- Variables
- func BuildEphemeralReports(ephr, cephr rest.Storage) genericapiserver.APIGroupInfo
- func BuildPolicyReports(polr, cpolr rest.Storage) genericapiserver.APIGroupInfo
- func DefaultSubsetNegotiatedSerializer(codecs serializer.CodecFactory) runtime.NegotiatedSerializer
- func Install(store storage.Interface, server *genericapiserver.GenericAPIServer) error
- func NoProtobuf(info runtime.SerializerInfo) bool
- func RegisterAPIMetrics(registrationFunc func(metrics.Registerable) error) error
- func SubsetNegotiatedSerializer(codecs serializer.CodecFactory, ...) runtime.NegotiatedSerializer
- type API
Constants ¶
View Source
const ( ServedByReportsServerAnnotation = "kyverno.reports-server.io/served-by" ServedByReportsServerValue = "reports-server" )
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 ¶
func Install(store storage.Interface, server *genericapiserver.GenericAPIServer) error
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 ¶
type API interface { rest.Storage rest.KindProvider rest.Scoper rest.SingularNameProvider rest.StandardStorage rest.ShortNamesProvider }
func EphemeralReportStore ¶
func PolicyReportStore ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.