Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
Types ¶
type Config ¶
type Config struct { Addr string Certfile string Keyfile string Repo ManifestRepository }
type ManifestHandler ¶
type ManifestHandler struct {
ManifestRepository ManifestRepository
}
func (*ManifestHandler) GetAllManifestMetaData ¶
func (h *ManifestHandler) GetAllManifestMetaData(w http.ResponseWriter, r *http.Request)
func (*ManifestHandler) GetManifest ¶
func (h *ManifestHandler) GetManifest(w http.ResponseWriter, r *http.Request)
func (*ManifestHandler) GetManifestMetaData ¶
func (h *ManifestHandler) GetManifestMetaData(w http.ResponseWriter, r *http.Request)
type ManifestRepository ¶
type ManifestRepository interface { FindAllManifestMetaData() ([]manifiesta.Metadata, error) FindManifestMetaData(manifest string) (manifiesta.Metadata, bool, error) FindManifest(manifest string) (manifiesta.Manifest, bool, error) }
ManifestRepostiory is the source of manifest data
Click to show internal directories.
Click to hide internal directories.