Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct { ID string `json:"id"` Project string `json:"project"` PEM string `json:"pem"` }
PrivateKey represents a private key managed by padl
func NewPrivateKey ¶
func NewPrivateKey(bits int, project string) (*PrivateKey, error)
NewPrivateKey is the constructor for the padl PrivateKey object
func (*PrivateKey) HideSecret ¶
func (k *PrivateKey) HideSecret()
HideSecret simply changes the Key object such that the (secret) private key is no longer visible
func (*PrivateKey) PrivRSA ¶
func (k *PrivateKey) PrivRSA() (*rsa.PrivateKey, error)
PrivRSA returns the materialized RSA private key corresponding to the padl-managed Key object
func (*PrivateKey) Pub ¶
func (k *PrivateKey) Pub() (*PublicKey, error)
Pub returns the materialized padl-managed Public Key object corresponding to this privatekey
type PublicKey ¶
PublicKey represents a public key managed by padl
func NewPublicKey ¶
NewPublicKey is the constructor for the padl PublicKey object
Click to show internal directories.
Click to hide internal directories.