authz

package
v0.0.0-...-0943177 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAuthz        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuthz          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the interfaces types with the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

Types

type GenericSubspaceAuthorization

type GenericSubspaceAuthorization struct {
	// Ids of the subspaces inside which to grant the permission
	SubspacesIDs []uint64 `protobuf:"varint,1,rep,packed,name=subspaces_ids,json=subspacesIds,proto3" json:"subspaces_ids,omitempty"`
	// Msg, identified by it's type URL, to grant unrestricted permissions to
	// execute within the subspace
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
}

GenericSubspaceAuthorization defines an authorization to perform any operation only inside a specific subspace.

func NewGenericSubspaceAuthorization

func NewGenericSubspaceAuthorization(subspacesIDs []uint64, msgTypeURL string) *GenericSubspaceAuthorization

NewGenericSubspaceAuthorization creates a new GenericSubspaceAuthorization object.

func (GenericSubspaceAuthorization) Accept

Accept implements Authorization.Accept.

func (*GenericSubspaceAuthorization) Descriptor

func (*GenericSubspaceAuthorization) Descriptor() ([]byte, []int)

func (*GenericSubspaceAuthorization) GetMsg

func (*GenericSubspaceAuthorization) GetSubspacesIDs

func (m *GenericSubspaceAuthorization) GetSubspacesIDs() []uint64

func (*GenericSubspaceAuthorization) Marshal

func (m *GenericSubspaceAuthorization) Marshal() (dAtA []byte, err error)

func (*GenericSubspaceAuthorization) MarshalTo

func (m *GenericSubspaceAuthorization) MarshalTo(dAtA []byte) (int, error)

func (*GenericSubspaceAuthorization) MarshalToSizedBuffer

func (m *GenericSubspaceAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (GenericSubspaceAuthorization) MsgTypeURL

func (a GenericSubspaceAuthorization) MsgTypeURL() string

MsgTypeURL implements Authorization.MsgTypeURL.

func (*GenericSubspaceAuthorization) ProtoMessage

func (*GenericSubspaceAuthorization) ProtoMessage()

func (*GenericSubspaceAuthorization) Reset

func (m *GenericSubspaceAuthorization) Reset()

func (*GenericSubspaceAuthorization) Size

func (m *GenericSubspaceAuthorization) Size() (n int)

func (*GenericSubspaceAuthorization) String

func (*GenericSubspaceAuthorization) Unmarshal

func (m *GenericSubspaceAuthorization) Unmarshal(dAtA []byte) error

func (GenericSubspaceAuthorization) ValidateBasic

func (a GenericSubspaceAuthorization) ValidateBasic() error

ValidateBasic implements Authorization.ValidateBasic.

func (*GenericSubspaceAuthorization) XXX_DiscardUnknown

func (m *GenericSubspaceAuthorization) XXX_DiscardUnknown()

func (*GenericSubspaceAuthorization) XXX_Marshal

func (m *GenericSubspaceAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenericSubspaceAuthorization) XXX_Merge

func (m *GenericSubspaceAuthorization) XXX_Merge(src proto.Message)

func (*GenericSubspaceAuthorization) XXX_Size

func (m *GenericSubspaceAuthorization) XXX_Size() int

func (*GenericSubspaceAuthorization) XXX_Unmarshal

func (m *GenericSubspaceAuthorization) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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