pipe

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Domain      string        // (optional) root domain
	Network     string        // docker network name that will be used for communication. Will be created if not exists
	Directory   string        // directory for cloning repos
	FQDN        bool          // generate project name based on full repo URL, otherwise only last past of path will be used
	Poll        time.Duration // poll interval
	Shutdown    time.Duration // graceful shutdown
	Backup      time.Duration // backup interval
	EventBuffer int           // ready events buffer
}

type Manager

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

func Default

func Default(ctx context.Context) (*Manager, error)

func New

func New(ctx context.Context, cfg Config) (*Manager, error)

func (*Manager) Backup

func (mgt *Manager) Backup(backuper backup.Backup)

Backup provider.

func (*Manager) DNS

func (mgt *Manager) DNS(registry dns.DNS)

DNS provider.

func (*Manager) Encrypt

func (mgt *Manager) Encrypt(encryptor cryptor.Cryptor)

Encrypt backup.

func (*Manager) Logger

func (mgt *Manager) Logger(logger internal.Logger)

Logger for manager and pipes.

func (*Manager) Name

func (mgt *Manager) Name(u url.URL) string

Name of remote source.

func (*Manager) Network

func (mgt *Manager) Network() packs.Network

Network for internal communications.

func (*Manager) Ready

func (mgt *Manager) Ready() <-chan remote.Source

Ready events.

func (*Manager) Router

func (mgt *Manager) Router(router router.Router)

Router for requests.

func (*Manager) Run

func (mgt *Manager) Run(ctx context.Context, source remote.Source, env map[string]string) error

Run pipe for defined repo. Will be block till context canceled.

Jump to

Keyboard shortcuts

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