Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitFullName ¶
SplitFullName split a git FullName format to vendor and repo strings.
Types ¶
type Publisher ¶
type Publisher struct {
Id string `yaml:"id"`
Name string `yaml:"name"`
Organizations []url.URL `yaml:"orgs"`
Repositories []url.URL `yaml:"repos"`
}
func LoadPublishers ¶
LoadPublishers loads the publishers YAML file and returns a slice of Publisher.
type Repository ¶
type Repository struct {
Name string
URL url.URL
CanonicalURL url.URL
FileRawURL string
GitBranch string
Publisher Publisher
Headers map[string]string
}
Repository is a single code repository. FileRawURL contains the direct url to the raw file.
func (*Repository) GenerateID ¶
func (repo *Repository) GenerateID() string
generateID generates a hash based on unique git repo URL.
func (*Repository) GenerateSlug ¶
func (repo *Repository) GenerateSlug() string
generateSlug generates a readable unique string based on repository name.
Click to show internal directories.
Click to hide internal directories.