Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (c *Client) Patch(ctx context.Context, obj client.Object, p client.Patch, ...) error
- func (c *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- func (c *Client) Validator() *Validator
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator(logger logger.Logger, validators map[schema.GroupVersionKind]validation.SchemaValidator) *Validator
func (*Validator) GetValidatorFor ¶
func (v *Validator) GetValidatorFor(kind schema.ObjectKind) validation.SchemaValidator
func (*Validator) Validate ¶
func (v *Validator) Validate(obj any, options ...validation.ValidationOption) *validate.Result
func (*Validator) ValidateUpdate ¶
func (v *Validator) ValidateUpdate(newObj, oldObj any, options ...validation.ValidationOption) *validate.Result
Click to show internal directories.
Click to hide internal directories.