Documentation
¶
Overview ¶
Package source abstracts source of deployable tarballs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source interface { // SHA256 returns the expected SHA256 of the tarball. SHA256() []byte // Open returns a reader with tarballs body. // // May optionally use the given `tmp` path as a staging file. It's the // caller's responsibility to delete it later. // // The caller should also verify SHA256 of the data it reads matches SHA256(). Open(ctx context.Context, tmp string) (io.ReadCloser, error) }
Source indicates how to grab a tarball.
Click to show internal directories.
Click to hide internal directories.