Skip to content

Instantly share code, notes, and snippets.

@erikh
Created October 15, 2016 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikh/ca476fa8d844e282c998a211915ad0da to your computer and use it in GitHub Desktop.
Save erikh/ca476fa8d844e282c998a211915ad0da to your computer and use it in GitHub Desktop.
package executor
import "io"
// Hook is a hook used in commit calls
type Hook func(b *Builder, id string) (string, error)
// Executor execs
type Executor interface {
User() string
WorkDir() string
Command() []string
Entrypoint() []string
ImageID() string
Commit(string, Hook) error
CheckCache(string) (bool, error)
CopyToContainer(string, io.Reader) error
CopyFromContainer(string, string) (io.Reader, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment