Documentation ¶
Index ¶
- Constants
- Variables
- func InitExecutor(cfg *types.Chain33Config)
- func InitFork(cfg *types.Chain33Config)
- type Authority
- func (*Authority) Descriptor() ([]byte, []int)deprecated
- func (x *Authority) GetCryptoPath() string
- func (x *Authority) GetEnable() bool
- func (x *Authority) GetSignType() string
- func (*Authority) ProtoMessage()
- func (x *Authority) ProtoReflect() protoreflect.Message
- func (x *Authority) Reset()
- func (x *Authority) String() string
- type Cert
- func (*Cert) Descriptor() ([]byte, []int)deprecated
- func (x *Cert) GetCertId() []byte
- func (x *Cert) GetCreateTime() int64
- func (x *Cert) GetKey() string
- func (x *Cert) GetValue() []byte
- func (*Cert) ProtoMessage()
- func (x *Cert) ProtoReflect() protoreflect.Message
- func (x *Cert) Reset()
- func (x *Cert) String() string
- type CertAction
- func (*CertAction) Descriptor() ([]byte, []int)deprecated
- func (x *CertAction) GetNew() *CertNew
- func (x *CertAction) GetNormal() *CertNormal
- func (x *CertAction) GetTy() int32
- func (x *CertAction) GetUpdate() *CertUpdate
- func (m *CertAction) GetValue() isCertAction_Value
- func (*CertAction) ProtoMessage()
- func (x *CertAction) ProtoReflect() protoreflect.Message
- func (x *CertAction) Reset()
- func (x *CertAction) String() string
- type CertAction_New
- type CertAction_Normal
- type CertAction_Update
- type CertNew
- type CertNormal
- type CertSignature
- func (*CertSignature) Descriptor() ([]byte, []int)deprecated
- func (x *CertSignature) GetCert() []byte
- func (x *CertSignature) GetSignature() []byte
- func (x *CertSignature) GetUid() []byte
- func (*CertSignature) ProtoMessage()
- func (x *CertSignature) ProtoReflect() protoreflect.Message
- func (x *CertSignature) Reset()
- func (x *CertSignature) String() string
- type CertType
- type CertUpdate
- type RepQueryValidCertSN
- func (*RepQueryValidCertSN) Descriptor() ([]byte, []int)deprecated
- func (x *RepQueryValidCertSN) GetSn() []byte
- func (*RepQueryValidCertSN) ProtoMessage()
- func (x *RepQueryValidCertSN) ProtoReflect() protoreflect.Message
- func (x *RepQueryValidCertSN) Reset()
- func (x *RepQueryValidCertSN) String() string
- type ReqQueryValidCertSN
- func (*ReqQueryValidCertSN) Descriptor() ([]byte, []int)deprecated
- func (x *ReqQueryValidCertSN) GetAddr() string
- func (*ReqQueryValidCertSN) ProtoMessage()
- func (x *ReqQueryValidCertSN) ProtoReflect() protoreflect.Message
- func (x *ReqQueryValidCertSN) Reset()
- func (x *ReqQueryValidCertSN) String() string
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") )
View Source
var File_cert_proto protoreflect.FileDescriptor
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"` // contains filtered or unexported fields }
func (*Authority) Descriptor
deprecated
func (*Authority) GetCryptoPath ¶
func (*Authority) GetSignType ¶
func (*Authority) ProtoMessage ¶
func (*Authority) ProtoMessage()
func (*Authority) ProtoReflect ¶ added in v1.65.3
func (x *Authority) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
func (*Cert) Descriptor
deprecated
func (*Cert) GetCreateTime ¶
func (*Cert) ProtoMessage ¶
func (*Cert) ProtoMessage()
func (*Cert) ProtoReflect ¶ added in v1.65.3
func (x *Cert) ProtoReflect() protoreflect.Message
type CertAction ¶
type CertAction struct { // Types that are assignable 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"` // contains filtered or unexported fields }
func (*CertAction) Descriptor
deprecated
func (*CertAction) Descriptor() ([]byte, []int)
Deprecated: Use CertAction.ProtoReflect.Descriptor instead.
func (*CertAction) GetNew ¶
func (x *CertAction) GetNew() *CertNew
func (*CertAction) GetNormal ¶
func (x *CertAction) GetNormal() *CertNormal
func (*CertAction) GetTy ¶
func (x *CertAction) GetTy() int32
func (*CertAction) GetUpdate ¶
func (x *CertAction) GetUpdate() *CertUpdate
func (*CertAction) GetValue ¶
func (m *CertAction) GetValue() isCertAction_Value
func (*CertAction) ProtoMessage ¶
func (*CertAction) ProtoMessage()
func (*CertAction) ProtoReflect ¶ added in v1.65.3
func (x *CertAction) ProtoReflect() protoreflect.Message
func (*CertAction) Reset ¶
func (x *CertAction) Reset()
func (*CertAction) String ¶
func (x *CertAction) String() string
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"` // contains filtered or unexported fields }
func (*CertNew) Descriptor
deprecated
func (*CertNew) ProtoMessage ¶
func (*CertNew) ProtoMessage()
func (*CertNew) ProtoReflect ¶ added in v1.65.3
func (x *CertNew) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
func (*CertNormal) Descriptor
deprecated
func (*CertNormal) Descriptor() ([]byte, []int)
Deprecated: Use CertNormal.ProtoReflect.Descriptor instead.
func (*CertNormal) GetKey ¶
func (x *CertNormal) GetKey() string
func (*CertNormal) GetValue ¶
func (x *CertNormal) GetValue() []byte
func (*CertNormal) ProtoMessage ¶
func (*CertNormal) ProtoMessage()
func (*CertNormal) ProtoReflect ¶ added in v1.65.3
func (x *CertNormal) ProtoReflect() protoreflect.Message
func (*CertNormal) Reset ¶
func (x *CertNormal) Reset()
func (*CertNormal) String ¶
func (x *CertNormal) String() string
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"` // contains filtered or unexported fields }
func (*CertSignature) Descriptor
deprecated
added in
v1.65.2
func (*CertSignature) Descriptor() ([]byte, []int)
Deprecated: Use CertSignature.ProtoReflect.Descriptor instead.
func (*CertSignature) GetCert ¶ added in v1.65.2
func (x *CertSignature) GetCert() []byte
func (*CertSignature) GetSignature ¶ added in v1.65.2
func (x *CertSignature) GetSignature() []byte
func (*CertSignature) GetUid ¶ added in v1.65.2
func (x *CertSignature) GetUid() []byte
func (*CertSignature) ProtoMessage ¶ added in v1.65.2
func (*CertSignature) ProtoMessage()
func (*CertSignature) ProtoReflect ¶ added in v1.65.3
func (x *CertSignature) ProtoReflect() protoreflect.Message
func (*CertSignature) Reset ¶ added in v1.65.2
func (x *CertSignature) Reset()
func (*CertSignature) String ¶ added in v1.65.2
func (x *CertSignature) String() string
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"` // contains filtered or unexported fields }
func (*CertUpdate) Descriptor
deprecated
func (*CertUpdate) Descriptor() ([]byte, []int)
Deprecated: Use CertUpdate.ProtoReflect.Descriptor instead.
func (*CertUpdate) GetKey ¶
func (x *CertUpdate) GetKey() string
func (*CertUpdate) GetValue ¶
func (x *CertUpdate) GetValue() []byte
func (*CertUpdate) ProtoMessage ¶
func (*CertUpdate) ProtoMessage()
func (*CertUpdate) ProtoReflect ¶ added in v1.65.3
func (x *CertUpdate) ProtoReflect() protoreflect.Message
func (*CertUpdate) Reset ¶
func (x *CertUpdate) Reset()
func (*CertUpdate) String ¶
func (x *CertUpdate) String() string
type RepQueryValidCertSN ¶ added in v1.65.2
type RepQueryValidCertSN struct { Sn []byte `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn,omitempty"` // contains filtered or unexported fields }
func (*RepQueryValidCertSN) Descriptor
deprecated
added in
v1.65.2
func (*RepQueryValidCertSN) Descriptor() ([]byte, []int)
Deprecated: Use RepQueryValidCertSN.ProtoReflect.Descriptor instead.
func (*RepQueryValidCertSN) GetSn ¶ added in v1.65.2
func (x *RepQueryValidCertSN) GetSn() []byte
func (*RepQueryValidCertSN) ProtoMessage ¶ added in v1.65.2
func (*RepQueryValidCertSN) ProtoMessage()
func (*RepQueryValidCertSN) ProtoReflect ¶ added in v1.65.3
func (x *RepQueryValidCertSN) ProtoReflect() protoreflect.Message
func (*RepQueryValidCertSN) Reset ¶ added in v1.65.2
func (x *RepQueryValidCertSN) Reset()
func (*RepQueryValidCertSN) String ¶ added in v1.65.2
func (x *RepQueryValidCertSN) String() string
type ReqQueryValidCertSN ¶ added in v1.65.2
type ReqQueryValidCertSN struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` // contains filtered or unexported fields }
func (*ReqQueryValidCertSN) Descriptor
deprecated
added in
v1.65.2
func (*ReqQueryValidCertSN) Descriptor() ([]byte, []int)
Deprecated: Use ReqQueryValidCertSN.ProtoReflect.Descriptor instead.
func (*ReqQueryValidCertSN) GetAddr ¶ added in v1.65.2
func (x *ReqQueryValidCertSN) GetAddr() string
func (*ReqQueryValidCertSN) ProtoMessage ¶ added in v1.65.2
func (*ReqQueryValidCertSN) ProtoMessage()
func (*ReqQueryValidCertSN) ProtoReflect ¶ added in v1.65.3
func (x *ReqQueryValidCertSN) ProtoReflect() protoreflect.Message
func (*ReqQueryValidCertSN) Reset ¶ added in v1.65.2
func (x *ReqQueryValidCertSN) Reset()
func (*ReqQueryValidCertSN) String ¶ added in v1.65.2
func (x *ReqQueryValidCertSN) String() string
Click to show internal directories.
Click to hide internal directories.