build

package
v5.2.1-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: LGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateImageName

func CreateImageName(serviceID, deployversion string) string

CreateImageName create image name

func GetARGs

func GetARGs(buildEnvs map[string]string) map[string]*string

GetARGs get args and parse value

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 ErrorBuild

type ErrorBuild struct {
	Code int
}

ErrorBuild build error

func (*ErrorBuild) Error

func (e *ErrorBuild) Error() string

type HostAlias

type HostAlias struct {
	// IP address of the host file entry.
	IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"`
	// Hostnames for the above IP address.
	Hostnames []string `json:"hostnames,omitempty" protobuf:"bytes,2,rep,name=hostnames"`
}

HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.

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 {
	RbdNamespace  string
	GRDataPVCName string
	CachePVCName  string
	CacheMode     string
	CachePath     string
	TenantID      string
	SourceDir     string
	CacheDir      string
	TGZDir        string
	RepositoryURL string
	Branch        string
	ServiceAlias  string
	ServiceID     string
	DeployVersion string
	Runtime       string
	ServerType    string
	Commit        Commit
	Lang          code.Lang
	BuildEnvs     map[string]string
	Logger        event.Logger
	DockerClient  *client.Client
	KubeClient    kubernetes.Interface
	ExtraHosts    []string
	HostAlias     []HostAlias
	Ctx           context.Context
}

Request build input

func (*Request) CacheVolumeSource

func (r *Request) CacheVolumeSource() corev1.VolumeSource

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