rest

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: 19 Imported by: 0

Documentation

Overview

Package rest provides a gateway to the underlying grpc service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserHandler

type UserHandler struct {
	resources.ResourceProviderHandler
}

func NewUserHandler

func NewUserHandler() *UserHandler

func (*UserHandler) BindUser

func (s *UserHandler) BindUser(req *restful.Request, rsp *restful.Response)

BindUser checks credentials and bind the user if successful

func (*UserHandler) DeleteUser

func (s *UserHandler) DeleteUser(req *restful.Request, rsp *restful.Response)

DeleteUser removes a user or group from the repository.

func (*UserHandler) Filter

func (s *UserHandler) Filter() func(string) string

Filter returns a function to filter the swagger path

func (*UserHandler) PoliciesForUserId

func (s *UserHandler) PoliciesForUserId(ctx context.Context, resourceId string, resourceClient interface{}) (policies []*service2.ResourcePolicy, e error)

PoliciesForUserId retrieves policies for a given UserId.

func (*UserHandler) PutRoles

func (s *UserHandler) PutRoles(req *restful.Request, rsp *restful.Response)

PutRoles updates an existing user with the passed list of roles.

func (*UserHandler) PutUser

func (s *UserHandler) PutUser(req *restful.Request, rsp *restful.Response)

PutUser creates or updates a User if calling client has sufficient permissions.

func (*UserHandler) SearchUsers

func (s *UserHandler) SearchUsers(req *restful.Request, rsp *restful.Response)

SearchUsers performs a paginated query to the user repository.

func (*UserHandler) SwaggerTags

func (s *UserHandler) SwaggerTags() []string

SwaggerTags list the names of the service tags declared in the swagger json implemented by this service

Jump to

Keyboard shortcuts

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