archive

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BundleVersion = "1"
View Source
const DefaultBundleFilename = "gatecheck-bundle.tar.gz"
View Source
const FileType = "Gatecheck Bundle"
View Source
const ManifestFilename = "gatecheck-manifest.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	// contains filtered or unexported fields
}

func NewBundle

func NewBundle() *Bundle

func (*Bundle) AddFrom

func (b *Bundle) AddFrom(r io.Reader, label string, properties map[string]string) error

func (*Bundle) Delete

func (b *Bundle) Delete(label string)

func (*Bundle) FileSize

func (b *Bundle) FileSize(fileLabel string) int

func (*Bundle) Manifest

func (b *Bundle) Manifest() bundleManifest

func (*Bundle) WriteFileTo

func (b *Bundle) WriteFileTo(w io.Writer, fileLabel string) (int64, error)

type BundleDecoder

type BundleDecoder struct {
	bytes.Buffer
}

func NewBundleDecoder

func NewBundleDecoder() *BundleDecoder

func (*BundleDecoder) Decode

func (d *BundleDecoder) Decode() (any, error)

func (*BundleDecoder) DecodeFrom

func (d *BundleDecoder) DecodeFrom(r io.Reader) (any, error)

func (*BundleDecoder) FileType

func (d *BundleDecoder) FileType() string

type BundleEncoder

type BundleEncoder struct {
	// contains filtered or unexported fields
}

func NewBundleEncoder

func NewBundleEncoder(w io.Writer) *BundleEncoder

func (*BundleEncoder) Encode

func (b *BundleEncoder) Encode(bundle *Bundle) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL