manifest

package
v0.0.0-...-f0fc148 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestStorage

type ManifestStorage struct {
	storage.Storage
}

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

Jump to

Keyboard shortcuts

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