iamclient

package
v0.0.0-...-15f1d61 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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client IAM client instance.

func New

func New(
	config *config.Config, cryptcoxontext *cryptutils.CryptoContext, insecureConn 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) (certURL, keyURL string, err error)

GetCertificate gets certificate and key url from IAM by type.

func (*Client) GetNodeID

func (client *Client) GetNodeID() string

GetNodeID returns node ID.

func (*Client) GetNodeType

func (client *Client) GetNodeType() string

GetNodeType returns node type.

func (*Client) GetPermissions

func (client *Client) GetPermissions(
	secret, funcServerID string,
) (instance aostypes.InstanceIdent, permissions map[string]string, err error)

GetPermissions gets permissions by secret and functional server ID.

func (*Client) RegisterInstance

func (client *Client) RegisterInstance(
	instance aostypes.InstanceIdent, permissions map[string]map[string]string,
) (secret string, err error)

RegisterInstance registers new service instance with permissions and create secret.

func (*Client) UnregisterInstance

func (client *Client) UnregisterInstance(instance aostypes.InstanceIdent) (err error)

UnregisterInstance unregisters service instance.

Jump to

Keyboard shortcuts

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