apivalidation

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package apivalidation holds the declarative validation generated for the atelet RPC surface.

Kubernetes codegen tools required this to be in doc.go, no other name will work.

Only the AteomSupport requests are generated today. +k8s:validation-gen=TypesWithSuffix=SetWorkerCapacityRequest +k8s:validation-gen=TypesWithSuffix=RequestActorSuspendRequest +k8s:validation-gen=TypesWithSuffix=MintActorCertificateRequest +k8s:validation-gen-input=github.com/agent-substrate/substrate/internal/proto/ateletpb +k8s:validation-gen-scheme-registry=nil +k8s:validation-gen-deep-equal-func=ateDeepEqual

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCustom_Limits

func ValidateCustom_Limits(_ context.Context, _ operation.Operation, fldPath *field.Path, value, _ *ateletpb.Limits) field.ErrorList

ValidateCustom_Limits validates one limit with resources.ValidateLimit, the rule the control plane applies to its own Limits. Presence and uniqueness of names are enforced by tags.

func ValidateMintActorCertificateRequest

func ValidateMintActorCertificateRequest(ctx context.Context, req *ateletpb.MintActorCertificateRequest) field.ErrorList

ValidateMintActorCertificateRequest runs the generated validation for req.

func ValidateRequestActorSuspendRequest

func ValidateRequestActorSuspendRequest(ctx context.Context, req *ateletpb.RequestActorSuspendRequest) field.ErrorList

ValidateRequestActorSuspendRequest runs the generated validation for req.

func ValidateSetWorkerCapacityRequest

func ValidateSetWorkerCapacityRequest(ctx context.Context, req *ateletpb.SetWorkerCapacityRequest) field.ErrorList

ValidateSetWorkerCapacityRequest runs the generated validation for req.

func Validate_Limits

func Validate_Limits(
	ctx context.Context, op operation.Operation, fldPath *field.Path,
	obj, oldObj *ateletpb.Limits) (errs field.ErrorList)

Validate_Limits validates an instance of Limits according to declarative validation rules in the API schema.

func Validate_MintActorCertificateRequest

func Validate_MintActorCertificateRequest(
	ctx context.Context, op operation.Operation, fldPath *field.Path,
	obj, oldObj *ateletpb.MintActorCertificateRequest) (errs field.ErrorList)

Validate_MintActorCertificateRequest validates an instance of MintActorCertificateRequest according to declarative validation rules in the API schema.

func Validate_RequestActorSuspendRequest

func Validate_RequestActorSuspendRequest(
	ctx context.Context, op operation.Operation, fldPath *field.Path,
	obj, oldObj *ateletpb.RequestActorSuspendRequest) (errs field.ErrorList)

Validate_RequestActorSuspendRequest validates an instance of RequestActorSuspendRequest according to declarative validation rules in the API schema.

func Validate_Resources

func Validate_Resources(
	ctx context.Context, op operation.Operation, fldPath *field.Path,
	obj, oldObj *ateletpb.Resources) (errs field.ErrorList)

Validate_Resources validates an instance of Resources according to declarative validation rules in the API schema.

func Validate_SetWorkerCapacityRequest

func Validate_SetWorkerCapacityRequest(
	ctx context.Context, op operation.Operation, fldPath *field.Path,
	obj, oldObj *ateletpb.SetWorkerCapacityRequest) (errs field.ErrorList)

Validate_SetWorkerCapacityRequest validates an instance of SetWorkerCapacityRequest according to declarative validation rules in the API schema.

func Validate_WorkerResources

func Validate_WorkerResources(
	ctx context.Context, op operation.Operation, fldPath *field.Path,
	obj, oldObj *ateletpb.WorkerResources) (errs field.ErrorList)

Validate_WorkerResources validates an instance of WorkerResources according to declarative validation rules in the API schema.

Types

This section is empty.

Jump to

Keyboard shortcuts

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