Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Archive struct {
// contains filtered or unexported fields
}
Archive represents a release archive in the Thelma releases bucket
func NewArchive ¶
func (*Archive) Filename ¶
Filename returns the filename for this release archive eg. "thelma_v1.2.3_linux_amd64.tar.gz"
func (*Archive) ObjectPath ¶
ObjectPath returns the path to this release archive object in the bucket. eg. "releases/v.1.2.3/thelma_v1.2.3_linux_amd64.tar.gz"
func (*Archive) Sha256SumObjectPath ¶
Sha256SumObjectPath returns the path to a sha256sum file for this release archive eg. "releases/v.1.2.3/thelma_v1.2.3_SHA256SUMS"
type ReleaseBucket ¶
type ReleaseBucket interface { // ResolveTagOrVersion given a tag like "latest", or a semantic version // string like "1.2.3", resolve to a proper Thelma semantic version like "v1.2.3" ResolveTagOrVersion(tagOrVersion string) (string, error) // DownloadAndUnpack will download and unpack a release archive in a tmp directory, // returning the path to the unpacked release archive DownloadAndUnpack(archive Archive) (path string, err error) }
ReleaseBucket represents the Thelma releases bucket
Click to show internal directories.
Click to hide internal directories.