Documentation ¶
Index ¶
- Constants
- Variables
- func InitExecutor(cfg *types.Chain33Config)
- func InitFork(cfg *types.Chain33Config)
- type Authority
- func (*Authority) Descriptor() ([]byte, []int)
- func (m *Authority) GetCryptoPath() string
- func (m *Authority) GetEnable() bool
- func (m *Authority) GetSignType() string
- func (*Authority) ProtoMessage()
- func (m *Authority) Reset()
- func (m *Authority) String() string
- func (m *Authority) XXX_DiscardUnknown()
- func (m *Authority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Authority) XXX_Merge(src proto.Message)
- func (m *Authority) XXX_Size() int
- func (m *Authority) XXX_Unmarshal(b []byte) error
- type Cert
- func (*Cert) Descriptor() ([]byte, []int)
- func (m *Cert) GetCertId() []byte
- func (m *Cert) GetCreateTime() int64
- func (m *Cert) GetKey() string
- func (m *Cert) GetValue() []byte
- func (*Cert) ProtoMessage()
- func (m *Cert) Reset()
- func (m *Cert) String() string
- func (m *Cert) XXX_DiscardUnknown()
- func (m *Cert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cert) XXX_Merge(src proto.Message)
- func (m *Cert) XXX_Size() int
- func (m *Cert) XXX_Unmarshal(b []byte) error
- type CertAction
- func (*CertAction) Descriptor() ([]byte, []int)
- func (m *CertAction) GetNew() *CertNew
- func (m *CertAction) GetNormal() *CertNormal
- func (m *CertAction) GetTy() int32
- func (m *CertAction) GetUpdate() *CertUpdate
- func (m *CertAction) GetValue() isCertAction_Value
- func (*CertAction) ProtoMessage()
- func (m *CertAction) Reset()
- func (m *CertAction) String() string
- func (m *CertAction) XXX_DiscardUnknown()
- func (m *CertAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertAction) XXX_Merge(src proto.Message)
- func (*CertAction) XXX_OneofWrappers() []interface{}
- func (m *CertAction) XXX_Size() int
- func (m *CertAction) XXX_Unmarshal(b []byte) error
- type CertAction_New
- type CertAction_Normal
- type CertAction_Update
- type CertNew
- func (*CertNew) Descriptor() ([]byte, []int)
- func (m *CertNew) GetKey() string
- func (m *CertNew) GetValue() []byte
- func (*CertNew) ProtoMessage()
- func (m *CertNew) Reset()
- func (m *CertNew) String() string
- func (m *CertNew) XXX_DiscardUnknown()
- func (m *CertNew) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertNew) XXX_Merge(src proto.Message)
- func (m *CertNew) XXX_Size() int
- func (m *CertNew) XXX_Unmarshal(b []byte) error
- type CertNormal
- func (*CertNormal) Descriptor() ([]byte, []int)
- func (m *CertNormal) GetKey() string
- func (m *CertNormal) GetValue() []byte
- func (*CertNormal) ProtoMessage()
- func (m *CertNormal) Reset()
- func (m *CertNormal) String() string
- func (m *CertNormal) XXX_DiscardUnknown()
- func (m *CertNormal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertNormal) XXX_Merge(src proto.Message)
- func (m *CertNormal) XXX_Size() int
- func (m *CertNormal) XXX_Unmarshal(b []byte) error
- type CertSignature
- func (*CertSignature) Descriptor() ([]byte, []int)
- func (m *CertSignature) GetCert() []byte
- func (m *CertSignature) GetSignature() []byte
- func (m *CertSignature) GetUid() []byte
- func (*CertSignature) ProtoMessage()
- func (m *CertSignature) Reset()
- func (m *CertSignature) String() string
- func (m *CertSignature) XXX_DiscardUnknown()
- func (m *CertSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertSignature) XXX_Merge(src proto.Message)
- func (m *CertSignature) XXX_Size() int
- func (m *CertSignature) XXX_Unmarshal(b []byte) error
- type CertType
- type CertUpdate
- func (*CertUpdate) Descriptor() ([]byte, []int)
- func (m *CertUpdate) GetKey() string
- func (m *CertUpdate) GetValue() []byte
- func (*CertUpdate) ProtoMessage()
- func (m *CertUpdate) Reset()
- func (m *CertUpdate) String() string
- func (m *CertUpdate) XXX_DiscardUnknown()
- func (m *CertUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertUpdate) XXX_Merge(src proto.Message)
- func (m *CertUpdate) XXX_Size() int
- func (m *CertUpdate) XXX_Unmarshal(b []byte) error
- type RepQueryValidCertSN
- func (*RepQueryValidCertSN) Descriptor() ([]byte, []int)
- func (m *RepQueryValidCertSN) GetSn() []byte
- func (*RepQueryValidCertSN) ProtoMessage()
- func (m *RepQueryValidCertSN) Reset()
- func (m *RepQueryValidCertSN) String() string
- func (m *RepQueryValidCertSN) XXX_DiscardUnknown()
- func (m *RepQueryValidCertSN) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RepQueryValidCertSN) XXX_Merge(src proto.Message)
- func (m *RepQueryValidCertSN) XXX_Size() int
- func (m *RepQueryValidCertSN) XXX_Unmarshal(b []byte) error
- type ReqQueryValidCertSN
- func (*ReqQueryValidCertSN) Descriptor() ([]byte, []int)
- func (m *ReqQueryValidCertSN) GetAddr() string
- func (*ReqQueryValidCertSN) ProtoMessage()
- func (m *ReqQueryValidCertSN) Reset()
- func (m *ReqQueryValidCertSN) String() string
- func (m *ReqQueryValidCertSN) XXX_DiscardUnknown()
- func (m *ReqQueryValidCertSN) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqQueryValidCertSN) XXX_Merge(src proto.Message)
- func (m *ReqQueryValidCertSN) XXX_Size() int
- func (m *ReqQueryValidCertSN) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( CertActionNew = 1 CertActionUpdate = 2 CertActionNormal = 3 AuthECDSA = 257 AuthSM2 = 258 )
cert
Variables ¶
View Source
var ( // CertX cert执行器名 CertX = "cert" // ExecerCert cert执行器字节 ExecerCert = []byte(CertX) AdminKey = "Auth-cert-admin" )
View Source
var ( // ErrValidateCertFailed cert校验失败 ErrValidateCertFailed = errors.New("ErrValidateCertFailed") // ErrGetHistoryCertData 获取证书错误 ErrGetHistoryCertData = errors.New("ErrGetHistoryCertData") // ErrUnknowAuthSignType 无效签名类型 ErrUnknowAuthSignType = errors.New("ErrUnknowAuthSignType") // ErrInitializeAuthority 初始化校验器失败 ErrInitializeAuthority = errors.New("ErrInitializeAuthority") // ErrPermissionDeny 权限校验失败 ErrPermissionDeny = errors.New("ErrPermissionDeny") )
Functions ¶
Types ¶
type Authority ¶
type Authority struct { Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` CryptoPath string `protobuf:"bytes,2,opt,name=cryptoPath,proto3" json:"cryptoPath,omitempty"` SignType string `protobuf:"bytes,3,opt,name=signType,proto3" json:"signType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Authority) Descriptor ¶
func (*Authority) GetCryptoPath ¶
func (*Authority) GetSignType ¶
func (*Authority) ProtoMessage ¶
func (*Authority) ProtoMessage()
func (*Authority) XXX_DiscardUnknown ¶
func (m *Authority) XXX_DiscardUnknown()
func (*Authority) XXX_Marshal ¶
func (*Authority) XXX_Unmarshal ¶
type Cert ¶
type Cert struct { CertId []byte `protobuf:"bytes,1,opt,name=certId,proto3" json:"certId,omitempty"` CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cert) Descriptor ¶
func (*Cert) GetCreateTime ¶
func (*Cert) ProtoMessage ¶
func (*Cert) ProtoMessage()
func (*Cert) XXX_DiscardUnknown ¶
func (m *Cert) XXX_DiscardUnknown()
func (*Cert) XXX_Unmarshal ¶
type CertAction ¶
type CertAction struct { // Types that are valid to be assigned to Value: // *CertAction_New // *CertAction_Update // *CertAction_Normal Value isCertAction_Value `protobuf_oneof:"value"` Ty int32 `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CertAction) Descriptor ¶
func (*CertAction) Descriptor() ([]byte, []int)
func (*CertAction) GetNew ¶
func (m *CertAction) GetNew() *CertNew
func (*CertAction) GetNormal ¶
func (m *CertAction) GetNormal() *CertNormal
func (*CertAction) GetTy ¶
func (m *CertAction) GetTy() int32
func (*CertAction) GetUpdate ¶
func (m *CertAction) GetUpdate() *CertUpdate
func (*CertAction) GetValue ¶
func (m *CertAction) GetValue() isCertAction_Value
func (*CertAction) ProtoMessage ¶
func (*CertAction) ProtoMessage()
func (*CertAction) Reset ¶
func (m *CertAction) Reset()
func (*CertAction) String ¶
func (m *CertAction) String() string
func (*CertAction) XXX_DiscardUnknown ¶
func (m *CertAction) XXX_DiscardUnknown()
func (*CertAction) XXX_Marshal ¶
func (m *CertAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CertAction) XXX_Merge ¶
func (m *CertAction) XXX_Merge(src proto.Message)
func (*CertAction) XXX_OneofWrappers ¶
func (*CertAction) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CertAction) XXX_Size ¶
func (m *CertAction) XXX_Size() int
func (*CertAction) XXX_Unmarshal ¶
func (m *CertAction) XXX_Unmarshal(b []byte) error
type CertAction_New ¶
type CertAction_New struct {
New *CertNew `protobuf:"bytes,1,opt,name=new,proto3,oneof"`
}
type CertAction_Normal ¶
type CertAction_Normal struct {
Normal *CertNormal `protobuf:"bytes,3,opt,name=normal,proto3,oneof"`
}
type CertAction_Update ¶
type CertAction_Update struct {
Update *CertUpdate `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
}
type CertNew ¶
type CertNew struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CertNew) Descriptor ¶
func (*CertNew) ProtoMessage ¶
func (*CertNew) ProtoMessage()
func (*CertNew) XXX_DiscardUnknown ¶
func (m *CertNew) XXX_DiscardUnknown()
func (*CertNew) XXX_Marshal ¶
func (*CertNew) XXX_Unmarshal ¶
type CertNormal ¶
type CertNormal struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CertNormal) Descriptor ¶
func (*CertNormal) Descriptor() ([]byte, []int)
func (*CertNormal) GetKey ¶
func (m *CertNormal) GetKey() string
func (*CertNormal) GetValue ¶
func (m *CertNormal) GetValue() []byte
func (*CertNormal) ProtoMessage ¶
func (*CertNormal) ProtoMessage()
func (*CertNormal) Reset ¶
func (m *CertNormal) Reset()
func (*CertNormal) String ¶
func (m *CertNormal) String() string
func (*CertNormal) XXX_DiscardUnknown ¶
func (m *CertNormal) XXX_DiscardUnknown()
func (*CertNormal) XXX_Marshal ¶
func (m *CertNormal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CertNormal) XXX_Merge ¶
func (m *CertNormal) XXX_Merge(src proto.Message)
func (*CertNormal) XXX_Size ¶
func (m *CertNormal) XXX_Size() int
func (*CertNormal) XXX_Unmarshal ¶
func (m *CertNormal) XXX_Unmarshal(b []byte) error
type CertSignature ¶ added in v1.65.2
type CertSignature struct { Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` Cert []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"` Uid []byte `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CertSignature) Descriptor ¶ added in v1.65.2
func (*CertSignature) Descriptor() ([]byte, []int)
func (*CertSignature) GetCert ¶ added in v1.65.2
func (m *CertSignature) GetCert() []byte
func (*CertSignature) GetSignature ¶ added in v1.65.2
func (m *CertSignature) GetSignature() []byte
func (*CertSignature) GetUid ¶ added in v1.65.2
func (m *CertSignature) GetUid() []byte
func (*CertSignature) ProtoMessage ¶ added in v1.65.2
func (*CertSignature) ProtoMessage()
func (*CertSignature) Reset ¶ added in v1.65.2
func (m *CertSignature) Reset()
func (*CertSignature) String ¶ added in v1.65.2
func (m *CertSignature) String() string
func (*CertSignature) XXX_DiscardUnknown ¶ added in v1.65.2
func (m *CertSignature) XXX_DiscardUnknown()
func (*CertSignature) XXX_Marshal ¶ added in v1.65.2
func (m *CertSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CertSignature) XXX_Merge ¶ added in v1.65.2
func (m *CertSignature) XXX_Merge(src proto.Message)
func (*CertSignature) XXX_Size ¶ added in v1.65.2
func (m *CertSignature) XXX_Size() int
func (*CertSignature) XXX_Unmarshal ¶ added in v1.65.2
func (m *CertSignature) XXX_Unmarshal(b []byte) error
type CertType ¶
type CertType struct {
types.ExecTypeBase
}
CertType cert执行器类型结构
type CertUpdate ¶
type CertUpdate struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CertUpdate) Descriptor ¶
func (*CertUpdate) Descriptor() ([]byte, []int)
func (*CertUpdate) GetKey ¶
func (m *CertUpdate) GetKey() string
func (*CertUpdate) GetValue ¶
func (m *CertUpdate) GetValue() []byte
func (*CertUpdate) ProtoMessage ¶
func (*CertUpdate) ProtoMessage()
func (*CertUpdate) Reset ¶
func (m *CertUpdate) Reset()
func (*CertUpdate) String ¶
func (m *CertUpdate) String() string
func (*CertUpdate) XXX_DiscardUnknown ¶
func (m *CertUpdate) XXX_DiscardUnknown()
func (*CertUpdate) XXX_Marshal ¶
func (m *CertUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CertUpdate) XXX_Merge ¶
func (m *CertUpdate) XXX_Merge(src proto.Message)
func (*CertUpdate) XXX_Size ¶
func (m *CertUpdate) XXX_Size() int
func (*CertUpdate) XXX_Unmarshal ¶
func (m *CertUpdate) XXX_Unmarshal(b []byte) error
type RepQueryValidCertSN ¶ added in v1.65.2
type RepQueryValidCertSN struct { Sn []byte `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RepQueryValidCertSN) Descriptor ¶ added in v1.65.2
func (*RepQueryValidCertSN) Descriptor() ([]byte, []int)
func (*RepQueryValidCertSN) GetSn ¶ added in v1.65.2
func (m *RepQueryValidCertSN) GetSn() []byte
func (*RepQueryValidCertSN) ProtoMessage ¶ added in v1.65.2
func (*RepQueryValidCertSN) ProtoMessage()
func (*RepQueryValidCertSN) Reset ¶ added in v1.65.2
func (m *RepQueryValidCertSN) Reset()
func (*RepQueryValidCertSN) String ¶ added in v1.65.2
func (m *RepQueryValidCertSN) String() string
func (*RepQueryValidCertSN) XXX_DiscardUnknown ¶ added in v1.65.2
func (m *RepQueryValidCertSN) XXX_DiscardUnknown()
func (*RepQueryValidCertSN) XXX_Marshal ¶ added in v1.65.2
func (m *RepQueryValidCertSN) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RepQueryValidCertSN) XXX_Merge ¶ added in v1.65.2
func (m *RepQueryValidCertSN) XXX_Merge(src proto.Message)
func (*RepQueryValidCertSN) XXX_Size ¶ added in v1.65.2
func (m *RepQueryValidCertSN) XXX_Size() int
func (*RepQueryValidCertSN) XXX_Unmarshal ¶ added in v1.65.2
func (m *RepQueryValidCertSN) XXX_Unmarshal(b []byte) error
type ReqQueryValidCertSN ¶ added in v1.65.2
type ReqQueryValidCertSN struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqQueryValidCertSN) Descriptor ¶ added in v1.65.2
func (*ReqQueryValidCertSN) Descriptor() ([]byte, []int)
func (*ReqQueryValidCertSN) GetAddr ¶ added in v1.65.2
func (m *ReqQueryValidCertSN) GetAddr() string
func (*ReqQueryValidCertSN) ProtoMessage ¶ added in v1.65.2
func (*ReqQueryValidCertSN) ProtoMessage()
func (*ReqQueryValidCertSN) Reset ¶ added in v1.65.2
func (m *ReqQueryValidCertSN) Reset()
func (*ReqQueryValidCertSN) String ¶ added in v1.65.2
func (m *ReqQueryValidCertSN) String() string
func (*ReqQueryValidCertSN) XXX_DiscardUnknown ¶ added in v1.65.2
func (m *ReqQueryValidCertSN) XXX_DiscardUnknown()
func (*ReqQueryValidCertSN) XXX_Marshal ¶ added in v1.65.2
func (m *ReqQueryValidCertSN) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqQueryValidCertSN) XXX_Merge ¶ added in v1.65.2
func (m *ReqQueryValidCertSN) XXX_Merge(src proto.Message)
func (*ReqQueryValidCertSN) XXX_Size ¶ added in v1.65.2
func (m *ReqQueryValidCertSN) XXX_Size() int
func (*ReqQueryValidCertSN) XXX_Unmarshal ¶ added in v1.65.2
func (m *ReqQueryValidCertSN) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.