Documentation
¶
Index ¶
- func Mutate(fn func(*Config) error) error
- func Path() (string, error)
- func RemoveCatalog(name string) error
- func ReorderCatalogs(order []string) error
- func Save(cfg Config) error
- func UpsertCatalog(entry CatalogConfig) (added bool, err error)
- type CatalogConfig
- type CatalogType
- type Config
- type GitConfig
- type LocalDirConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveCatalog ¶
func ReorderCatalogs ¶
func UpsertCatalog ¶
func UpsertCatalog(entry CatalogConfig) (added bool, err error)
Types ¶
type CatalogConfig ¶
type CatalogConfig struct {
Name string `yaml:"name"`
Type CatalogType `yaml:"type"`
Git *GitConfig `yaml:"git,omitempty"`
LocalDir *LocalDirConfig `yaml:"local-dir,omitempty"`
}
func (CatalogConfig) Location ¶
func (r CatalogConfig) Location() string
func (CatalogConfig) Validate ¶
func (r CatalogConfig) Validate() error
type CatalogType ¶
type CatalogType string
const ( CatalogTypeLocalDir CatalogType = "local-dir" CatalogTypeGit CatalogType = "git" )
type Config ¶
type Config struct {
Catalogs []CatalogConfig `yaml:"catalogs"`
Auth auth.Config `yaml:"auth,omitempty"`
}
type LocalDirConfig ¶
type LocalDirConfig struct {
Path string `yaml:"path"`
}
Click to show internal directories.
Click to hide internal directories.