Documentation ¶
Index ¶
- type Client
- func (client *Client) Close() (err error)
- func (client *Client) GetCertificate(certType string) (certURL, keyURL string, err error)
- func (client *Client) GetCurrentNodeInfo() (cloudprotocol.NodeInfo, error)
- func (client *Client) GetPermissions(secret, funcServerID string) (instance aostypes.InstanceIdent, permissions map[string]string, err error)
- func (client *Client) RegisterInstance(instance aostypes.InstanceIdent, permissions map[string]map[string]string) (secret string, err error)
- func (client *Client) UnregisterInstance(instance aostypes.InstanceIdent) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
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) GetCertificate ¶
GetCertificate gets certificate and key url from IAM by type.
func (*Client) GetCurrentNodeInfo ¶
func (client *Client) GetCurrentNodeInfo() (cloudprotocol.NodeInfo, error)
GetCurrentNodeInfo returns node info.
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.
Click to show internal directories.
Click to hide internal directories.