Documentation ¶
Index ¶
- func DeleteTemporaryFile(path string) error
- func DeregisterInternalURL(path string)
- func Download(url URL, temporaryPathPattern string) (*os.File, error)
- func DownloadTo(url URL, path string) error
- func GetFormat(path string) string
- func ReadARD(url URL, locate bool) (ard.Value, ard.Locator, error)
- func ReadBytes(url URL) ([]byte, error)
- func ReadString(url URL) (string, error)
- func RegisterInternalURL(path string, content string) error
- func Size(url URL) (int64, error)
- func UpdateInternalURL(path string, content string)
- type ContainerImageLayerDecoder
- type Context
- func (self *Context) GetCredentials(host string) *Credentials
- func (self *Context) GetHTTPRoundTripper(host string) http.RoundTripper
- func (self *Context) Open(url URL) (*os.File, error)
- func (self *Context) Release() error
- func (self *Context) SetCredentials(host string, username string, password string, token string)
- func (self *Context) SetHTTPRoundTripper(host string, httpRoundTripper http.RoundTripper)
- type Credentials
- type DockerURL
- func (self *DockerURL) Context() *Context
- func (self *DockerURL) Format() string
- func (self *DockerURL) Key() string
- func (self *DockerURL) Open() (io.ReadCloser, error)
- func (self *DockerURL) Origin() URL
- func (self *DockerURL) Relative(path string) URL
- func (self *DockerURL) RemoteOptions() []remote.Option
- func (self *DockerURL) String() string
- func (self *DockerURL) WriteLayer(writer io.Writer) error
- func (self *DockerURL) WriteTarball(writer io.Writer) error
- type FileURL
- type InternalURL
- func NewInternalURL(path string, context *Context) *InternalURL
- func NewValidInternalURL(path string, context *Context) (*InternalURL, error)
- func NewValidRelativeInternalURL(path string, origin *InternalURL) (*InternalURL, error)
- func ReadToInternalURL(path string, reader io.Reader) (*InternalURL, error)
- func ReadToInternalURLFromStdin(format string) (*InternalURL, error)
- func (self *InternalURL) Context() *Context
- func (self *InternalURL) Format() string
- func (self *InternalURL) Key() string
- func (self *InternalURL) Open() (io.ReadCloser, error)
- func (self *InternalURL) Origin() URL
- func (self *InternalURL) Relative(path string) URL
- func (self *InternalURL) String() string
- type NetworkURL
- func (self *NetworkURL) Context() *Context
- func (self *NetworkURL) Format() string
- func (self *NetworkURL) Key() string
- func (self *NetworkURL) Open() (io.ReadCloser, error)
- func (self *NetworkURL) Origin() URL
- func (self *NetworkURL) Relative(path string) URL
- func (self *NetworkURL) String() string
- type URL
- type ZipEntryReader
- type ZipReader
- type ZipURL
- func NewValidRelativeZipURL(path string, origin *ZipURL) (*ZipURL, error)
- func NewValidZipURL(path string, archiveUrl URL) (*ZipURL, error)
- func NewZipURL(path string, archiveUrl URL) *ZipURL
- func ParseValidZipURL(url string, context *Context) (*ZipURL, error)
- func ParseZipURL(url string, context *Context) (*ZipURL, error)
- func (self *ZipURL) Context() *Context
- func (self *ZipURL) Format() string
- func (self *ZipURL) Key() string
- func (self *ZipURL) Open() (io.ReadCloser, error)
- func (self *ZipURL) OpenArchive() (*ZipReader, error)
- func (self *ZipURL) Origin() URL
- func (self *ZipURL) Relative(path string) URL
- func (self *ZipURL) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteTemporaryFile ¶
func DeregisterInternalURL ¶ added in v0.1.15
func DeregisterInternalURL(path string)
func DownloadTo ¶
func ReadString ¶
func RegisterInternalURL ¶
func UpdateInternalURL ¶ added in v0.1.15
Types ¶
type ContainerImageLayerDecoder ¶
type ContainerImageLayerDecoder struct {
// contains filtered or unexported fields
}
func NewContainerImageLayerDecoder ¶
func NewContainerImageLayerDecoder(reader io.Reader) *ContainerImageLayerDecoder
func (*ContainerImageLayerDecoder) Decode ¶
func (self *ContainerImageLayerDecoder) Decode() io.Reader
func (*ContainerImageLayerDecoder) Drain ¶
func (self *ContainerImageLayerDecoder) Drain()
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() *Context
func (*Context) GetCredentials ¶ added in v0.1.6
func (self *Context) GetCredentials(host string) *Credentials
Not thread-safe
func (*Context) GetHTTPRoundTripper ¶ added in v0.1.4
func (self *Context) GetHTTPRoundTripper(host string) http.RoundTripper
Not thread-safe
func (*Context) SetCredentials ¶ added in v0.1.6
Not thread-safe
func (*Context) SetHTTPRoundTripper ¶ added in v0.1.4
func (self *Context) SetHTTPRoundTripper(host string, httpRoundTripper http.RoundTripper)
Not thread-safe
type Credentials ¶ added in v0.1.6
type DockerURL ¶
func NewValidDockerURL ¶
func (*DockerURL) RemoteOptions ¶ added in v0.1.6
type FileURL ¶
type FileURL struct { Path string // contains filtered or unexported fields }
func NewFileURL ¶
func NewValidRelativeFileURL ¶
type InternalURL ¶
func NewInternalURL ¶
func NewInternalURL(path string, context *Context) *InternalURL
func NewValidInternalURL ¶
func NewValidInternalURL(path string, context *Context) (*InternalURL, error)
func NewValidRelativeInternalURL ¶
func NewValidRelativeInternalURL(path string, origin *InternalURL) (*InternalURL, error)
func ReadToInternalURL ¶
func ReadToInternalURL(path string, reader io.Reader) (*InternalURL, error)
func ReadToInternalURLFromStdin ¶
func ReadToInternalURLFromStdin(format string) (*InternalURL, error)
func (*InternalURL) String ¶
func (self *InternalURL) String() string
URL interface fmt.Stringer interface
type NetworkURL ¶
func NewNetworkURL ¶
func NewNetworkURL(neturl *neturlpkg.URL, context *Context) *NetworkURL
func NewValidNetworkURL ¶
func NewValidNetworkURL(neturl *neturlpkg.URL, context *Context) (*NetworkURL, error)
func NewValidRelativeNetworkURL ¶
func NewValidRelativeNetworkURL(path string, origin *NetworkURL) (*NetworkURL, error)
func (*NetworkURL) String ¶
func (self *NetworkURL) String() string
URL interface fmt.Stringer interface
type URL ¶
type ZipEntryReader ¶
type ZipEntryReader struct { EntryReader io.ReadCloser ArchiveReader *ZipReader }
func NewZipEntryReader ¶
func NewZipEntryReader(entryReader io.ReadCloser, archiveReader *ZipReader) *ZipEntryReader
Click to show internal directories.
Click to hide internal directories.