source

package
Version: v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrdersDir     = "orders" // w/o trailing slash
	SourceDir     = "src"
	SourceArchive = "src.tgz"
	PackageDir    = "pkg"
)

Variables

This section is empty.

Functions

func ExecDir

func ExecDir(workDir string) string

Types

type Git

type Git struct {
}

func (Git) Clone

func (git Git) Clone(orderID string) error

type Order

type Order string

func (Order) Fetch

func (order Order) Fetch(orderID string) error

fetches files from a previous order into workdir/id/<name>

type Paths

type Paths []string

func (Paths) Copy

func (paths Paths) Copy(orderID string) error

copies files or directories into workdir/id/<name>

type Source

type Source struct {
	Paths *Paths `json:"paths"`
	Zip   *Zip   `json:"zip"`
}

type Zip

type Zip string // TODO change to []byte?

func (Zip) Store

func (zip Zip) Store(orderID string) error

Decode base64 encoded zip archive and write it to order directory

Jump to

Keyboard shortcuts

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