MCPcopy Create free account
hub / github.com/actiontech/dtle / NewDefaultRole

Function NewDefaultRole

driver/common/store.go:674–682  ·  view source on GitHub ↗

consul store item

(tenant string)

Source from the content-addressed store, hash-verified

672// consul store item
673
674func NewDefaultRole(tenant string) *Role {
675 return &Role{
676 Tenant: tenant,
677 Name: DefaultRole,
678 ObjectUsers: nil,
679 ObjectType: "all",
680 Authority: DefaultAdminAuth,
681 }
682}
683
684type Role struct {
685 Tenant string `json:"tenant"`

Callers 1

createUserFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected