Documentation
¶
Index ¶
Constants ¶
const ( Infrastructure kind = "infrastructure" Service kind = "service" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents the dumb pipes connecting our business logic across different boundary conditions by providing critical information required to make the entire operator chain work as expected. The operator's worker handler is executed constantly in an interval, but the real work may only be done if the cached information about the specific release artifacts provided deeper down the stack is sufficient. E.g. an empty cache result may cause some business logic to be skipped temporarily, or cause the reconciliation loop to be cancelled entirely.
func (*Cache) Infrastructure ¶ added in v0.1.1
type Config ¶ added in v0.1.1
type Config struct {
// Frc is to forcefully trigger an infrastructure deployment, regardless of
// any detectable state drift. This option should be used with caution. E.g.
// the command "kayron daemon" should never allow to apply this trigger flag
// within Kayron's normal reconciliation loop.
Frc bool
Log logger.Interface
}
type Object ¶ added in v0.1.1
type Object struct {
Artifact artifact.Struct
Release release.Struct
// contains filtered or unexported fields
}
Object combines the associated artifact and release information in one addressable cache object. The artifact information are written and the release information are read throughout the reconciliation loops.