git

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGitRemoteNotReachable = apperr.New("git_remote_not_reachable")
	ErrGitBranchNotFound     = apperr.New("git_branch_not_found")
	ErrGitCloneFailed        = errors.New("git_clone_failed")
	ErrGitResolveFailed      = errors.New("git_resolve_failed")
	ErrGitCheckoutFailed     = errors.New("git_checkout_failed")
)

Functions

func New

func New(options Options, reader domain.AppsReader) trigger.Trigger

Builds a new trigger to process git deployments

Types

type Options

type Options interface {
	AppsDir() string
	LogsDir() string
}

type Payload

type Payload struct {
	Branch string              `json:"branch"`
	Hash   monad.Maybe[string] `json:"hash"`
}

Jump to

Keyboard shortcuts

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