notation

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package notation provides an implementation of a signing plugin using the users's local notation installation

Index

Constants

View Source
const PluginKey = plugins.PluginInterface + ".porter.notation"

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(c *portercontext.Context, rawCfg interface{}) (plugin.Plugin, error)

Types

type Plugin

type Plugin struct {
	signing.Signer
}

Plugin is the plugin wrapper for accessing secrets from a local filesystem.

type PluginConfig

type PluginConfig struct {
	SigningKey       string `mapstructure:"key,omitempty"`
	InsecureRegistry bool   `mapstructure:"insecureregistry,omitempty"`
}

type Signer

type Signer struct {

	// Need the key we want to use
	SigningKey       string
	InsecureRegistry bool
}

Signer implements an in-memory signer for testing.

func NewSigner

func NewSigner(c *portercontext.Context, cfg PluginConfig) *Signer

func (*Signer) Connect

func (s *Signer) Connect(ctx context.Context) error

func (*Signer) Sign

func (s *Signer) Sign(ctx context.Context, ref string) error

func (*Signer) Verify

func (s *Signer) Verify(ctx context.Context, ref string) error

Jump to

Keyboard shortcuts

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