grant

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 7 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 []model.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