Documentation ¶
Index ¶
- type CertHandler
- type Client
- func (client *Client) ApplyCertificate(nodeID, certType string, cert []byte) (certURL, serial string, err error)
- func (client *Client) Clear(nodeID, certType string) error
- func (client *Client) Close() (err error)
- func (client *Client) CreateKey(nodeID, certType, subject, password string) (csr []byte, err error)
- func (client *Client) EncryptDisk(nodeID, password string) error
- func (client *Client) FinishProvisioning(nodeID string) error
- func (client *Client) GetCertTypes(nodeID string) (certTypes []string, err error)
- func (client *Client) GetRemoteNodes() []string
- func (client *Client) SetOwner(nodeID, certType, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertHandler ¶
type CertHandler interface {
GetCertificate(certType string, issuer []byte, serial string) (certURL, keyURL string, err error)
}
CertHandler interface.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client IAM client instance.
func New ¶
func New( cfg *config.Config, cryptoContext *cryptutils.CryptoContext, certHandler CertHandler, provisioningMode bool, ) (client *Client, err error)
New creates new IAM client instance.
func (*Client) ApplyCertificate ¶
func (*Client) EncryptDisk ¶
func (*Client) FinishProvisioning ¶
func (*Client) GetCertTypes ¶
func (*Client) GetRemoteNodes ¶
Click to show internal directories.
Click to hide internal directories.