Documentation ¶
Overview ¶
Package archive provides the logic for Gatecheck Bundles
Index ¶
- Constants
- func TarGzipBundle(dst io.Writer, bundle *Bundle) (int64, error)
- func UntarGzipBundle(src io.Reader, bundle *Bundle) error
- type Bundle
- func (b *Bundle) Add(content []byte, label string, tags []string)
- func (b *Bundle) AddFrom(r io.Reader, label string, properties map[string]string) error
- func (b *Bundle) Content() string
- func (b *Bundle) Delete(label string)deprecated
- func (b *Bundle) FileBytes(fileLabel string) []byte
- func (b *Bundle) FileSize(fileLabel string) int
- func (b *Bundle) Manifest() Manifest
- func (b *Bundle) Remove(label string)
- func (b *Bundle) WriteFileTo(w io.Writer, fileLabel string) (int64, error)
- type Manifest
Constants ¶
View Source
const BundleVersion = "1"
BundleVersion the version support by this archive format
View Source
const DefaultBundleFilename = "gatecheck-bundle.tar.gz"
DefaultBundleFilename the bundle name to be used as a default
View Source
const FileType = "Gatecheck Bundle"
FileType in plain text
View Source
const ManifestFilename = "gatecheck-manifest.json"
ManifestFilename the file name to be used as a default
Variables ¶
This section is empty.
Functions ¶
func TarGzipBundle ¶ added in v0.4.0
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
Bundle uses tar and gzip to collect reports and files into a single file
Click to show internal directories.
Click to hide internal directories.