knative

package
v0.0.0-...-ac6872c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelFilter

func ChannelFilter(w http.ResponseWriter, r *http.Response)

ChannelFilter shall filter partial metadata from knative channel CRDs before propagating

func EventSourceFilter

func EventSourceFilter(w http.ResponseWriter, r *http.Response)

EventSourceFilter shall filter partial metadata from knative event sources CRDs before propagating

Types

type ChannelList

type ChannelList = EventSourceList

ChannelList is a list of CRD per Channel

type EventSourceDefinition

type EventSourceDefinition struct {
	metav1.TypeMeta `json:",inline"`
	EventSourceMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	EventSourceSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
}

EventSourceDefinition represents a resource that should be exposed on the API server.

type EventSourceList

type EventSourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// items list individual EventSourceDefinition objects
	Items []EventSourceDefinition `json:"items" protobuf:"bytes,2,rep,name=items"`
}

EventSourceList is a list of EventSourceDefinition objects.

type EventSourceMeta

type EventSourceMeta struct {
	Name   string            `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
	Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"`
}

EventSourceMeta is metadata that all persisted resources must have, which includes all objects users must create

type EventSourceSpec

type EventSourceSpec struct {
	Group    string                                      `json:"group" protobuf:"bytes,1,opt,name=group"`
	Names    apiextensions.CustomResourceDefinitionNames `json:"names" protobuf:"bytes,3,opt,name=names"`
	Versions []EventSourceVersion                        `json:"versions" protobuf:"bytes,7,rep,name=versions"`
}

EventSourceSpec describes how a user wants their resource to appear

type EventSourceVersion

type EventSourceVersion struct {
	Name    string `json:"name" protobuf:"bytes,1,opt,name=name"`
	Served  bool   `json:"served" protobuf:"varint,2,opt,name=served"`
	Storage bool   `json:"storage" protobuf:"varint,3,opt,name=storage"`
}

EventSourceVersion describes a version for CRD.

Jump to

Keyboard shortcuts

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