Merge pull request #37380 from yui-knk/update_doc_Detect

Update documents of `Detect`
This commit is contained in:
Sebastiaan van Stijn 2018-07-05 14:49:18 +02:00 committed by GitHub
commit 8d56fa0bb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,8 +22,7 @@ import (
const ClientSessionRemote = "client-session"
// Detect returns a context and dockerfile from remote location or local
// archive. progressReader is only used if remoteURL is actually a URL
// (not empty, and not a Git endpoint).
// archive.
func Detect(config backend.BuildConfig) (remote builder.Source, dockerfile *parser.Result, err error) {
remoteURL := config.Options.RemoteContext
dockerfilePath := config.Options.Dockerfile