Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManifestStorage ¶
ManifestStorage implements the storage interface for GitOps purposes
func NewManifestStorage ¶
func NewManifestStorage(manifestDir string, ser serializer.Serializer) (*ManifestStorage, error)
NewManifestStorage constructs a new storage that watches unstructured manifests in the specified directory, decodable using the given serializer.
func NewTwoWayManifestStorage ¶
func NewTwoWayManifestStorage(manifestDir, dataDir string, ser serializer.Serializer) (*ManifestStorage, error)
NewManifestStorage constructs a new storage that watches unstructured manifests in the specified directory, decodable using the given serializer. However, all changes in the manifest directory, are also propagated to the structured data directory that's backed by the default storage implementation. Writes to this storage are propagated to both the manifest directory, and the data directory.
func (*ManifestStorage) GetUpdateStream ¶
func (s *ManifestStorage) GetUpdateStream() sync.UpdateStream
GetUpdateStream gets the channel with updates