Documentation
¶
Index ¶
- type Handler
- func (handler *Handler) GetPermissions(secret, funcServerID string) (instance aostypes.InstanceIdent, permissions map[string]string, err error)
- func (handler *Handler) RegisterInstance(instance aostypes.InstanceIdent, permissions map[string]map[string]string) (secret string, err error)
- func (handler *Handler) UnregisterInstance(instance aostypes.InstanceIdent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler update handler.
func (*Handler) GetPermissions ¶
func (handler *Handler) GetPermissions( secret, funcServerID string, ) (instance aostypes.InstanceIdent, permissions map[string]string, err error)
GetPermissions returns instance and permissions by secret and functional server ID.
func (*Handler) RegisterInstance ¶
func (handler *Handler) RegisterInstance( instance aostypes.InstanceIdent, permissions map[string]map[string]string, ) (secret string, err error)
RegisterInstance adds new service instance into cache and creates secret.
func (*Handler) UnregisterInstance ¶
func (handler *Handler) UnregisterInstance(instance aostypes.InstanceIdent)
UnregisterInstance deletes service instance with permissions from cache.
Click to show internal directories.
Click to hide internal directories.