Documentation ¶
Index ¶
- type GetterManager
- type GoFetcher
- type IModUpdater
- type ModfileModUpdater
- type RegexModUpdater
- type Setting
- func (s *Setting) AddCredential(matcher, host, username, basePath string) error
- func (s *Setting) AddRepository(name string) error
- func (s *Setting) GetAllRepositories() []string
- func (s *Setting) GetMatchingCredential(name string) *SshCredential
- func (s *Setting) LoadFromFile(fileName string) error
- func (s *Setting) SaveToFile(fileName string) error
- type SettingData
- type SshCredential
- type SshFetcher
- type SyncManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetterManager ¶
type GetterManager struct {
// contains filtered or unexported fields
}
func NewGetterManager ¶
func NewGetterManager(setting *Setting) *GetterManager
func (*GetterManager) Get ¶
func (g *GetterManager) Get(name string) error
type GoFetcher ¶
type GoFetcher struct {
// contains filtered or unexported fields
}
func NewGoFetcher ¶
type IModUpdater ¶
type ModfileModUpdater ¶
type ModfileModUpdater struct {
// contains filtered or unexported fields
}
func NewModfileModUpdater ¶
func NewModfileModUpdater() *ModfileModUpdater
func (*ModfileModUpdater) SetTargetFile ¶
func (g *ModfileModUpdater) SetTargetFile(targetFile string)
func (*ModfileModUpdater) Update ¶
func (g *ModfileModUpdater) Update(repositories []string) error
type RegexModUpdater ¶
type RegexModUpdater struct {
// contains filtered or unexported fields
}
func NewRegexModUpdater ¶
func NewRegexModUpdater() *RegexModUpdater
func (*RegexModUpdater) Update ¶
func (m *RegexModUpdater) Update(repositories []string) error
type Setting ¶
type Setting struct {
// contains filtered or unexported fields
}
func NewSetting ¶
func NewSetting() *Setting
func (*Setting) AddCredential ¶
func (*Setting) AddRepository ¶
func (*Setting) GetAllRepositories ¶
func (*Setting) GetMatchingCredential ¶
func (s *Setting) GetMatchingCredential(name string) *SshCredential
func (*Setting) LoadFromFile ¶
func (*Setting) SaveToFile ¶
type SettingData ¶
type SettingData struct { SshCredentials []*SshCredential PrivateRepositories []string }
func NewSettingData ¶
func NewSettingData() *SettingData
func (*SettingData) GetMatchingCredential ¶
func (s *SettingData) GetMatchingCredential(request string) *SshCredential
type SshCredential ¶
type SshFetcher ¶
type SshFetcher struct {
// contains filtered or unexported fields
}
func NewSshFetcher ¶
func NewSshFetcher(name, username, host, basePath string) *SshFetcher
func (*SshFetcher) Fetch ¶
func (s *SshFetcher) Fetch() error
type SyncManager ¶
type SyncManager struct {
// contains filtered or unexported fields
}
func NewSyncManager ¶
func NewSyncManager(setting *Setting, getter *GetterManager) *SyncManager
func (*SyncManager) Sync ¶
func (s *SyncManager) Sync() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.