Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOrUpdate ¶
func AddOrUpdate(item ConfigItem) error
Types ¶
type Config ¶
type Config struct {
Items []ConfigItem `json:"items,omitempty"`
}
func (*Config) AddOrUpdate ¶
func (c *Config) AddOrUpdate(item ConfigItem) error
func (*Config) Get ¶
func (c *Config) Get(repoName string) *ConfigItem
type ConfigItem ¶
type ConfigItem struct { Name string `json:"name,omitempty"` Version string `json:"version,omitempty"` Checksum string `json:"checksum,omitempty"` Executable string `json:"executable,omitempty"` }
func (*ConfigItem) Owner ¶
func (i *ConfigItem) Owner() string
Owner returns the owner part of the item's Name
func (*ConfigItem) Repository ¶
func (i *ConfigItem) Repository() string
Repository returns the repo part of the item's Name
Click to show internal directories.
Click to hide internal directories.