mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update documents of Detect
By 0296797f0f
, `progressReader`
and `remoteURL` were removed from arguments. So developers who
use `Detect` not need to care about when `ProgressReaderFunc`
is used.
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
This commit is contained in:
parent
b0e6eedcf4
commit
0bbd476ceb
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue