Documentation
¶
Overview ¶
Package repos defines a generic repository.
Index ¶
- Variables
- type RepoType
- type RepoURI
- func (r *RepoURI) AppendMetadata(m ...string) error
- func (r *RepoURI) Equal(o *RepoURI) bool
- func (r *RepoURI) IsValidGitHubURL() error
- func (r *RepoURI) Metadata() []string
- func (r *RepoURI) Path() string
- func (r *RepoURI) RepoType() RepoType
- func (r *RepoURI) Set(s string) error
- func (r *RepoURI) SetMetadata(m []string) error
- func (r *RepoURI) SetURL(u string) error
- func (r *RepoURI) String() string
- func (r *RepoURI) Type() string
- func (r *RepoURI) URL() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorUnsupportedhost indicates the repo's host is unsupported. ErrorUnsupportedhost = errors.New("unsupported host") // ErrorInvalidGithubURL indicates the repo's GitHub URL is not in the proper format. ErrorInvalidGithubURL = errors.New("invalid GitHub repo URL") // ErrorInvalidURL indicates the repo's full GitHub URL was not passed. ErrorInvalidURL = errors.New("invalid repo flag") )
Functions ¶
This section is empty.
Types ¶
type RepoURI ¶ added in v3.1.0
type RepoURI struct {
// contains filtered or unexported fields
}
RepoURI represents the URI for a repo.
func NewFromLocalDirectory ¶ added in v3.1.0
NewFromLocalDirectory creates a RepoURI as a local directory.
func NewFromURL ¶ added in v3.1.0
NewFromURL creates a RepoURI from URL.
func (*RepoURI) AppendMetadata ¶ added in v3.1.0
AppendMetadata appends metadata.
func (*RepoURI) IsValidGitHubURL ¶ added in v3.1.0
IsValidGitHubURL checks whether Repo represents a valid GitHub repo and returns errors otherwise.
func (*RepoURI) SetMetadata ¶ added in v3.1.0
SetMetadata sets metadata.
Click to show internal directories.
Click to hide internal directories.