mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-18 09:37:02 +02:00
* added switch to extract different sources as build context * first rough implementation of aws s3 * added buildcontext package and interface * added GetBuildContext func to buildcontext.go added fallback to gcs renamed GC struct to GCS * improved the default behavior of build context retrieval * renamed gc:// to gs:// in order to follow common standards * renamed struct File to Dir and some cleanup work * moved context.tar suffix to the buildcontext processors where it is needed * added buildcontext retrieval as struct variable added fallback if prefix in bucket specifier is present * cleanup if structures * added prefix to s3 * WIP * Fixed build context bugs * refactored build context
13 lines
265 B
Go
13 lines
265 B
Go
// +build go1.8
|
|
|
|
package aws
|
|
|
|
import "net/url"
|
|
|
|
// URLHostname will extract the Hostname without port from the URL value.
|
|
//
|
|
// Wrapper of net/url#URL.Hostname for backwards Go version compatibility.
|
|
func URLHostname(url *url.URL) string {
|
|
return url.Hostname()
|
|
}
|