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.
+k8s:validation-gen=TypesWithSuffix=Request +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 ¶
- func ValidateCustom_Limits(_ context.Context, _ operation.Operation, fldPath *field.Path, ...) field.ErrorList
- func ValidateMintActorCertificateRequest(ctx context.Context, req *ateletpb.MintActorCertificateRequest) field.ErrorList
- func ValidateRegisterWorkerRequest(ctx context.Context, req *ateletpb.RegisterWorkerRequest) field.ErrorList
- func ValidateRequestActorSuspendRequest(ctx context.Context, req *ateletpb.RequestActorSuspendRequest) field.ErrorList
- func Validate_HardwareIdentity(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_Limits(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_MintActorCertificateRequest(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_RegisterWorkerRequest(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_RequestActorSuspendRequest(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_Resources(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_WorkerResources(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
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 ValidateRegisterWorkerRequest ¶ added in v0.4.0
func ValidateRegisterWorkerRequest(ctx context.Context, req *ateletpb.RegisterWorkerRequest) field.ErrorList
ValidateRegisterWorkerRequest 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 Validate_HardwareIdentity ¶ added in v0.4.0
func Validate_HardwareIdentity( ctx context.Context, op operation.Operation, fldPath *field.Path, obj, oldObj *ateletpb.HardwareIdentity) (errs field.ErrorList)
Validate_HardwareIdentity validates an instance of HardwareIdentity according to declarative validation rules in the API schema.
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_RegisterWorkerRequest ¶ added in v0.4.0
func Validate_RegisterWorkerRequest( ctx context.Context, op operation.Operation, fldPath *field.Path, obj, oldObj *ateletpb.RegisterWorkerRequest) (errs field.ErrorList)
Validate_RegisterWorkerRequest validates an instance of RegisterWorkerRequest 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_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.