binary

package
v0.0.0-...-e3ab1ac Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package binary defines types for describing executable binaries.

Index

Constants

View Source
const MissingChecksum = ""
View Source
const MissingSize = int64(-1)

Variables

This section is empty.

Functions

This section is empty.

Types

type Description

type Description struct {
	// Name is the Object name of the application binary that can
	// be used to fetch the actual binary from a content server.
	Name string
	// Profiles is a set of names of compatible profiles.  Each
	// name can either be an Object name that resolves to a
	// Profile, or can be the profile's label, e.g.:
	//
	//   "profiles/google/cluster/diskfull"
	//   "linux-media"
	//
	// Application developers can specify compatible profiles by
	// hand, but we also want to be able to automatically derive
	// the matching profiles from examining the binary itself
	// (e.g. that's what Build.Describe() does).
	Profiles map[string]bool
}

Description describes a binary. Binaries are named and have been determined to run on some set of profiles. The mechanism for determing profiles is specifically not specified and left to the implementation of the interface that generates the description.

func (*Description) FillVDLTarget

func (m *Description) FillVDLTarget(t vdl.Target, tt *vdl.Type) error

func (*Description) MakeVDLTarget

func (m *Description) MakeVDLTarget() vdl.Target

func (Description) VDLIsZero

func (x Description) VDLIsZero() bool

func (*Description) VDLRead

func (x *Description) VDLRead(dec vdl.Decoder) error

func (Description) VDLWrite

func (x Description) VDLWrite(enc vdl.Encoder) error

type DescriptionTarget

type DescriptionTarget struct {
	Value *Description

	vdl.TargetBase
	vdl.FieldsTargetBase
	// contains filtered or unexported fields
}

func (*DescriptionTarget) FinishField

func (t *DescriptionTarget) FinishField(_, _ vdl.Target) error

func (*DescriptionTarget) FinishFields

func (t *DescriptionTarget) FinishFields(_ vdl.FieldsTarget) error

func (*DescriptionTarget) StartField

func (t *DescriptionTarget) StartField(name string) (key, field vdl.Target, _ error)

func (*DescriptionTarget) StartFields

func (t *DescriptionTarget) StartFields(tt *vdl.Type) (vdl.FieldsTarget, error)

func (*DescriptionTarget) ZeroField

func (t *DescriptionTarget) ZeroField(name string) error

type PartInfo

type PartInfo struct {
	// Checksum holds the hex-encoded MD5 checksum of the binary part.
	Checksum string
	// Size holds the binary part size in bytes.
	Size int64
}

PartInfo holds information describing a binary part.

func (*PartInfo) FillVDLTarget

func (m *PartInfo) FillVDLTarget(t vdl.Target, tt *vdl.Type) error

func (*PartInfo) MakeVDLTarget

func (m *PartInfo) MakeVDLTarget() vdl.Target

func (PartInfo) VDLIsZero

func (x PartInfo) VDLIsZero() bool

func (*PartInfo) VDLRead

func (x *PartInfo) VDLRead(dec vdl.Decoder) error

func (PartInfo) VDLWrite

func (x PartInfo) VDLWrite(enc vdl.Encoder) error

type PartInfoTarget

type PartInfoTarget struct {
	Value *PartInfo

	vdl.TargetBase
	vdl.FieldsTargetBase
	// contains filtered or unexported fields
}

func (*PartInfoTarget) FinishField

func (t *PartInfoTarget) FinishField(_, _ vdl.Target) error

func (*PartInfoTarget) FinishFields

func (t *PartInfoTarget) FinishFields(_ vdl.FieldsTarget) error

func (*PartInfoTarget) StartField

func (t *PartInfoTarget) StartField(name string) (key, field vdl.Target, _ error)

func (*PartInfoTarget) StartFields

func (t *PartInfoTarget) StartFields(tt *vdl.Type) (vdl.FieldsTarget, error)

func (*PartInfoTarget) ZeroField

func (t *PartInfoTarget) ZeroField(name string) error

Jump to

Keyboard shortcuts

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