kloud

package
v0.0.0-...-c830114 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GZIP_FILE_NAME = "kloud_arch.tar.gz"

Variables

View Source
var (
	API_BUILD_STATIC              = "http://0.0.0.0:3000/api/core/build/%s/%s"
	API_BUILD_STATIC_CONTENT_TYPE = "application/javascript"
)
View Source
var (
	ErrWorkDirectory = fmt.Errorf("error bad workDirectory")
)

Functions

func Exit

func Exit(err error)

Exit close program, we have a error, show error and clear exit program

func Gzip

func Gzip(source, target string) error

func PanicHandler

func PanicHandler()

PanicHandler is called to recover from an internal panic in Kloud, and augments the standard stack trace with a more user friendly error message. PanicHandler must be called as a deferred function, and must be the first defer called at the start of a new goroutine.

Types

type Build

type Build struct {
	build_model.BuildArg
	WorkDirectoryPath string
	// contains filtered or unexported fields
}

func NewBuild

func NewBuild() (b *Build, err error)

func (*Build) Execute

func (b *Build) Execute() error

func (*Build) Validate

func (b *Build) Validate() error

Jump to

Keyboard shortcuts

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