Documentation ¶
Index ¶
- Variables
- func GetCertificatesMap() map[string][]*x509.Certificate
- type CertificateStoreReconciler
- type LogrusSink
- func (sink *LogrusSink) Enabled(level int) bool
- func (sink *LogrusSink) Error(err error, msg string, keysAndValues ...interface{})
- func (sink *LogrusSink) Info(_ int, msg string, keysAndValues ...interface{})
- func (sink *LogrusSink) Init(_ logr.RuntimeInfo)
- func (sink *LogrusSink) WithName(name string) logr.LogSink
- func (sink *LogrusSink) WithValues(keysAndValues ...interface{}) logr.LogSink
- type PolicyReconciler
- type StoreReconciler
- type VerifierReconciler
Constants ¶
This section is empty.
Variables ¶
var ActivePolicy policy
ActivePolicy is the active policy generated from CRD. There would be exactly one active policy at any given time.
var ( // a map to track active stores StoreMap = map[string]referrerstore.ReferrerStore{} )
var ( // a map to track of active verifiers VerifierMap = map[string]vr.ReferenceVerifier{} )
Functions ¶
func GetCertificatesMap ¶
func GetCertificatesMap() map[string][]*x509.Certificate
returns the internal certificate map
Types ¶
type CertificateStoreReconciler ¶
CertificateStoreReconciler reconciles a CertificateStore object
func (*CertificateStoreReconciler) Reconcile ¶
func (r *CertificateStoreReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. the CertificateStore object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile
func (*CertificateStoreReconciler) SetupWithManager ¶
func (r *CertificateStoreReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type LogrusSink ¶
type LogrusSink struct {
// contains filtered or unexported fields
}
LogrusSink is an adapter to allow the use of logrus with logr, as required by k8s controller-runtime.
func NewLogrusSink ¶
func NewLogrusSink(logger *logrus.Logger) *LogrusSink
func (*LogrusSink) Enabled ¶
func (sink *LogrusSink) Enabled(level int) bool
Enabled tests whether this LogSink is enabled at the specified V-level. For example, commandline flags might be used to set the logging verbosity and disable some info logs.
func (*LogrusSink) Error ¶
func (sink *LogrusSink) Error(err error, msg string, keysAndValues ...interface{})
Error logs an error, with the given message and key/value pairs as context. See Logger.Error for more details.
func (*LogrusSink) Info ¶
func (sink *LogrusSink) Info(_ int, msg string, keysAndValues ...interface{})
Info logs a non-error message with the given key/value pairs as context. The level argument is provided for optional logging. This method will only be called when Enabled(level) is true. See Logger.Info for more details.
func (*LogrusSink) Init ¶
func (sink *LogrusSink) Init(_ logr.RuntimeInfo)
Init receives optional information about the logr library for LogSink implementations that need it.
func (*LogrusSink) WithName ¶
func (sink *LogrusSink) WithName(name string) logr.LogSink
WithName returns a new LogSink with the specified name appended. See Logger.WithName for more details.
func (*LogrusSink) WithValues ¶
func (sink *LogrusSink) WithValues(keysAndValues ...interface{}) logr.LogSink
WithValues returns a new LogSink with additional key/value pairs. See Logger.WithValues for more details.
type PolicyReconciler ¶
PolicyReconciler reconciles a Policy object
func (*PolicyReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile
func (*PolicyReconciler) SetupWithManager ¶
func (r *PolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type StoreReconciler ¶
StoreReconciler reconciles a Store object
func (*StoreReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile
func (*StoreReconciler) SetupWithManager ¶
func (r *StoreReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type VerifierReconciler ¶
VerifierReconciler reconciles a Verifier object
func (*VerifierReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Verifier object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile
func (*VerifierReconciler) SetupWithManager ¶
func (r *VerifierReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.