authz

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ActionTypeRead  string = "read"
	ActionTypeWrite string = "write"
	// ActionTypeSchema to resource: ent schema and so on
	ActionTypeSchema string = "schema"
)
View Source
const (
	ActionKindResourcePrefix security.ArnKind = "resourcePrefix"
)
View Source
const (
	ArnSplit = ":"
)

Variables

This section is empty.

Functions

func FormatArnPrefix

func FormatArnPrefix(app, domain, resource string) string

FormatArnPrefix 资源格式化前缀

func FormatResourceArn

func FormatResourceArn(resource string) string

FormatResourceArn 格式化资源ARN

func ReplaceTenantID

func ReplaceTenantID(input string, tenantID int) string

ReplaceTenantID 替换资源中的tenant_id

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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