iamclient

package
v0.0.0-...-b2cdabd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 *Client) ApplyCertificate(nodeID, certType string, cert []byte) (certURL, serial string, err error)

func (*Client) Clear

func (client *Client) Clear(nodeID, certType string) error

func (*Client) Close

func (client *Client) Close() (err error)

Close closes IAM client instance.

func (*Client) CreateKey

func (client *Client) CreateKey(nodeID, certType, subject, password string) (csr []byte, err error)

func (*Client) EncryptDisk

func (client *Client) EncryptDisk(nodeID, password string) error

func (*Client) FinishProvisioning

func (client *Client) FinishProvisioning(nodeID string) error

func (*Client) GetCertTypes

func (client *Client) GetCertTypes(nodeID string) (certTypes []string, err error)

func (*Client) GetRemoteNodes

func (client *Client) GetRemoteNodes() []string

func (*Client) SetOwner

func (client *Client) SetOwner(nodeID, certType, password string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL