apiserver

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RefMode produces payloads of ObjectReference
	RefMode = "Ref"
	// ResourceMode produces payloads of ResourceEvent
	ResourceMode = "Resource"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	Start(stopCh <-chan struct{}) error
}

func NewAdaptor

func NewAdaptor(source string, k8sClient dynamic.Interface,
	ceClient cloudevents.Client, logger *zap.SugaredLogger,
	opt Options, reporter source.StatsReporter, name string) Adapter

type GVRC

type GVRC struct {
	GVR             schema.GroupVersionResource
	Controller      bool
	LabelSelector   string
	OwnerApiVersion string
	OwnerKind       string
}

GVRC is a combination of GroupVersionResource, Controller flag, LabelSelector and OwnerRef

type Options

type Options struct {
	Mode      string
	Namespace string
	GVRCs     []GVRC
}

Options hold the options for the Adapter.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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