session

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DefaultRouteHeaderName holds the name of the Header used to route traffic if no Route is provided
	DefaultRouteHeaderName = "x-workspace-route"

	// RouteStrategyHeader holds the Route Type keyword for a Header based Route strategy
	RouteStrategyHeader = "header"
)
View Source
const (
	// Finalizer defines the Finalizer name owned by the Session reconciler
	Finalizer = "finalizers.istio.workspace.session"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Session Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func NewStandaloneReconciler

func NewStandaloneReconciler(c client.Client, m Manipulators) reconcile.Reconciler

NewStandaloneReconciler returns a new reconcile.Reconciler. Primarily used for unit testing outside of the Manager

func RefToStatus

func RefToStatus(ref model.Ref, session *istiov1alpha1.Session)

RefToStatus appends/replaces the Ref in the provided Session.Status.Ref list

func RouteToRoute

func RouteToRoute(session *istiov1alpha1.Session) model.Route

RouteToRoute returns the defined route from the session or the Default

func StatusToRef

func StatusToRef(session istiov1alpha1.Session, ref *model.Ref)

StatusToRef fills the ResourceStatus of a Ref based on the Session.Status.Refs with the same name

func StatusesToRef

func StatusesToRef(session istiov1alpha1.Session) []*model.Ref

StatusesToRef creates a List of Refs based on the Session.Status.Refs list

Types

type Manipulators

type Manipulators struct {
	Locators  []model.Locator
	Mutators  []model.Mutator
	Revertors []model.Revertor
}

Manipulators holds the basic chain of manipulators that the ReconcileSession will use to perform it's actions

type ReconcileSession

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

ReconcileSession reconciles a Session object

func (*ReconcileSession) Reconcile

func (r *ReconcileSession) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Session object and makes changes based on the state read and what is in the Session.Spec

Jump to

Keyboard shortcuts

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