flexdev

package
v0.0.0-...-3b405c5 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package flexdev contains code shared between the flexdev CLI and flexdev server.

Index

Constants

View Source
const (
	StateCreated  = state("created")
	StateFetching = state("fetching")
	StateBuilding = state("building")
	StateBuilt    = state("built")
	StateRunning  = state("running")
	StateStopped  = state("stopped")
)
View Source
const Version = "0.1"

Variables

This section is empty.

Functions

func FileSHA1

func FileSHA1(path string) (string, error)

Types

type Build

type Build struct {
	ID    string
	State state
}

type CreateBuildRequest

type CreateBuildRequest struct {
	Config []byte
	Files  DirList
}

type DirEntry

type DirEntry struct {
	Path  string
	IsDir bool
	SHA1  string
}

func (DirEntry) InDir

func (e DirEntry) InDir(dir DirEntry) bool

type DirList

type DirList []DirEntry

func ListDir

func ListDir(dirPath string) (DirList, error)

func (DirList) Diff

func (ours DirList) Diff(want DirList) (add, remove DirList)

func (DirList) Len

func (d DirList) Len() int

func (DirList) Less

func (d DirList) Less(i, j int) bool

func (DirList) Swap

func (d DirList) Swap(i, j int)

Jump to

Keyboard shortcuts

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