hook

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(logger *zap.SugaredLogger, u *Updater) *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Updater

type Updater struct {
	// contains filtered or unexported fields
}

Updater can update a Git repo with an updated version of a file based on a RepositoryPushHook.

func New

func New(l logger, c client.GitClient, cfgs *config.RepoConfiguration) *Updater

New creates and returns a new Updater.

func (*Updater) Update

func (u *Updater) Update(ctx context.Context, h *quay.RepositoryPushHook) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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