Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 }
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) 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. |
Click to show internal directories.
Click to hide internal directories.