Documentation
¶
Overview ¶
Package kubernetesbinding defines the bounded contract used to verify the exact Kubernetes resources selected by an installation operator.
Index ¶
- Constants
- func NormalizeStrings(values []string) []string
- func ValidateObservation(target Target, observation Observation, now time.Time) error
- func ValidateTarget(target Target) error
- type Health
- type Kind
- type Observation
- type PublicationObservation
- type PublicationTarget
- type StorageObservation
- type StorageTarget
- type Target
Constants ¶
View Source
const ( MaxTargets = 32 ObservationTTL = 90 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func NormalizeStrings ¶
func ValidateObservation ¶
func ValidateObservation(target Target, observation Observation, now time.Time) error
func ValidateTarget ¶
Types ¶
type Health ¶
type Health string
func EffectiveHealth ¶
func EffectiveHealth(now time.Time, observation Observation) Health
type Observation ¶
type Observation struct {
ID string
Kind Kind
Version int64
Health Health
ReasonCode string
SampledAt time.Time
Storage *StorageObservation
Publication *PublicationObservation
}
type PublicationObservation ¶
type PublicationTarget ¶
type StorageObservation ¶
type StorageTarget ¶
type StorageTarget struct {
StorageClassName string
}
type Target ¶
type Target struct {
ID string
Kind Kind
Version int64
Storage *StorageTarget
Publication *PublicationTarget
}
Click to show internal directories.
Click to hide internal directories.