grpc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package grpc provides persistence layer for user-defined metadata

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

type Cleaner struct {
	resources.PoliciesCleaner
	// contains filtered or unexported fields
}

Cleaner cleans roles on user deletion

func NewCleaner

func NewCleaner(handler *Handler, dao dao.DAO) *Cleaner

func (*Cleaner) Handle

func (c *Cleaner) Handle(ctx context.Context, msg *idm.ChangeEvent) error

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler definition.

func NewHandler added in v1.2.0

func NewHandler() *Handler

func (*Handler) ListUserMetaNamespace

List all namespaces from underlying DAO.

func (*Handler) ReadNodeStream

Implements ReadNodeStream to be a meta provider.

func (*Handler) SearchUserMeta

SearchUserMeta retrieves meta based on various criteria.

func (*Handler) UpdateUserMeta

func (h *Handler) UpdateUserMeta(ctx context.Context, request *idm.UpdateUserMetaRequest, response *idm.UpdateUserMetaResponse) error

UpdateUserMeta adds, updates or deletes user meta.

func (*Handler) UpdateUserMetaNamespace

func (h *Handler) UpdateUserMetaNamespace(ctx context.Context, request *idm.UpdateUserMetaNamespaceRequest, response *idm.UpdateUserMetaNamespaceResponse) error

Update/Delete a namespace.

Jump to

Keyboard shortcuts

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