Documentation ¶
Index ¶
- Variables
- type Catalog
- type DistributionRepository
- type Index
- type Layer
- type Lister
- func (s *Lister) CSS(writer http.ResponseWriter, _ *http.Request)
- func (s *Lister) Index(writer http.ResponseWriter, req *http.Request)
- func (s *Lister) Initialise(router *mux.Router)
- func (s *Lister) JS(writer http.ResponseWriter, _ *http.Request)
- func (s *Lister) ListingIndex(writer http.ResponseWriter, req *http.Request)
- func (s *Lister) OK(writer http.ResponseWriter, _ *http.Request)
- type ListingIndex
- type Manifest
- type Repository
- type RepositoryList
- type Tag
- type TokenProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ShowIndex = flag.Bool("show-index", false, "Show an index page, rather than just a 200 response") ShowListings = flag.Bool("show-listings", true, "Index page lists public repositories") PullHostname = flag.String("pull-hostname", "", "Hostname to show on listings and info page, will default to the request hostname") RegistryHost = flag.String("registry-host", "http://localhost:8080", "The URL of the registry being listed") RefreshInterval = flag.Duration("refresh-interval", 60*time.Second, "The time between registry refreshes") )
Functions ¶
This section is empty.
Types ¶
type DistributionRepository ¶
type Lister ¶
type Lister struct { TokenProvider TokenProvider PublicPrefixes []string // contains filtered or unexported fields }
func (*Lister) Initialise ¶
func (*Lister) ListingIndex ¶
func (s *Lister) ListingIndex(writer http.ResponseWriter, req *http.Request)
type ListingIndex ¶
type ListingIndex struct { Title string Repositories *RepositoryList LastPolled time.Time }
type Repository ¶
type RepositoryList ¶
type RepositoryList struct {
Repositories []*Repository
}
type TokenProvider ¶
Click to show internal directories.
Click to hide internal directories.