setting

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MinDeleteInactiveUserAfter = 24 * 14 * time.Hour // 14 days.

MinDeleteInactiveUserAfter is the minimum duration for delete-inactive-user-after setting. This is introduced to minimize the risk of deleting users accidentally by setting a relatively low value. The admin can still set a lower value if needed by bypassing the webhook.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator validates settings.

func NewValidator

func NewValidator() *Validator

NewValidator returns a new Validator instance.

func (*Validator) Admitters

func (v *Validator) Admitters() []admission.Admitter

Admitters returns the admitter objects.

func (*Validator) GVR

GVR returns the GroupVersionResource.

func (*Validator) Operations

Operations returns list of operations handled by the validator.

func (*Validator) ValidatingWebhook

ValidatingWebhook returns the ValidatingWebhook.

Jump to

Keyboard shortcuts

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