exported

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var E_PermissionRole = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MessageOptions)(nil),
	ExtensionType: (*Role)(nil),
	Field:         50000,
	Name:          "axelar.permission.exported.v1beta1.permission_role",
	Tag:           "varint,50000,opt,name=permission_role,enum=axelar.permission.exported.v1beta1.Role",
	Filename:      "axelar/permission/exported/v1beta1/types.proto",
}
View Source
var Role_name = map[int32]string{
	0: "ROLE_UNSPECIFIED",
	1: "ROLE_UNRESTRICTED",
	2: "ROLE_CHAIN_MANAGEMENT",
	3: "ROLE_ACCESS_CONTROL",
}
View Source
var Role_value = map[string]int32{
	"ROLE_UNSPECIFIED":      0,
	"ROLE_UNRESTRICTED":     1,
	"ROLE_CHAIN_MANAGEMENT": 2,
	"ROLE_ACCESS_CONTROL":   3,
}

Functions

This section is empty.

Types

type Role

type Role int32
const (
	ROLE_UNSPECIFIED      Role = 0
	ROLE_UNRESTRICTED     Role = 1
	ROLE_CHAIN_MANAGEMENT Role = 2
	ROLE_ACCESS_CONTROL   Role = 3
)

func GetPermissionRole added in v0.17.0

func GetPermissionRole(message descriptor.Message) Role

GetPermissionRole returns the role that is defined for the given message. Returns ROLE_UNSPECIFIED if none is set.

func (Role) EnumDescriptor

func (Role) EnumDescriptor() ([]byte, []int)

func (Role) String

func (x Role) String() string

func (Role) Validate

func (x Role) Validate() error

Validate validates the Role

Jump to

Keyboard shortcuts

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