repo

package
v1.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepo

func NewRepo(service models.Service, name string) models.Repo

NewRepo creates a new repo object for the given service and repo name

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

func (d *Mapper) GetBestRepo(name string) (models.Repo, error)

GetBestRepo gets the repo which best matches a given name

func (*Mapper) GetBranches added in v1.5.1

func (d *Mapper) GetBranches(r models.Repo) ([]string, error)

GetBranches returns a list of branches for the provided repository.

func (*Mapper) GetCurrentDirectoryRepo

func (d *Mapper) GetCurrentDirectoryRepo() (models.Repo, error)

GetCurrentDirectoryRepo gets the repo details for the repository open in your current directory.

func (*Mapper) GetFullyQualifiedRepo

func (d *Mapper) GetFullyQualifiedRepo(name string) (models.Repo, error)

GetFullyQualifiedRepo fetches the repo details for the fully qualified named repository which has been provided.

func (*Mapper) GetRepo

func (d *Mapper) GetRepo(name string) (models.Repo, error)

GetRepo attempts to resolve the details of a repository given its name.

func (*Mapper) GetRepoForService

func (d *Mapper) GetRepoForService(service models.Service, name string) (models.Repo, error)

GetRepoForService fetches the repo details for the named repository managed by the provided service.

func (*Mapper) GetRepos

func (d *Mapper) GetRepos() ([]models.Repo, error)

GetRepos will fetch all of the repositories contained within a developer's dev directory which match the required naming scheme.

func (*Mapper) GetReposForService

func (d *Mapper) GetReposForService(service models.Service) ([]models.Repo, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL