Help us shape the future of Go! Take the 2026 Go Developer Survey

providerupgrade

package
v0.4.26 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(class ErrorClass, op string, err error) error

Types

type Assessment

type Assessment struct {
	Classification Classification
	Reason         string
	BackupRequired bool
}

type BackupRef

type BackupRef struct {
	Provider  Provider
	ID        string
	Version   string
	CreatedAt time.Time
	Verified  bool
	Metadata  map[string]string
}

func (BackupRef) Validate

func (b BackupRef) Validate(provider Provider, version string) error

type Classification

type Classification string
const (
	ClassificationNoChange    Classification = "NO_CHANGE"
	ClassificationSupported   Classification = "SUPPORTED"
	ClassificationUnsupported Classification = "UNSUPPORTED"
)

type Error

type Error struct {
	Class ErrorClass
	Op    string
	Err   error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type ErrorClass

type ErrorClass string
const (
	ErrorInvalidState    ErrorClass = "INVALID_STATE"
	ErrorUnsupportedPath ErrorClass = "UNSUPPORTED"
	ErrorBackupRequired  ErrorClass = "BACKUP_REQUIRED"
	ErrorBackupInvalid   ErrorClass = "BACKUP_INVALID"
	ErrorApplyFailed     ErrorClass = "APPLY_FAILED"
	ErrorVerifyFailed    ErrorClass = "VERIFY_FAILED"
	ErrorRecoveryFailed  ErrorClass = "RECOVERY_FAILED"
	ErrorDependency      ErrorClass = "DEPENDENCY_FAILED"
)

func ClassOf

func ClassOf(err error) ErrorClass

type Inventory

type Inventory struct {
	Provider Provider
	Version  string
	Topology string
	Owner    string
	Healthy  bool
	Details  map[string]string
}

type Provider

type Provider string
const (
	ProviderOpenBao  Provider = "openbao"
	ProviderKeycloak Provider = "keycloak"
)

type Request

type Request struct {
	CurrentVersion string
	TargetVersion  string
	TargetImage    string
	TargetDigest   string
}

func (Request) Validate

func (r Request) Validate() error

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

func ParseVersion

func ParseVersion(value string) (Version, error)

func (Version) Compare

func (v Version) Compare(other Version) int

func (Version) SameMinor

func (v Version) SameMinor(other Version) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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