Documentation ¶
Index ¶
- Constants
- func Get(ctx datacontext.Context) signing.Registry
- func Set(ctx datacontext.Context, registry signing.KeyRegistry) error
- type AttributeType
- type Config
- func (a *Config) AddPrivateKey(name string, key interface{})
- func (a *Config) AddPrivateKeyData(name string, data []byte)
- func (a *Config) AddPrivateKeyFile(name, path string, fss ...vfs.FileSystem)
- func (a *Config) AddPublicKey(name string, key interface{})
- func (a *Config) AddPublicKeyData(name string, data []byte)
- func (a *Config) AddPublicKeyFile(name, path string, fss ...vfs.FileSystem)
- func (a *Config) ApplyTo(ctx cfgcpi.Context, target interface{}) error
- func (a *Config) ApplyToRegistry(registry signing.KeyRegistry) error
- func (a *Config) GetType() string
- type KeySpec
- type RawData
Constants ¶
View Source
const ( ATTR_KEY = "github.com/mandelsoft/ocm/signing" ATTR_SHORT = "signing" )
View Source
const ( ConfigType = "keys" + cfgcpi.OCM_CONFIG_TYPE_SUFFIX ConfigTypeV1 = ConfigType + runtime.VersionSeparator + "v1" )
Variables ¶
This section is empty.
Functions ¶
func Set ¶
func Set(ctx datacontext.Context, registry signing.KeyRegistry) error
Types ¶
type AttributeType ¶
type AttributeType struct{}
func (AttributeType) Decode ¶
func (a AttributeType) Decode(data []byte, unmarshaller runtime.Unmarshaler) (interface{}, error)
func (AttributeType) Description ¶
func (a AttributeType) Description() string
func (AttributeType) Encode ¶
func (a AttributeType) Encode(v interface{}, marshaller runtime.Marshaler) ([]byte, error)
func (AttributeType) Name ¶
func (a AttributeType) Name() string
type Config ¶
type Config struct { runtime.ObjectVersionedType `json:",inline"` PublicKeys map[string]KeySpec `json:"publicKeys"` PrivateKeys map[string]KeySpec `json:"privateKeys"` }
Config describes a memory based repository interface.
func (*Config) AddPrivateKey ¶
func (*Config) AddPrivateKeyData ¶
func (*Config) AddPrivateKeyFile ¶
func (a *Config) AddPrivateKeyFile(name, path string, fss ...vfs.FileSystem)
func (*Config) AddPublicKey ¶
func (*Config) AddPublicKeyData ¶
func (*Config) AddPublicKeyFile ¶
func (a *Config) AddPublicKeyFile(name, path string, fss ...vfs.FileSystem)
func (*Config) ApplyToRegistry ¶
func (a *Config) ApplyToRegistry(registry signing.KeyRegistry) error
Click to show internal directories.
Click to hide internal directories.