testclient

package
v1.65.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	client.Client
	// contains filtered or unexported fields
}

func New

func New(logger *log.Entry, initObjects []client.Object) (*Client, error)

func (*Client) Create

func (c *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

func (*Client) Patch

func (c *Client) Patch(ctx context.Context, obj client.Object, p client.Patch, opts ...client.PatchOption) error

func (*Client) Update

func (c *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

func (*Client) Validator

func (c *Client) Validator() *Validator

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

Jump to

Keyboard shortcuts

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