Versions in this module Expand all Collapse all v0 v0.1.0 May 2, 2021 Changes in this version + var ErrCommitNotFound = errors.New("notfound") + var ErrNoAvailablePort = errors.New("noport") + var ErrRepositoryNotSync = errors.New("notsync") + var ErrServiceNotFound = errors.New("notfound") + func Logging(log logr.Logger, next http.Handler) http.Handler + func NewLogger(name string) logr.Logger + func NewReverseProxy(u Upstream) http.HandlerFunc + func Startup(version, commit, date, builtBy string) + type CronService struct + func NewCronService() *CronService + func (c *CronService) Run(ctx context.Context) error + type DefaultUpstream struct + Default *string + Versions map[string]HTTPProcess + func (u *DefaultUpstream) GetDefault() (string, error) + func (u *DefaultUpstream) Lookup(service string) (string, *exec.Cmd, error) + func (u *DefaultUpstream) NextPort() (string, error) + func (u *DefaultUpstream) Register(name, version string, process HTTPProcess, def bool) + func (u *DefaultUpstream) SetDefault(name, version string) error + func (u *DefaultUpstream) Unregister(name, version string) + type GitServer struct + func NewGitServer(repository, head string, upstream Upstream, action chan<- func()) (*GitServer, error) + func (g *GitServer) Update(repo string) + func (g *GitServer) Updater(next http.Handler) http.Handler + type HTTPListener struct + func NewHTTPListener() *HTTPListener + func (l *HTTPListener) Run(ctx context.Context, addr string, handler http.Handler) error + type HTTPProcess struct + Addr string + Cmd *exec.Cmd + type SignalHandler struct + func NewSignalHandler() *SignalHandler + func (c *SignalHandler) Run(ctx context.Context, cancel context.CancelFunc) error + type StateMachine struct + func NewStateMachine() *StateMachine + func (m *StateMachine) Run(ctx context.Context) error + type StoreService struct + func NewStoreService(workspace string) *StoreService + func (m *StoreService) Run(ctx context.Context) error + type Updater interface + Update func(repo string) (string, error) + type Upstream interface + GetDefault func() (string, error) + Lookup func(string) (string, *exec.Cmd, error) + NextPort func() (string, error) + Register func(string, string, HTTPProcess, bool) + SetDefault func(string, string) error + Unregister func(string, string) + func NewUpstream() Upstream