Documentation ¶
Index ¶
- Variables
- type Member
- func (m *Member) ChangeToMemberFull() *MemberFull
- func (*Member) Descriptor() ([]byte, []int)
- func (m *Member) GetMemberInfo() []byte
- func (m *Member) GetMemberType() MemberType
- func (m *Member) GetOrgId() string
- func (m *Member) Marshal() (dAtA []byte, err error)
- func (m *Member) MarshalTo(dAtA []byte) (int, error)
- func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Member) ProtoMessage()
- func (m *Member) Reset()
- func (m *Member) Size() (n int)
- func (m *Member) String() string
- func (m *Member) Unmarshal(dAtA []byte) error
- func (m *Member) XXX_DiscardUnknown()
- func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Member) XXX_Merge(src proto.Message)
- func (m *Member) XXX_Size() int
- func (m *Member) XXX_Unmarshal(b []byte) error
- type MemberAndExtraData
- func (*MemberAndExtraData) Descriptor() ([]byte, []int)
- func (m *MemberAndExtraData) GetExtraData() *MemberExtraData
- func (m *MemberAndExtraData) GetMember() *Member
- func (m *MemberAndExtraData) Marshal() (dAtA []byte, err error)
- func (m *MemberAndExtraData) MarshalTo(dAtA []byte) (int, error)
- func (m *MemberAndExtraData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MemberAndExtraData) ProtoMessage()
- func (m *MemberAndExtraData) Reset()
- func (m *MemberAndExtraData) Size() (n int)
- func (m *MemberAndExtraData) String() string
- func (m *MemberAndExtraData) Unmarshal(dAtA []byte) error
- func (m *MemberAndExtraData) XXX_DiscardUnknown()
- func (m *MemberAndExtraData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MemberAndExtraData) XXX_Merge(src proto.Message)
- func (m *MemberAndExtraData) XXX_Size() int
- func (m *MemberAndExtraData) XXX_Unmarshal(b []byte) error
- type MemberExtraData
- func (*MemberExtraData) Descriptor() ([]byte, []int)
- func (m *MemberExtraData) GetSequence() uint64
- func (m *MemberExtraData) Marshal() (dAtA []byte, err error)
- func (m *MemberExtraData) MarshalTo(dAtA []byte) (int, error)
- func (m *MemberExtraData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MemberExtraData) ProtoMessage()
- func (m *MemberExtraData) Reset()
- func (m *MemberExtraData) Size() (n int)
- func (m *MemberExtraData) String() string
- func (m *MemberExtraData) Unmarshal(dAtA []byte) error
- func (m *MemberExtraData) XXX_DiscardUnknown()
- func (m *MemberExtraData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MemberExtraData) XXX_Merge(src proto.Message)
- func (m *MemberExtraData) XXX_Size() int
- func (m *MemberExtraData) XXX_Unmarshal(b []byte) error
- type MemberFull
- func (m *MemberFull) ChangeToMember() *Member
- func (*MemberFull) Descriptor() ([]byte, []int)
- func (m *MemberFull) GetMemberId() string
- func (m *MemberFull) GetMemberInfo() []byte
- func (m *MemberFull) GetMemberType() MemberType
- func (m *MemberFull) GetOrgId() string
- func (m *MemberFull) GetRole() string
- func (m *MemberFull) GetUid() string
- func (m *MemberFull) Marshal() (dAtA []byte, err error)
- func (m *MemberFull) MarshalTo(dAtA []byte) (int, error)
- func (m *MemberFull) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MemberFull) ProtoMessage()
- func (m *MemberFull) Reset()
- func (m *MemberFull) Size() (n int)
- func (m *MemberFull) String() string
- func (m *MemberFull) Unmarshal(dAtA []byte) error
- func (m *MemberFull) XXX_DiscardUnknown()
- func (m *MemberFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MemberFull) XXX_Merge(src proto.Message)
- func (m *MemberFull) XXX_Size() int
- func (m *MemberFull) XXX_Unmarshal(b []byte) error
- type MemberStatus
- type MemberType
- type PKInfo
- func (*PKInfo) Descriptor() ([]byte, []int)
- func (m *PKInfo) GetOrgId() string
- func (m *PKInfo) GetPkBytes() []byte
- func (m *PKInfo) GetRole() string
- func (m *PKInfo) Marshal() (dAtA []byte, err error)
- func (m *PKInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *PKInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PKInfo) ProtoMessage()
- func (m *PKInfo) Reset()
- func (m *PKInfo) Size() (n int)
- func (m *PKInfo) String() string
- func (m *PKInfo) Unmarshal(dAtA []byte) error
- func (m *PKInfo) XXX_DiscardUnknown()
- func (m *PKInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PKInfo) XXX_Merge(src proto.Message)
- func (m *PKInfo) XXX_Size() int
- func (m *PKInfo) XXX_Unmarshal(b []byte) error
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) GetOrgList() []string
- func (m *Policy) GetRoleList() []string
- func (m *Policy) GetRule() string
- func (m *Policy) Marshal() (dAtA []byte, err error)
- func (m *Policy) MarshalTo(dAtA []byte) (int, error)
- func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) Size() (n int)
- func (m *Policy) String() string
- func (m *Policy) Unmarshal(dAtA []byte) error
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Policy) XXX_Merge(src proto.Message)
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
- type VerifyType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMember = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMember = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMember = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthPolicy = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPolicy = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPolicy = fmt.Errorf("proto: unexpected end of group") )
View Source
var MemberStatus_name = map[int32]string{
0: "NORMAL",
1: "INVALID",
2: "REVOKED",
3: "FROZEN",
}
View Source
var MemberStatus_value = map[string]int32{
"NORMAL": 0,
"INVALID": 1,
"REVOKED": 2,
"FROZEN": 3,
}
View Source
var MemberType_name = map[int32]string{
0: "CERT",
1: "CERT_HASH",
2: "PUBLIC_KEY",
3: "DID",
4: "ALITAS",
}
View Source
var MemberType_value = map[string]int32{
"CERT": 0,
"CERT_HASH": 1,
"PUBLIC_KEY": 2,
"DID": 3,
"ALITAS": 4,
}
View Source
var VerifyType_name = map[int32]string{
0: "CRL",
}
View Source
var VerifyType_value = map[string]int32{
"CRL": 0,
}
Functions ¶
This section is empty.
Types ¶
type Member ¶
type Member struct { // 成员的组织标识符 OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // 成员类型 MemberType MemberType `protobuf:"varint,2,opt,name=member_type,json=memberType,proto3,enum=accesscontrol.MemberType" json:"member_type,omitempty"` // 成员身份相关信息字节 MemberInfo []byte `protobuf:"bytes,3,opt,name=member_info,json=memberInfo,proto3" json:"member_info,omitempty"` }
区块链在线成员
func (*Member) ChangeToMemberFull ¶
func (m *Member) ChangeToMemberFull() *MemberFull
func (*Member) Descriptor ¶
func (*Member) GetMemberInfo ¶
func (*Member) GetMemberType ¶
func (m *Member) GetMemberType() MemberType
func (*Member) MarshalToSizedBuffer ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) XXX_DiscardUnknown ¶
func (m *Member) XXX_DiscardUnknown()
func (*Member) XXX_Marshal ¶
func (*Member) XXX_Unmarshal ¶
type MemberAndExtraData ¶
type MemberAndExtraData struct { Member *Member `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"` ExtraData *MemberExtraData `protobuf:"bytes,2,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` }
func (*MemberAndExtraData) Descriptor ¶
func (*MemberAndExtraData) Descriptor() ([]byte, []int)
func (*MemberAndExtraData) GetExtraData ¶
func (m *MemberAndExtraData) GetExtraData() *MemberExtraData
func (*MemberAndExtraData) GetMember ¶
func (m *MemberAndExtraData) GetMember() *Member
func (*MemberAndExtraData) Marshal ¶
func (m *MemberAndExtraData) Marshal() (dAtA []byte, err error)
func (*MemberAndExtraData) MarshalTo ¶
func (m *MemberAndExtraData) MarshalTo(dAtA []byte) (int, error)
func (*MemberAndExtraData) MarshalToSizedBuffer ¶
func (m *MemberAndExtraData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MemberAndExtraData) ProtoMessage ¶
func (*MemberAndExtraData) ProtoMessage()
func (*MemberAndExtraData) Reset ¶
func (m *MemberAndExtraData) Reset()
func (*MemberAndExtraData) Size ¶
func (m *MemberAndExtraData) Size() (n int)
func (*MemberAndExtraData) String ¶
func (m *MemberAndExtraData) String() string
func (*MemberAndExtraData) Unmarshal ¶
func (m *MemberAndExtraData) Unmarshal(dAtA []byte) error
func (*MemberAndExtraData) XXX_DiscardUnknown ¶
func (m *MemberAndExtraData) XXX_DiscardUnknown()
func (*MemberAndExtraData) XXX_Marshal ¶
func (m *MemberAndExtraData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MemberAndExtraData) XXX_Merge ¶
func (m *MemberAndExtraData) XXX_Merge(src proto.Message)
func (*MemberAndExtraData) XXX_Size ¶
func (m *MemberAndExtraData) XXX_Size() int
func (*MemberAndExtraData) XXX_Unmarshal ¶
func (m *MemberAndExtraData) XXX_Unmarshal(b []byte) error
type MemberExtraData ¶
type MemberExtraData struct { // 与以太坊帐户nonce一样,序列默认为0 Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` }
成员额外数据
func (*MemberExtraData) Descriptor ¶
func (*MemberExtraData) Descriptor() ([]byte, []int)
func (*MemberExtraData) GetSequence ¶
func (m *MemberExtraData) GetSequence() uint64
func (*MemberExtraData) Marshal ¶
func (m *MemberExtraData) Marshal() (dAtA []byte, err error)
func (*MemberExtraData) MarshalToSizedBuffer ¶
func (m *MemberExtraData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MemberExtraData) ProtoMessage ¶
func (*MemberExtraData) ProtoMessage()
func (*MemberExtraData) Reset ¶
func (m *MemberExtraData) Reset()
func (*MemberExtraData) Size ¶
func (m *MemberExtraData) Size() (n int)
func (*MemberExtraData) String ¶
func (m *MemberExtraData) String() string
func (*MemberExtraData) Unmarshal ¶
func (m *MemberExtraData) Unmarshal(dAtA []byte) error
func (*MemberExtraData) XXX_DiscardUnknown ¶
func (m *MemberExtraData) XXX_DiscardUnknown()
func (*MemberExtraData) XXX_Marshal ¶
func (m *MemberExtraData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MemberExtraData) XXX_Merge ¶
func (m *MemberExtraData) XXX_Merge(src proto.Message)
func (*MemberExtraData) XXX_Size ¶
func (m *MemberExtraData) XXX_Size() int
func (*MemberExtraData) XXX_Unmarshal ¶
func (m *MemberExtraData) XXX_Unmarshal(b []byte) error
type MemberFull ¶
type MemberFull struct { // 成员的组织标识符 OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // 成员类型 MemberType MemberType `protobuf:"varint,2,opt,name=member_type,json=memberType,proto3,enum=accesscontrol.MemberType" json:"member_type,omitempty"` // 成员身份相关信息字节 MemberInfo []byte `protobuf:"bytes,3,opt,name=member_info,json=memberInfo,proto3" json:"member_info,omitempty"` // 此成员的身份(非唯一性) MemberId string `protobuf:"bytes,4,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` // 此成员的角色 Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` // 此成员的身份(唯一) Uid string `protobuf:"bytes,6,opt,name=uid,proto3" json:"uid,omitempty"` }
区块链的全属性成员
func (*MemberFull) ChangeToMember ¶
func (m *MemberFull) ChangeToMember() *Member
func (*MemberFull) Descriptor ¶
func (*MemberFull) Descriptor() ([]byte, []int)
func (*MemberFull) GetMemberId ¶
func (m *MemberFull) GetMemberId() string
func (*MemberFull) GetMemberInfo ¶
func (m *MemberFull) GetMemberInfo() []byte
func (*MemberFull) GetMemberType ¶
func (m *MemberFull) GetMemberType() MemberType
func (*MemberFull) GetOrgId ¶
func (m *MemberFull) GetOrgId() string
func (*MemberFull) GetRole ¶
func (m *MemberFull) GetRole() string
func (*MemberFull) GetUid ¶
func (m *MemberFull) GetUid() string
func (*MemberFull) Marshal ¶
func (m *MemberFull) Marshal() (dAtA []byte, err error)
func (*MemberFull) MarshalToSizedBuffer ¶
func (m *MemberFull) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MemberFull) ProtoMessage ¶
func (*MemberFull) ProtoMessage()
func (*MemberFull) Reset ¶
func (m *MemberFull) Reset()
func (*MemberFull) Size ¶
func (m *MemberFull) Size() (n int)
func (*MemberFull) String ¶
func (m *MemberFull) String() string
func (*MemberFull) Unmarshal ¶
func (m *MemberFull) Unmarshal(dAtA []byte) error
func (*MemberFull) XXX_DiscardUnknown ¶
func (m *MemberFull) XXX_DiscardUnknown()
func (*MemberFull) XXX_Marshal ¶
func (m *MemberFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MemberFull) XXX_Merge ¶
func (m *MemberFull) XXX_Merge(src proto.Message)
func (*MemberFull) XXX_Size ¶
func (m *MemberFull) XXX_Size() int
func (*MemberFull) XXX_Unmarshal ¶
func (m *MemberFull) XXX_Unmarshal(b []byte) error
type MemberStatus ¶
type MemberStatus int32
成员状态
const ( // 成员状态正常 MemberStatus_NORMAL MemberStatus = 0 // 成员的状态无效 MemberStatus_INVALID MemberStatus = 1 // 成员的状态被撤销 MemberStatus_REVOKED MemberStatus = 2 // 成员的状态被冻结 MemberStatus_FROZEN MemberStatus = 3 )
func (MemberStatus) EnumDescriptor ¶
func (MemberStatus) EnumDescriptor() ([]byte, []int)
func (MemberStatus) String ¶
func (x MemberStatus) String() string
type MemberType ¶
type MemberType int32
成员类型
const ( // X509 证书 MemberType_CERT MemberType = 0 // 证书哈希 MemberType_CERT_HASH MemberType = 1 // 公钥 MemberType_PUBLIC_KEY MemberType = 2 // 分布式标识 MemberType_DID MemberType = 3 // 别名 MemberType_ALITAS MemberType = 4 )
func (MemberType) EnumDescriptor ¶
func (MemberType) EnumDescriptor() ([]byte, []int)
func (MemberType) String ¶
func (x MemberType) String() string
type PKInfo ¶
type PKInfo struct { // der 证书公钥字节 PkBytes []byte `protobuf:"bytes,1,opt,name=pk_bytes,json=pkBytes,proto3" json:"pk_bytes,omitempty"` // 成员角色 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // 成员的组织标识符 OrgId string `protobuf:"bytes,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` }
成员公钥信息
func (*PKInfo) Descriptor ¶
func (*PKInfo) GetPkBytes ¶
func (*PKInfo) MarshalToSizedBuffer ¶
func (*PKInfo) ProtoMessage ¶
func (*PKInfo) ProtoMessage()
func (*PKInfo) XXX_DiscardUnknown ¶
func (m *PKInfo) XXX_DiscardUnknown()
func (*PKInfo) XXX_Marshal ¶
func (*PKInfo) XXX_Unmarshal ¶
type Policy ¶
type Policy struct { // 规则关键字,例如任意/多数/全部/自我/数字/比率 Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` // org_list 描述身份验证中包含的组织集 OrgList []string `protobuf:"bytes,2,rep,name=org_list,json=orgList,proto3" json:"org_list,omitempty"` // role_list描述身份验证中包含的角色集 //例如管理员/客户机/共识/通用 RoleList []string `protobuf:"bytes,3,rep,name=role_list,json=roleList,proto3" json:"role_list,omitempty"` }
用于描述如何验证特定操作的策略
func (*Policy) Descriptor ¶
func (*Policy) GetOrgList ¶
func (*Policy) GetRoleList ¶
func (*Policy) MarshalToSizedBuffer ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) XXX_DiscardUnknown ¶
func (m *Policy) XXX_DiscardUnknown()
func (*Policy) XXX_Marshal ¶
func (*Policy) XXX_Unmarshal ¶
type VerifyType ¶
type VerifyType int32
验证成员的相关身份资料类型
const (
VerifyType_CRL VerifyType = 0
)
func (VerifyType) EnumDescriptor ¶
func (VerifyType) EnumDescriptor() ([]byte, []int)
func (VerifyType) String ¶
func (x VerifyType) String() string
Click to show internal directories.
Click to hide internal directories.