Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

6.1 KB
Raw Blame
package recovery

import "github.com/rcourtman/pulse-go-rewrite/internal/recovery/model"

// Re-export the recovery model types/constants from a dependency-minimal package so
// other packages (notably internal/mock) can reference the canonical JSON shapes
// without importing the full recovery store/manager (which depends on config).

type Provider = model.Provider

const (
	ProviderProxmoxPVE Provider = model.ProviderProxmoxPVE
	ProviderProxmoxPBS Provider = model.ProviderProxmoxPBS
	ProviderProxmoxPMG Provider = model.ProviderProxmoxPMG
	ProviderKubernetes Provider = model.ProviderKubernetes
	ProviderTrueNAS    Provider = model.ProviderTrueNAS
	ProviderDocker     Provider = model.ProviderDocker
	ProviderAgent      Provider = model.ProviderAgent
	ProviderHostAgent  Provider = model.ProviderHostAgent
)

type Kind = model.Kind

const (
	KindSnapshot Kind = model.KindSnapshot
	KindBackup   Kind = model.KindBackup
	KindOther    Kind = model.KindOther
)

type Mode = model.Mode

const (
	ModeSnapshot Mode = model.ModeSnapshot
	ModeLocal    Mode = model.ModeLocal
	ModeRemote   Mode = model.ModeRemote
)

type Outcome = model.Outcome

const (
	OutcomeSuccess Outcome = model.OutcomeSuccess
	OutcomeWarning Outcome = model.OutcomeWarning
	OutcomeFailed  Outcome = model.OutcomeFailed
	OutcomeRunning Outcome = model.OutcomeRunning
	OutcomeUnknown Outcome = model.OutcomeUnknown
)

type ExternalRef = model.ExternalRef
type RecoveryPoint = model.RecoveryPoint
type RecoveryPointDisplay = model.RecoveryPointDisplay
type ProtectionRollup = model.ProtectionRollup
type ListPointsOptions = model.ListPointsOptions
type PointsSeriesBucket = model.PointsSeriesBucket
type PointsFacets = model.PointsFacets

const (
	DefaultListPageLimit = model.DefaultListPageLimit
	MaxListPageLimit     = model.MaxListPageLimit
)

type VerifyIntent = model.VerifyIntent

const (
	VerifyIntentVerified VerifyIntent = model.VerifyIntentVerified
	VerifyIntentStale    VerifyIntent = model.VerifyIntentStale
	VerifyIntentUnknown  VerifyIntent = model.VerifyIntentUnknown
)

type ProtectionState = model.ProtectionState

const (
	ProtectionStateProtected   ProtectionState = model.ProtectionStateProtected
	ProtectionStateAttention   ProtectionState = model.ProtectionStateAttention
	ProtectionStateUnprotected ProtectionState = model.ProtectionStateUnprotected
	ProtectionStateUnknown     ProtectionState = model.ProtectionStateUnknown
)

type ProtectionFreshness = model.ProtectionFreshness

const (
	ProtectionFreshnessCurrent ProtectionFreshness = model.ProtectionFreshnessCurrent
	ProtectionFreshnessStale   ProtectionFreshness = model.ProtectionFreshnessStale
	ProtectionFreshnessUnknown ProtectionFreshness = model.ProtectionFreshnessUnknown
)

type ProtectionVerification = model.ProtectionVerification

const (
	ProtectionVerificationVerified   ProtectionVerification = model.ProtectionVerificationVerified
	ProtectionVerificationUnverified ProtectionVerification = model.ProtectionVerificationUnverified
	ProtectionVerificationStale      ProtectionVerification = model.ProtectionVerificationStale
	ProtectionVerificationUnknown    ProtectionVerification = model.ProtectionVerificationUnknown
)

type ProtectionCoverage = model.ProtectionCoverage

const (
	ProtectionCoverageComplete ProtectionCoverage = model.ProtectionCoverageComplete
	ProtectionCoveragePartial  ProtectionCoverage = model.ProtectionCoveragePartial
	ProtectionCoverageNone     ProtectionCoverage = model.ProtectionCoverageNone
	ProtectionCoverageUnknown  ProtectionCoverage = model.ProtectionCoverageUnknown
)

type ProtectionReason = model.ProtectionReason

const (
	ProtectionReasonRecentVerified          ProtectionReason = model.ProtectionReasonRecentVerified
	ProtectionReasonRecent                  ProtectionReason = model.ProtectionReasonRecent
	ProtectionReasonSourceFailed            ProtectionReason = model.ProtectionReasonSourceFailed
	ProtectionReasonBackupFutureDated       ProtectionReason = model.ProtectionReasonBackupFutureDated
	ProtectionReasonStale                   ProtectionReason = model.ProtectionReasonStale
	ProtectionReasonVerificationFutureDated ProtectionReason = model.ProtectionReasonVerificationFutureDated
	ProtectionReasonVerificationOverdue     ProtectionReason = model.ProtectionReasonVerificationOverdue
	ProtectionReasonHistoryPartial          ProtectionReason = model.ProtectionReasonHistoryPartial
	ProtectionReasonHistoryUnreadable       ProtectionReason = model.ProtectionReasonHistoryUnreadable
	ProtectionReasonNoHistory               ProtectionReason = model.ProtectionReasonNoHistory
	ProtectionReasonSnapshotsOnly           ProtectionReason = model.ProtectionReasonSnapshotsOnly
	ProtectionReasonNoBackup                ProtectionReason = model.ProtectionReasonNoBackup
)

type ProtectionHistoryCompleteness = model.ProtectionHistoryCompleteness

const (
	ProtectionHistoryComplete    ProtectionHistoryCompleteness = model.ProtectionHistoryComplete
	ProtectionHistoryPartial     ProtectionHistoryCompleteness = model.ProtectionHistoryPartial
	ProtectionHistoryUnavailable ProtectionHistoryCompleteness = model.ProtectionHistoryUnavailable
	ProtectionHistoryUnknown     ProtectionHistoryCompleteness = model.ProtectionHistoryUnknown
)

type ProtectionProviderState = model.ProtectionProviderState
type ProtectionUnreadScope = model.ProtectionUnreadScope
type ProtectionUnreadScopeKind = model.ProtectionUnreadScopeKind

const (
	ProtectionUnreadScopeNode      ProtectionUnreadScopeKind = model.ProtectionUnreadScopeNode
	ProtectionUnreadScopeStorage   ProtectionUnreadScopeKind = model.ProtectionUnreadScopeStorage
	ProtectionUnreadScopeDatastore ProtectionUnreadScopeKind = model.ProtectionUnreadScopeDatastore
	ProtectionUnreadScopeNamespace ProtectionUnreadScopeKind = model.ProtectionUnreadScopeNamespace
)

var NormalizeProtectionUnreadScopes = model.NormalizeProtectionUnreadScopes

type ProtectionPosture = model.ProtectionPosture
type ProtectionProviderObservation = model.ProtectionProviderObservation
type ProtectionPosturePolicy = model.ProtectionPosturePolicy
type ProtectionPosturePolicyPayload = model.ProtectionPosturePolicyPayload
type ProtectionPostureQuery = model.ProtectionPostureQuery
type ProtectionProviderSummary = model.ProtectionProviderSummary