Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OverwriteKeyringFile ¶
func OverwriteKeyringFile(config *AdsCertCallSignConfigList) error
Types ¶
type AdsCertCallSignConfig ¶
type AdsCertCallSignConfig struct { Domain string `json:"domain"` Realms []*AdsCertRealm `json:"realms"` }
type AdsCertCallSignConfigList ¶
type AdsCertCallSignConfigList struct {
Domains []*AdsCertCallSignConfig `json:"domains"`
}
func CreateNewKeyringFile ¶
func CreateNewKeyringFile() (*AdsCertCallSignConfigList, error)
func ReadKeyringFile ¶
func ReadKeyringFile() (*AdsCertCallSignConfigList, error)
func (*AdsCertCallSignConfigList) GetAllCallSignRealms ¶
func (p *AdsCertCallSignConfigList) GetAllCallSignRealms() []*AdsCertRealm
func (*AdsCertCallSignConfigList) GetCallSignRealm ¶
func (p *AdsCertCallSignConfigList) GetCallSignRealm(adscertCallSign string, realm string) *AdsCertRealm
type AdsCertKeyConfig ¶
type AdsCertKeyConfig struct { KeyID string `json:"key_id"` PublicKeyBase64 string `json:"public_key"` EncryptedPrivateKey string `json:"encrypted_private_key"` Status string `json:"status"` TimestampCreated string `json:"timestamp_created"` TimestampActivated string `json:"timestamp_activated"` TimestampPrimaried string `json:"timestamp_primaried"` TimestampSecondaried string `json:"timestamp_secondaried"` TimestampArchived string `json:"timestamp_archived"` KeyEncryptionKeyURI string `json:"key_encryption_key_uri"` }
type AdsCertRealm ¶
type AdsCertRealm struct { Realm string `json:"realm"` Keys []*AdsCertKeyConfig `json:"keys"` }
type KeyGenerator ¶
type KeyGenerator interface {
GenerateKeysForConfig(config *AdsCertKeyConfig) error
}
type KeyringManager ¶
type KeyringManager struct {
// contains filtered or unexported fields
}
func NewKeyringManager ¶
func NewKeyringManager(configList *AdsCertCallSignConfigList, clock clock.Clock, keyGenerator KeyGenerator) *KeyringManager
func (*KeyringManager) AssignKeys ¶
func (m *KeyringManager) AssignKeys() error
Click to show internal directories.
Click to hide internal directories.