Documentation ¶
Overview ¶
Register configs
Index ¶
- type Registry
- func (r *Registry) Get(name string) (project.Project, bool)
- func (r Registry) GetConfigFile() string
- func (r *Registry) Index() error
- func (r *Registry) List() []string
- func (r *Registry) Load() error
- func (r *Registry) Prune() error
- func (r *Registry) Read(reader io.Reader) error
- func (r *Registry) Register(p project.Project)
- func (r *Registry) Remove(name string)
- func (r *Registry) Save() error
- func (r *Registry) SetLastUpdated()
- func (r Registry) Write(writer io.Writer) error
- func (r Registry) WriteTable(writer io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct { Projects map[string]project.Project `json:"projects"` LastUpdated int64 `json:"lastUpdated"` }
func NewRegistry ¶
func NewRegistry() *Registry
func (Registry) GetConfigFile ¶
GetConfigFile returns the config file path from the registry
func (*Registry) Remove ¶
Remove removes a project from the registry data
reg := registry.NewRegistry() reg.Remove("foo")
func (*Registry) SetLastUpdated ¶
func (r *Registry) SetLastUpdated()
SetLastUpdated sets the last updated time in the registry data
func (Registry) WriteTable ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.