Documentation ¶
Index ¶
- Variables
- func Init(ctx context.Context, r *mux.Router, domain, repo string) error
- func Names() []string
- func NotFound(w http.ResponseWriter, _ *http.Request)
- func Providers() []string
- func Register(name string, factory ProviderFactory)
- func Scheme(r *http.Request) string
- type ArtifactFactory
- type Client
- type Deleter
- type HandlerFunc
- type Provider
- type ProviderFactory
- type Puller
- type Pusher
- type Route
- type Setuper
- type Signer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyConfigured = errors.New("repository already configured")
View Source
var ErrUnknownProvider = errors.New("unknown provider")
Functions ¶
func Register ¶
func Register(name string, factory ProviderFactory)
Types ¶
type ArtifactFactory ¶
type HandlerFunc ¶
type HandlerFunc func(repo string) http.HandlerFunc
func Push ¶
func Push(fn ArtifactFactory) HandlerFunc
type Provider ¶
type Provider interface { Routes() []*Route Repository() storage.Repository }
type Route ¶
type Route struct { Method string Path string Handler HandlerFunc }
Click to show internal directories.
Click to hide internal directories.