Documentation ¶
Overview ¶
Package mock provides an in-memory implementation of a secret store suitable for unit testing.
Index ¶
Constants ¶
View Source
const PluginKey = plugins.PluginInterface + ".porter.cosign"
Variables ¶
This section is empty.
Functions ¶
func NewPlugin ¶
func NewPlugin(c *portercontext.Context, rawCfg interface{}) (plugin.Plugin, error)
Types ¶
type Cosign ¶
type Cosign struct { PublicKey string PrivateKey string RegistryMode string Experimental bool InsecureRegistry bool }
Signer implements an in-memory signer for testing.
func NewSigner ¶
func NewSigner(c *portercontext.Context, cfg PluginConfig) *Cosign
type PluginConfig ¶
type PluginConfig struct { //theses are paths PublicKey string `mapstructure:"publickey,omitempty"` PrivateKey string `mapstructure:"privatekey,omitempty"` RegistryMode string `mapstructure:"registrymode,omitempty"` Experimental bool `mapstructure:"experimental,omitempty"` InsecureRegistry bool `mapstructure:"insecureregistry,omitempty"` }
Click to show internal directories.
Click to hide internal directories.