git

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 19 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")
	ErrAppRetrievedFailed    = errors.New("app_retrieved_failed")
	ErrGitCloneFailed        = errors.New("git_clone_failed")
	ErrGitResolveFailed      = errors.New("git_resolve_failed")
	ErrGitCheckoutFailed     = errors.New("git_checkout_failed")
)

Functions

func New

func New(reader domain.AppsReader) source.Source

Builds a new trigger to process git deployments

Types

type Data

type Data struct {
	Branch string `json:"branch"`
	Hash   string `json:"hash"`
}

func (Data) Kind added in v1.2.0

func (p Data) Kind() string

func (Data) NeedVCS

func (p Data) NeedVCS() bool

func (Data) Value

func (p Data) Value() (driver.Value, error)

type Request

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

Public request to trigger a git deployment

Jump to

Keyboard shortcuts

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