v1

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLabels

func ClearLabels(ns, name string, accs ...Accessor) error

ClearLabels removes any labels for a named route from given accessors.

func SyncLabels

func SyncLabels(r *v1.Route, cacc *Configuration, racc *Revision) error

SyncLabels makes sure that the revisions and configurations referenced from a Route are labeled with route labels.

Types

type Accessor

type Accessor interface {
	// contains filtered or unexported methods
}

Accessor defines an abstraction for manipulating labeled entity (Configuration, Revision) with shared logic.

type Configuration

type Configuration struct {
	// contains filtered or unexported fields
}

Configuration is an implementation of Accessor for Configurations.

func NewConfigurationAccessor

func NewConfigurationAccessor(
	client clientset.Interface,
	tracker tracker.Interface,
	lister listers.ConfigurationLister) *Configuration

NewConfigurationAccessor is a factory function to make a new configuration Accessor.

type Revision

type Revision struct {
	// contains filtered or unexported fields
}

Revision is an implementation of Accessor for Revisions.

func NewRevisionAccessor

func NewRevisionAccessor(
	client clientset.Interface,
	tracker tracker.Interface,
	lister listers.RevisionLister) *Revision

NewRevisionAccessor is a factory function to make a new revision accessor.

Jump to

Keyboard shortcuts

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