binary

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: BSD-3-Clause Imports: 1 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 determining profiles is specifically not specified and left to the implementation of the interface that generates the description.

func (Description) VDLIsZero

func (x Description) VDLIsZero() bool

func (*Description) VDLRead

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

func (Description) VDLReflect

func (Description) VDLReflect(struct {
	Name string `vdl:"v.io/v23/services/binary.Description"`
})

func (Description) VDLWrite

func (x Description) VDLWrite(enc vdl.Encoder) 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) VDLIsZero

func (x PartInfo) VDLIsZero() bool

func (*PartInfo) VDLRead

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

func (PartInfo) VDLReflect

func (PartInfo) VDLReflect(struct {
	Name string `vdl:"v.io/v23/services/binary.PartInfo"`
})

func (PartInfo) VDLWrite

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

Jump to

Keyboard shortcuts

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