common

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitFullName

func SplitFullName(fullName string) (string, string)

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

func LoadPublishers(path string) ([]Publisher, error)

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.

Jump to

Keyboard shortcuts

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