Documentation
¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func NewStandaloneReconciler(c client.Client, m Manipulators) reconcile.Reconciler
- func RefToStatus(ref model.Ref, session *istiov1alpha1.Session)
- func RouteToRoute(session *istiov1alpha1.Session) model.Route
- func StatusToRef(session istiov1alpha1.Session, ref *model.Ref)
- func StatusesToRef(session istiov1alpha1.Session) []*model.Ref
- type Manipulators
- type ReconcileSession
Constants ¶
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" )
const (
// Finalizer defines the Finalizer name owned by the Session reconciler
Finalizer = "finalizers.istio.workspace.session"
)
Variables ¶
This section is empty.
Functions ¶
func Add ¶
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