quill

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSigned

func IsSigned(path string) (bool, error)

func Notarize

func Notarize(path string, cfg NotarizeConfig) (notary.SubmissionStatus, error)

func SetBus

func SetBus(b *partybus.Bus)

SetBus sets the event bus for all library bus publish events onto (in-library subscriptions are not allowed).

func SetLogger

func SetLogger(logger logger.Logger)

SetLogger sets the logger object used for all logging calls.

func Sign

func Sign(cfg SigningConfig) error

Types

type NotarizeConfig

type NotarizeConfig struct {
	StatusConfig notary.StatusConfig
	HTTPTimeout  time.Duration
	TokenConfig  notary.TokenConfig
}

func NewNotarizeConfig

func NewNotarizeConfig(issuer, privateKeyID, privateKey string) *NotarizeConfig

func (*NotarizeConfig) WithStatusConfig

func (c *NotarizeConfig) WithStatusConfig(cfg notary.StatusConfig) *NotarizeConfig

type SigningConfig

type SigningConfig struct {
	SigningMaterial pki.SigningMaterial
	Identity        string
	Path            string
	Entitlements    string
}

func NewSigningConfigFromP12

func NewSigningConfigFromP12(binaryPath string, p12Content load.P12Contents, failWithoutFullChain bool) (*SigningConfig, error)

func NewSigningConfigFromPEMs

func NewSigningConfigFromPEMs(binaryPath, certificate, privateKey, password string, failWithoutFullChain bool) (*SigningConfig, error)

func (*SigningConfig) WithEntitlements

func (c *SigningConfig) WithEntitlements(path string) *SigningConfig

func (*SigningConfig) WithIdentity

func (c *SigningConfig) WithIdentity(id string) *SigningConfig

func (*SigningConfig) WithTimestampServer

func (c *SigningConfig) WithTimestampServer(url string) *SigningConfig

Directories

Path Synopsis
Package event provides event types for all events that the library published onto the event bus.
Package event provides event types for all events that the library published onto the event bus.
pki

Jump to

Keyboard shortcuts

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