grant

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteGrant

func DeleteGrant(ctx *logger.RequestContext, userName, resourceID, resourceType string) error

func IsLastGrantPk

func IsLastGrantPk(ctx *logger.RequestContext, pk int64) bool

Types

type CreateGrantRequest

type CreateGrantRequest struct {
	UserName     string `json:"userName"`
	ResourceType string `json:"resourceType"`
	ResourceID   string `json:"resourceID"`
}

type CreateGrantResponse

type CreateGrantResponse struct {
	GrantID string `json:"grantID"`
}

func CreateGrant

func CreateGrant(ctx *logger.RequestContext, grantInfo CreateGrantRequest) (*CreateGrantResponse, error)

type ListGrantResponse

type ListGrantResponse struct {
	common.MarkerInfo
	GrantList []models.Grant `json:"grantList"`
}

func ListGrant

func ListGrant(ctx *logger.RequestContext, marker string, maxKeys int, userName string) (ListGrantResponse, error)

Jump to

Keyboard shortcuts

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