Documentation ¶
Index ¶
- Constants
- Variables
- 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_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- 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 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
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) )
View Source
var ( // ErrValidateCertFailed cert校验失败 ErrValidateCertFailed = errors.New("ErrValidateCertFailed") // ErrGetHistoryCertData 获取证书错误 ErrGetHistoryCertData = errors.New("ErrGetHistoryCertData") // ErrUnknowAuthSignType 无效签名类型 ErrUnknowAuthSignType = errors.New("ErrUnknowAuthSignType") // ErrInitializeAuthority 初始化校验器失败 ErrInitializeAuthority = errors.New("ErrInitializeAuthority") )
Functions ¶
This section is empty.
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_OneofFuncs ¶
func (*CertAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs 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 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
Click to show internal directories.
Click to hide internal directories.