Documentation ¶
Index ¶
- func NewRepo(service models.Service, name string) models.Repo
- func NewScratchpad(name string) models.Scratchpad
- type Initializer
- type Mapper
- func (d *Mapper) GetBestRepo(name string) (models.Repo, error)
- func (d *Mapper) GetBranches(r models.Repo) ([]string, error)
- func (d *Mapper) GetCurrentDirectoryRepo() (models.Repo, error)
- func (d *Mapper) GetFullyQualifiedRepo(name string) (models.Repo, error)
- func (d *Mapper) GetRepo(name string) (models.Repo, error)
- func (d *Mapper) GetRepoForService(service models.Service, name string) (models.Repo, error)
- func (d *Mapper) GetRepos() ([]models.Repo, error)
- func (d *Mapper) GetReposForService(service models.Service) ([]models.Repo, error)
- func (d *Mapper) GetScratchpad(name string) (models.Scratchpad, error)
- func (d *Mapper) GetScratchpads() ([]models.Scratchpad, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewScratchpad ¶
func NewScratchpad(name string) models.Scratchpad
NewScratchpad creates a new scratchpad with the given name
Types ¶
type Initializer ¶
type Initializer struct { }
func (*Initializer) CloneRepository ¶ added in v1.3.0
func (i *Initializer) CloneRepository(r models.Repo) error
func (*Initializer) CreateRepository ¶ added in v1.3.0
func (i *Initializer) CreateRepository(r models.Repo) error
func (*Initializer) CreateScratchpad ¶
func (i *Initializer) CreateScratchpad(r models.Scratchpad) error
type Mapper ¶
type Mapper struct { }
A Mapper holds the information about a developer's source code folder which may contain multiple repositories.
func (*Mapper) GetBestRepo ¶
GetBestRepo gets the repo which best matches a given name
func (*Mapper) GetBranches ¶ added in v1.5.1
GetBranches returns a list of branches for the provided repository.
func (*Mapper) GetCurrentDirectoryRepo ¶
GetCurrentDirectoryRepo gets the repo details for the repository open in your current directory.
func (*Mapper) GetFullyQualifiedRepo ¶
GetFullyQualifiedRepo fetches the repo details for the fully qualified named repository which has been provided.
func (*Mapper) GetRepoForService ¶
GetRepoForService fetches the repo details for the named repository managed by the provided service.
func (*Mapper) GetRepos ¶
GetRepos will fetch all of the repositories contained within a developer's dev directory which match the required naming scheme.
func (*Mapper) GetReposForService ¶
GetReposForService will fetch all of the known repositories for a specific service.
func (*Mapper) GetScratchpad ¶
func (d *Mapper) GetScratchpad(name string) (models.Scratchpad, error)
GetScratchpad will fetch a scratchpad repo with the provided name
func (*Mapper) GetScratchpads ¶
func (d *Mapper) GetScratchpads() ([]models.Scratchpad, error)
GetScratchpads will fetch all of the known scratchpads which are stored locally.