iamclient

package
v0.0.0-...-2b5bdcb Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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 CertificateProvider

type CertificateProvider interface {
	GetCertSerial(certURL string) (serial string, err error)
}

CertificateProvider provides certificate info.

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Client IAM client instance.

func New

func New(
	config *config.Config, sender Sender, cryptocontext *cryptutils.CryptoContext, insecure bool,
) (client *Client, err error)

New creates new IAM client.

func (*Client) Close

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

Close closes IAM client.

func (*Client) GetCertificate

func (client *Client) GetCertificate(
	certType string, issuer []byte, serial string,
) (certURL, keyURL string, err error)

GetCertificate gets certificate by issuer.

func (*Client) GetNodeID

func (client *Client) GetNodeID() string

GetNodeID returns node ID.

func (*Client) GetSystemID

func (client *Client) GetSystemID() (systemID string)

GetSystemID returns system ID.

func (*Client) InstallCertificates

func (client *Client) InstallCertificates(
	certInfo []cloudprotocol.IssuedCertData, certProvider CertificateProvider,
) error

InstallCertificates applies new issued certificates.

func (*Client) RenewCertificatesNotification

func (client *Client) RenewCertificatesNotification(pwd string, certInfo []cloudprotocol.RenewCertData) (err error)

RenewCertificatesNotification renew certificates notification.

type Sender

type Sender interface {
	SendIssueUnitCerts(requests []cloudprotocol.IssueCertData) (err error)
	SendInstallCertsConfirmation(confirmations []cloudprotocol.InstallCertData) (err error)
}

Sender provides API to send messages to the cloud.

Jump to

Keyboard shortcuts

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