 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathWithFragment ¶
Represent the path as /foo or /foo#bar if #bar is specified.
Types ¶
type DockerPullSource ¶
type DockerPullSource struct {
	Repository, Tag string
}
    func DockerPullSourceFromImage ¶
func DockerPullSourceFromImage(image string) *DockerPullSource
DockerPullSourceFromImage creates a *DockerPullSource from an image name (with an optional tag)
type GitHostSource ¶
type GitHostSource struct {
	Host          string
	User          string
	Repository    string
	InitialBranch string
	// Directory in which to do `docker build`.
	// Uses repository root if blank.
	ImageRoot string
}
    func (*GitHostSource) CloneURL ¶
func (s *GitHostSource) CloneURL() string
type ImageSource ¶
type ImageSource interface {
	// Build/pull/fetch a docker image and return its name as a string
	Obtain(client *docker.Client, payload []byte) (string, error)
}
    func GetSourceFromHookbot ¶
func GetSourceFromHookbot(hookbotURLStr string) (string, ImageSource, error)
func NewDockerPullSource ¶
func NewDockerPullSource(hookbotURL *url.URL) (string, ImageSource, error)
func NewGitHostSource ¶
func NewGitHostSource(hookbotURL *url.URL) (string, ImageSource, error)
 Click to show internal directories. 
   Click to hide internal directories.