forked from TrueCloudLab/certificates
Rename interface method.
This commit is contained in:
parent
5a8f78d9d0
commit
62dab7b6b8
2 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ func (c *Collection) Store(p *Provisioner) error {
|
||||||
return errors.New("cannot add multiple provisioners with the same id")
|
return errors.New("cannot add multiple provisioners with the same id")
|
||||||
}
|
}
|
||||||
// Store EncryptedKey if defined
|
// Store EncryptedKey if defined
|
||||||
if kid, key, ok := p.EncryptedKey(); ok {
|
if kid, key, ok := p.GetEncryptedKey(); ok {
|
||||||
c.byKey.Store(kid, key)
|
c.byKey.Store(kid, key)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
// Interface is the interface that all provisioner types must implement.
|
// Interface is the interface that all provisioner types must implement.
|
||||||
type Interface interface {
|
type Interface interface {
|
||||||
ID() string
|
ID() string
|
||||||
EncryptedKey() (kid string, key string, ok bool)
|
GetEncryptedKey() (kid string, key string, ok bool)
|
||||||
Init(claims *Claims) error
|
Init(claims *Claims) error
|
||||||
Authorize(token string) ([]SignOption, error)
|
Authorize(token string) ([]SignOption, error)
|
||||||
}
|
}
|
||||||
|
@ -44,9 +44,9 @@ func (p *Provisioner) ID() string {
|
||||||
return p.base.ID()
|
return p.base.ID()
|
||||||
}
|
}
|
||||||
|
|
||||||
// EncryptedKey returns the base provisioner encrypted key if it's defined.
|
// GetEncryptedKey returns the base provisioner encrypted key if it's defined.
|
||||||
func (p *Provisioner) EncryptedKey() (string, string, bool) {
|
func (p *Provisioner) GetEncryptedKey() (string, string, bool) {
|
||||||
return p.base.EncryptedKey()
|
return p.base.GetEncryptedKey()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type return the provisioners type.
|
// Type return the provisioners type.
|
||||||
|
|
Loading…
Reference in a new issue