Documentation
¶
Overview ¶
Package gps defines domain types for Go Package Store.
Specifically, it provides a definition of a repository. It defines an interface for a repository presentation, and a presenter type that is capable of creating presentations. Finally, it defines an interface for a repositry updater.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// Root is the import path corresponding to the root of the repository.
Root string
// VCS allows getting the state of the VCS.
VCS vcsstate.VCS
// Path is the local filesystem path to the repository.
// It must be set if VCS is not nil.
Path string
// Cmd can be used to update this local repository inside a GOPATH workspace.
// It must be set if VCS is not nil.
Cmd *vcs.Cmd
// RemoteVCS allows getting the remote state of the VCS.
RemoteVCS vcsstate.RemoteVCS
// RemoteURL is the remote URL, including scheme.
// It must be set if RemoteVCS is not nil.
RemoteURL string
Local struct {
// RemoteURL is the remote URL, including scheme.
RemoteURL string
Revision string // Revision of the default branch (not necessarily the checked out one).
}
Remote struct {
// RepoURL is the repository URL, including scheme, as determined dynamically from the import path.
RepoURL string
Branch string // Default branch, as determined from remote. Only populated if VCS or RemoteVCS is non-nil.
Revision string // Revision of the default branch.
}
}
Repo represents the state of a single repository.
func (Repo) ImportPathPattern ¶
ImportPathPattern returns an import path pattern that matches all of the Go packages in this repo. E.g.:
"github.com/owner/repo/..."
Directories
¶
| Path | Synopsis |
|---|---|
|
_data
|
|
|
component
command
|
|
|
Package assets contains assets for Go Package Store.
|
Package assets contains assets for Go Package Store. |
|
cmd
|
|
|
Go-Package-Store
command
Go Package Store displays updates for the Go packages in your GOPATH.
|
Go Package Store displays updates for the Go packages in your GOPATH. |
|
Package component contains Vecty HTML components used by Go Package Store.
|
Package component contains Vecty HTML components used by Go Package Store. |
|
Command frontend runs on frontend of Go Package Store.
|
Command frontend runs on frontend of Go Package Store. |
|
action
Package action defines actions that can be applied to the data model in store.
|
Package action defines actions that can be applied to the data model in store. |
|
model
Package model is a frontend data model for updates.
|
Package model is a frontend data model for updates. |
|
store
Package store is a store for updates.
|
Package store is a store for updates. |
|
Package presenter defines domain types for Go Package Store presenters.
|
Package presenter defines domain types for Go Package Store presenters. |
|
github
Package github provides a GitHub API-powered presenter.
|
Package github provides a GitHub API-powered presenter. |
|
gitiles
Package gitiles provides a Gitiles API-powered presenter.
|
Package gitiles provides a Gitiles API-powered presenter. |
|
Package updater contains gps.Updater implementations.
|
Package updater contains gps.Updater implementations. |
|
Package workspace contains a pipeline for processing a Go workspace.
|
Package workspace contains a pipeline for processing a Go workspace. |
Click to show internal directories.
Click to hide internal directories.
