deployer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 22 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripArchive

func StripArchive(a *compiler.Archive) *compiler.Archive

Types

type Config

type Config struct {
	ConcurrentStorageUploads int
	IndexBucket              string
	PkgBucket                string
	PkgProtocol              string
	PkgHost                  string
}

type DeployOutput

type DeployOutput struct {
	*builder.CommandOutput
	MainHash, IndexHash []byte
}

type Deployer

type Deployer struct {
	// contains filtered or unexported fields
}

func New

func New(session *session.Session, send func(services.Message), index map[string]map[bool]string, prelude map[bool]string, config Config) *Deployer

func (*Deployer) Deploy

func (d *Deployer) Deploy(ctx context.Context, path string, index IndexType, minified map[bool]bool) (map[bool]*DeployOutput, error)

Deploy compiles and deploys path.

func (*Deployer) Update

func (d *Deployer) Update(ctx context.Context, source map[string]map[string]string, cache map[string]string, min bool) error

type IndexType

type IndexType int
const (
	HashIndex IndexType = iota
	PathIndex
)

type IndexVars

type IndexVars struct {
	Path   string
	Hash   string
	Script string
}

type MainVars

type MainVars struct {
	Path        string
	Json        string
	PkgHost     string
	PkgProtocol string
}

type PkgJson

type PkgJson struct {
	Path string `json:"path"`
	Hash string `json:"hash"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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