handler

package
v0.0.0-...-fdf59ed Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration interface {
	configuration.Provider
}

Configuration .

type Handler

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

Handler .

func New

func New(r Registry, c Configuration, opts ...Option) *Handler

New Handler instance

func (*Handler) Update

func (h *Handler) Update(e *orb.Extraction, update *orb.Update) error

Update an orb

func (*Handler) UpdateAll

func (h *Handler) UpdateAll() error

UpdateAll orbs

type Option

type Option func(handler *Handler)

Option for Handler

func WithPullRequestCreation

func WithPullRequestCreation() Option

WithPullRequestCreation .

type Registry

type Registry interface {
	Logger() io.Writer
	Git() git.Git
	Filesystem() filesystem.Filesystem
	PullRequest() pullrequest.Creator
	Extraction() (*orb.Extraction, error)
}

Registry for handler

Jump to

Keyboard shortcuts

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