feed

package
v0.0.0-...-d5b48cf Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EventSourceDoesNotExist is a condition reason used when an EventSource
	// referenced by a Feed does not exist.
	EventSourceDoesNotExist string = "EventSourceDoesNotExist"

	// EventSourceDeleting is a condition reason used when an EventSource
	// referenced by a feed has been marked for deletion.
	EventSourceDeleting string = "EventSourceDeleting"

	// EventTypeDoesNotExist is a condition reason used when an EventType
	// referenced by a Feed does not exist.
	EventTypeDoesNotExist string = "EventTypeDoesNotExist"

	// EventTypeDeleting is a condition reason used when an EventType
	// referenced by a feed has been marked for deletion.
	EventTypeDeleting string = "EventTypeDeleting"
)

Variables

This section is empty.

Functions

func ProvideController

func ProvideController(mrg manager.Manager) (controller.Controller, error)

ProvideController returns a Feed controller and adds it to the given Manager.

Types

type EventSourceError

type EventSourceError struct {
	StatusError
}

EventSourceError is a StatusError specifically for EventSource errors.

func (*EventSourceError) Error

func (es *EventSourceError) Error() string

Error implements the error interface.

type EventTypeError

type EventTypeError struct {
	StatusError
}

EventTypeError is a StatusError specifically for EventType errors.

func (*EventTypeError) Error

func (es *EventTypeError) Error() string

Error implements the error interface.

type StatusError

type StatusError struct {
	// Reason is a one-word CamelCase reason for the failure.
	Reason string
	// Message is a human-readable message describing the error.
	Message string
}

StatusError can be returned from lower level functions and used as the input for setting conditions on the Feed.

func (*StatusError) Error

func (se *StatusError) Error() string

Error implements the error interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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