services

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApiEndpoints

func CreateApiEndpoints(router *mux.Router,
	authFunc func(h http.HandlerFunc) http.HandlerFunc,
	dnsHandler func(serv RestService) http.HandlerFunc,
	logger log.Logger,
	hostBaseUrl string,
	epType EndPointType,
	configuration interface{},
	dataManager model.RepositoryDataManager) error

Types

type EndPointType

type EndPointType byte
const (
	RepositoryEndpoint EndPointType = iota + 1
)

type RestService

type RestService interface {
	Create(w http.ResponseWriter, r *http.Request)
	Read(w http.ResponseWriter, r *http.Request)
	Update(w http.ResponseWriter, r *http.Request)
	Delete(w http.ResponseWriter, r *http.Request)
}

func NewV1RegistryRootRestService

func NewV1RegistryRootRestService(logger log.Logger, hostBaseUrl string, configuration model.KubeRepoConfig, dataManager model.RepositoryDataManager) RestService

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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