Documentation
¶
Overview ¶
Package archive provides the logic for Gatecheck Bundles
Index ¶
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 ¶
This section is empty.
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
type BundleDecoder ¶
BundleDecoder is used to decode bundle objects from a reader
func (*BundleDecoder) Decode ¶
func (d *BundleDecoder) Decode() (any, error)
Decode will gunzip and untar the bundle into an object, follows generic decoder pattern
func (*BundleDecoder) DecodeFrom ¶
func (d *BundleDecoder) DecodeFrom(r io.Reader) (any, error)
DecodeFrom a bundle object
type BundleEncoder ¶
type BundleEncoder struct {
// contains filtered or unexported fields
}
BundleEncoder is used to write bundles to io.Writer
func (*BundleEncoder) Encode ¶
func (b *BundleEncoder) Encode(bundle *Bundle) error
Encode to the internal writer
Click to show internal directories.
Click to hide internal directories.