packs

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "git-pipe-app" // prefix for names of volumes and applications
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	ID   string // docker network hash
	Name string // docker network human readable name
}

Network definition in docker.

type Pack

type Pack interface {
	// Volumes defined in repo and which should be added to backup.
	Volumes(ctx context.Context) ([]string, error)
	// Build package.
	Build(ctx context.Context, env map[string]string) error
	// Start package (also should stop previous instances if possible) and returns exposed services.
	Start(ctx context.Context, env map[string]string) ([]Service, error)
	// Stop package. Will be executed only after successful Start.
	Stop(ctx context.Context) error
	// String representation of package type.
	String() string
}

Pack defines repo-specific package implementation.

type Service

type Service struct {
	Group     string   // package name / group name. Should be unique within one instance of git-pipe.
	Name      string   // service name. Should be unique within one group.
	Domain    string   // suggested domain name.
	Addresses []string // IP:PORT addresses of service (could be several in case of scaling)
}

Service exposed by package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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