Documentation ¶
Index ¶
- func Add(infra *infrastructure.Metadata) error
- func AddWithDbName(infra *infrastructure.Metadata, queueDb string) error
- func Cat(cfg config.GlobalConfig, args string) ([]*infrastructure.Metadata, error)
- func CatFromStorage(fs billy.Filesystem, args string) ([]*infrastructure.Metadata, error)
- func Push(cfg config.GlobalConfig) error
- func PushFromStorage(repo *git.Repository, fs billy.Filesystem, ...) error
- func PushWithDbQueue(cfg config.GlobalConfig, queueDB string) error
- func Remove(cfg config.GlobalConfig, id string) error
- func RemoveFromStorage(cfg config.GlobalConfig, repo *git.Repository, fs billy.Filesystem, id string) error
- func SafePushFromStorage(repo *git.Repository, fs billy.Filesystem, ...) error
- func SafeRemoveFromStorage(cfg config.GlobalConfig, repo *git.Repository, fs billy.Filesystem, id string) error
- func SafeUpsertFromStorage(cfg config.GlobalConfig, repo *git.Repository, fs billy.Filesystem, ...) error
- func Upsert(cfg config.GlobalConfig, infra *infrastructure.Metadata) error
- func UpsertFromStorage(cfg config.GlobalConfig, repo *git.Repository, fs billy.Filesystem, ...) error
- type GoCatContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(infra *infrastructure.Metadata) error
Add adds an infrastructure to queue, which can be subsequently pushed using push command
func AddWithDbName ¶ added in v0.0.15
func AddWithDbName(infra *infrastructure.Metadata, queueDb string) error
func Cat ¶
func Cat(cfg config.GlobalConfig, args string) ([]*infrastructure.Metadata, error)
Cat gets the infra.json and returns it as bytes
func CatFromStorage ¶
func CatFromStorage(fs billy.Filesystem, args string) ([]*infrastructure.Metadata, error)
CatFromStorage parses the provided argument storage for infrastructure, and returns results
func PushFromStorage ¶
func PushFromStorage(repo *git.Repository, fs billy.Filesystem, infraMetaQueue *infrastructure.MetadataGroup, cfg config.GlobalConfig) error
func PushWithDbQueue ¶ added in v0.0.15
func PushWithDbQueue(cfg config.GlobalConfig, queueDB string) error
func RemoveFromStorage ¶
func RemoveFromStorage(cfg config.GlobalConfig, repo *git.Repository, fs billy.Filesystem, id string) error
func SafePushFromStorage ¶ added in v0.0.23
func SafePushFromStorage(repo *git.Repository, fs billy.Filesystem, infraMetaQueue *infrastructure.MetadataGroup, cfg config.GlobalConfig) error
func SafeRemoveFromStorage ¶ added in v0.0.13
func SafeRemoveFromStorage(cfg config.GlobalConfig, repo *git.Repository, fs billy.Filesystem, id string) error
func SafeUpsertFromStorage ¶ added in v0.0.12
func SafeUpsertFromStorage(cfg config.GlobalConfig, repo *git.Repository, fs billy.Filesystem, infra *infrastructure.Metadata) error
func Upsert ¶
func Upsert(cfg config.GlobalConfig, infra *infrastructure.Metadata) error
Upsert pulls the git repository, adds the infrastructure metadata and pushes the repository back. All processes happen within an im-memory git storage system to minimize moving parts
func UpsertFromStorage ¶
func UpsertFromStorage(cfg config.GlobalConfig, repo *git.Repository, fs billy.Filesystem, infra *infrastructure.Metadata) error
UpsertFromStorage parses the provided argument storage for infrastructure adds the infrastructure metadata and pushes the repository back. All processes happen within an im-memory git storage system to minimize moving parts
Types ¶
type GoCatContext ¶
type GoCatContext struct { Repo *git.Repository Storage billy.Filesystem Config config.GlobalConfig }
Click to show internal directories.
Click to hide internal directories.