Documentation ¶
Overview ¶
Package binary defines types for describing executable binaries.
Index ¶
- Constants
- type Description
- type DescriptionTarget
- func (t *DescriptionTarget) FinishField(_, _ vdl.Target) error
- func (t *DescriptionTarget) FinishFields(_ vdl.FieldsTarget) error
- func (t *DescriptionTarget) StartField(name string) (key, field vdl.Target, _ error)
- func (t *DescriptionTarget) StartFields(tt *vdl.Type) (vdl.FieldsTarget, error)
- func (t *DescriptionTarget) ZeroField(name string) error
- type PartInfo
- type PartInfoTarget
- func (t *PartInfoTarget) FinishField(_, _ vdl.Target) error
- func (t *PartInfoTarget) FinishFields(_ vdl.FieldsTarget) error
- func (t *PartInfoTarget) StartField(name string) (key, field vdl.Target, _ error)
- func (t *PartInfoTarget) StartFields(tt *vdl.Type) (vdl.FieldsTarget, error)
- func (t *PartInfoTarget) ZeroField(name string) error
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 (*Description) MakeVDLTarget ¶
func (m *Description) MakeVDLTarget() vdl.Target
func (Description) VDLIsZero ¶
func (x Description) VDLIsZero() bool
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) MakeVDLTarget ¶
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
Click to show internal directories.
Click to hide internal directories.