Documentation ¶
Index ¶
- Constants
- Variables
- type ExportImportStatus
- type Group
- type Manager
- type Repo
- type Settings
- func (s *Settings) AddGroup(groupName string) (*Group, error)
- func (s *Settings) AddRepo(name string, url string, tags []string) error
- func (s *Settings) AddRepoToGroup(group *Group, repoName string) error
- func (s *Settings) GetGroup(groupName string) (*Group, error)
- func (s *Settings) GetRepo(name string) (*Repo, error)
- func (s *Settings) GroupExists(groupName string) bool
- func (s *Settings) RemoveGroup(groupName string) error
- func (s *Settings) RemoveRepo(name string) error
- func (s *Settings) RemoveRepoFromGroup(group *Group, repoName string) error
- func (s *Settings) RepoExists(name string) bool
Constants ¶
View Source
const (
PreviousGroupName = "previous"
)
Variables ¶
View Source
var ( ErrGroupNotFound = errors.New("group is not found") ErrGroupAlreadyExists = errors.New("group already exists") ErrRepoAlreadyExists = errors.New("repository already exists") ErrRepoNotFound = errors.New("repository is not found") ErrRepoNotSupported = errors.New("repository is not supported") ErrRepoAlreadyAdded = errors.New("repository already added") ErrRepoAlreadyRemoved = errors.New("repository already removed") )
Functions ¶
This section is empty.
Types ¶
type ExportImportStatus ¶
type ExportImportStatus int
const ( ExportImportStatusUpToDate ExportImportStatus = iota ExportImportStatusAdded ExportImportStatusRemoved )
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Export ¶
func (sm *Manager) Export(remoteRepoUrl string) (map[string]ExportImportStatus, error)
type Settings ¶
func (*Settings) AddRepoToGroup ¶ added in v0.2.0
func (*Settings) GroupExists ¶ added in v0.2.0
func (*Settings) RemoveGroup ¶ added in v0.2.0
func (*Settings) RemoveRepo ¶
func (*Settings) RemoveRepoFromGroup ¶ added in v0.2.0
func (*Settings) RepoExists ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.