codesign

package
v0.0.0-...-6888737 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuiltinMachoInspector

type BuiltinMachoInspector struct{}

func (*BuiltinMachoInspector) ImportedLibraries

func (i *BuiltinMachoInspector) ImportedLibraries(fname string) ([]string, error)

type Checker

type Checker struct {
	Logger         Logger
	MachoInspector MachoInspector
}

func NewCodesign

func NewCodesign(opts *Options) *Checker

func (*Checker) Verify

func (c *Checker) Verify(fname string) error

func (*Checker) VerifyRecursive

func (c *Checker) VerifyRecursive(fname string) (map[string]error, error)

VerifyRecursive verifies a file's signature and that of all the libs it imports

type InvalidSignature

type InvalidSignature struct {
	Err   error
	Fname string
}

func (*InvalidSignature) Error

func (e *InvalidSignature) Error() string

type Logger

type Logger interface {
	Debugw(msg string, keysAndValues ...interface{})
}

type MachoInspector

type MachoInspector interface {
	ImportedLibraries(fname string) ([]string, error)
}

type Options

type Options struct {
	Logger         Logger
	MachoInspector MachoInspector
}

Jump to

Keyboard shortcuts

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