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 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)
Click to show internal directories.
Click to hide internal directories.