validation

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialValidator

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

CredentialValidator validates credentials against schema constraints

func NewCredentialValidator

func NewCredentialValidator(repository *dsopsdata.Repository, logger *logging.Logger) *CredentialValidator

NewCredentialValidator creates a new credential validator

func (*CredentialValidator) ValidateCredential

func (v *CredentialValidator) ValidateCredential(serviceType, credentialKind, value string) *ValidationResult

ValidateCredential validates a credential value against schema constraints

func (*CredentialValidator) ValidateNewCredential

func (v *CredentialValidator) ValidateNewCredential(serviceType, credentialKind string, newValue string, currentValue string) *ValidationResult

ValidateNewCredential validates a new credential before rotation

type ValidationResult

type ValidationResult struct {
	Valid      bool     `json:"valid"`
	Errors     []string `json:"errors,omitempty"`
	Warnings   []string `json:"warnings,omitempty"`
	TTLSeconds int64    `json:"ttl_seconds,omitempty"`
}

ValidationResult contains the result of a validation

Jump to

Keyboard shortcuts

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