abi

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arch

type Arch struct {
	Suffix   string
	Provides Links
	Uses     Links
}

Arch bundles all of the symbols and libraries for a given architecture

func NewArch

func NewArch(suffix string) Arch

NewArch returns a new empty Architecture

func (*Arch) Resolve

func (a *Arch) Resolve() []string

Resolve unknown libraries

func (*Arch) ResolveMissing

func (a *Arch) ResolveMissing(a2 Arch) []string

ResolveMissing unknown libraries from a search of the missing libraries

func (Arch) Save

func (a Arch) Save(path string) error

Save writes an architecture to disk

type Links struct {
	Libs map[string]int
	Syms map[string]Symbols
}

Links models the linkage between libraries and symbols

func NewLinks() Links

NewLinks creates a new Links and its maps

func (Links) Prune

func (l Links) Prune(excludes Links)

Prune removes a set of related Links from another set of links

func (Links) Resolve

func (l Links) Resolve(provided Links) (missing []string)

Resolve will fix up any links where the library is unknown

func (Links) Save

func (l Links) Save(path, infix, suffix string) error

Save writes a Links struct out to files as needed

type Report

type Report map[string]Arch

Report contains one or more architecture descriptions

func (Report) Add

func (r Report) Add(root, path string) error

Add the specified path to the report

func (Report) AddFile

func (r Report) AddFile(in io.ReaderAt, name string) error

AddFile adds the specified file to the report

func (Report) Resolve

func (r Report) Resolve() (missing []string, err error)

Resolve missing libraries

func (Report) Save

func (r Report) Save(path string) error

Save writes a report to disk

type Symbols

type Symbols []string

Symbols are lists of Symbols

func (Symbols) Len

func (ss Symbols) Len() int

Len gives the length of Symbols for sorting

func (Symbols) Less

func (ss Symbols) Less(i, j int) bool

Less compares Symbols for sorting

func (Symbols) Swap

func (ss Symbols) Swap(i, j int)

Swap switches entries for sorting

Jump to

Keyboard shortcuts

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