controllers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: BSD-3-Clause Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReconFreqErr = time.Second * 30
	ReconFreq    = time.Duration(0)
)

Functions

func InitEnv

func InitEnv()

InitEnv initialize env variables

func NotFound

func NotFound(err error) bool

Types

type DatabaseReconciler

type DatabaseReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *scheme.Scheme
}

DatabaseReconciler reconciles a Database object

func (*DatabaseReconciler) Reconcile

func (r *DatabaseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile manages the Stardog resources for a Database object

func (*DatabaseReconciler) SetupWithManager

func (r *DatabaseReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type DatabaseReconciliation

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

type OrganizationReconciler

type OrganizationReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *scheme.Scheme
}

OrganizationReconciler reconciles a Organization object

func (*OrganizationReconciler) Reconcile

func (r *OrganizationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile manages the Stardog resources for a Database object

func (*OrganizationReconciler) SetupWithManager

func (r *OrganizationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type OrganizationReconciliation

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

type ReconciliationContext

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

func (*ReconciliationContext) SetStatusCondition

func (rc *ReconciliationContext) SetStatusCondition(condition StardogCondition)

SetStatusCondition adds the given condition to the status condition of the Stardog CRDs. Overwrites existing conditions of the same type.

func (*ReconciliationContext) SetStatusIfExisting

func (rc *ReconciliationContext) SetStatusIfExisting(conditionType StardogConditionType, status v1.ConditionStatus)

SetStatusIfExisting sets the condition of the given type to the given status, if the condition already exists, otherwise noop

type StardogInstanceReconciler

type StardogInstanceReconciler struct {
	client.Client
	Log               logr.Logger
	Scheme            *runtime.Scheme
	ReconcileInterval time.Duration
}

StardogInstanceReconciler reconciles a StardogInstance object

func (*StardogInstanceReconciler) Reconcile

func (*StardogInstanceReconciler) ReconcileStardogInstance

func (r *StardogInstanceReconciler) ReconcileStardogInstance(sir *StardogInstanceReconciliation) (ctrl.Result, error)

func (*StardogInstanceReconciler) SetupWithManager

func (r *StardogInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error

type StardogInstanceReconciliation

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

type StardogResponse added in v0.3.0

type StardogResponse interface {
	IsCode(code int) bool
}

type StardogRoleReconciler

type StardogRoleReconciler struct {
	client.Client
	Log               logr.Logger
	Scheme            *runtime.Scheme
	ReconcileInterval time.Duration
}

StardogRoleReconciler reconciles a StardogRole object

func (*StardogRoleReconciler) Reconcile

func (r *StardogRoleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*StardogRoleReconciler) ReconcileStardogRole

func (r *StardogRoleReconciler) ReconcileStardogRole(srr *StardogRoleReconciliation) (ctrl.Result, error)

func (*StardogRoleReconciler) SetupWithManager

func (r *StardogRoleReconciler) SetupWithManager(mgr ctrl.Manager) error

type StardogRoleReconciliation

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

type StardogUserReconciler

type StardogUserReconciler struct {
	client.Client
	Log               logr.Logger
	Scheme            *runtime.Scheme
	ReconcileInterval time.Duration
}

StardogUserReconciler reconciles a StardogUser object

func (*StardogUserReconciler) Reconcile

func (r *StardogUserReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*StardogUserReconciler) ReconcileStardogUser

func (r *StardogUserReconciler) ReconcileStardogUser(sur *StardogUserReconciliation) (ctrl.Result, error)

func (*StardogUserReconciler) SetupWithManager

func (r *StardogUserReconciler) SetupWithManager(mgr ctrl.Manager) error

type StardogUserReconciliation

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

Jump to

Keyboard shortcuts

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