This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from luxas/manifest_dir
Rename GitStorage into ManifestStorage
- Loading branch information
Showing
5 changed files
with
79 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package gitops | ||
package gitdir | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package manifest | ||
|
||
import ( | ||
"github.com/weaveworks/ignite/pkg/apis/ignite/scheme" | ||
"github.com/weaveworks/ignite/pkg/constants" | ||
"github.com/weaveworks/ignite/pkg/storage" | ||
) | ||
|
||
func NewManifestStorage(dataDir string) *ManifestStorage { | ||
gitRaw := NewManifestRawStorage(dataDir, constants.DATA_DIR) | ||
return &ManifestStorage{ | ||
gitRaw: gitRaw, | ||
Storage: storage.NewGenericStorage(gitRaw, scheme.Serializer), | ||
} | ||
} | ||
|
||
// ManifestStorage implements the storage interface for GitOps purposes | ||
type ManifestStorage struct { | ||
storage.Storage | ||
gitRaw *ManifestRawStorage | ||
} | ||
|
||
func (s *ManifestStorage) Sync() (UpdatedFiles, error) { | ||
return s.gitRaw.Sync() | ||
} |