Created
October 15, 2016 11:33
-
-
Save erikh/ca476fa8d844e282c998a211915ad0da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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