build

package
v3.7.0-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var REGISTRYDOMAIN = "goodrain.me"

REGISTRYDOMAIN REGISTRY_DOMAIN

Functions

func CreateImageName

func CreateImageName(repoURL, serviceAlias, deployversion string) string

CreateImageName create image name

Types

type Build

type Build interface {
	Build(*Request) (*Response, error)
}

Build app build pack

func GetBuild

func GetBuild(lang code.Lang) (Build, error)

GetBuild GetBuild

type Commit

type Commit struct {
	User    string
	Message string
	Hash    string
}

Commit Commit

type CreaterBuild

type CreaterBuild func() (Build, error)

CreaterBuild CreaterBuild

type MediumType

type MediumType string

MediumType Build output medium type

var ImageMediumType MediumType = "image"

ImageMediumType image type

var SlugMediumType MediumType = "slug"

SlugMediumType slug type

type Request

type Request struct {
	SourceDir     string
	CacheDir      string
	RepositoryURL string
	ServiceAlias  string
	DeployVersion string
	Commit        Commit
	Lang          code.Lang
	BuildEnvs     map[string]string
	Logger        event.Logger
	DockerClient  *client.Client
}

Request build input

type Response

type Response struct {
	MediumPath string
	MediumType MediumType
}

Response build result

Jump to

Keyboard shortcuts

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