staple

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 6 Imported by: 3

Documentation

Overview

Package staple staples a notarization ticket to a file, allowing it to be validated offline. This only works for files of type "app", "dmg", or "pkg".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Staple

func Staple(ctx context.Context, opts *Options) error

Staple staples the notarization ticket to a file.

Types

type Options

type Options struct {
	// File to staple. It is stapled in-place.
	File string

	// Logger is the logger to use. If this is nil then no logging will be done.
	Logger hclog.Logger

	// BaseCmd is the base command for executing the codesign binary. This is
	// used for tests to overwrite where the codesign binary is.
	BaseCmd *exec.Cmd
}

Options are the options for creating the zip archive.

Jump to

Keyboard shortcuts

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