types

package
v0.0.0-...-0abe6a2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Authority) GetCryptoPath

func (m *Authority) GetCryptoPath() string

func (*Authority) GetEnable

func (m *Authority) GetEnable() bool

func (*Authority) GetSignType

func (m *Authority) GetSignType() string

func (*Authority) ProtoMessage

func (*Authority) ProtoMessage()

func (*Authority) Reset

func (m *Authority) Reset()

func (*Authority) String

func (m *Authority) String() string

func (*Authority) XXX_DiscardUnknown

func (m *Authority) XXX_DiscardUnknown()

func (*Authority) XXX_Marshal

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

func (*Authority) XXX_Merge

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

func (*Authority) XXX_Size

func (m *Authority) XXX_Size() int

func (*Authority) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Cert) GetCertId

func (m *Cert) GetCertId() []byte

func (*Cert) GetCreateTime

func (m *Cert) GetCreateTime() int64

func (*Cert) GetKey

func (m *Cert) GetKey() string

func (*Cert) GetValue

func (m *Cert) GetValue() []byte

func (*Cert) ProtoMessage

func (*Cert) ProtoMessage()

func (*Cert) Reset

func (m *Cert) Reset()

func (*Cert) String

func (m *Cert) String() string

func (*Cert) XXX_DiscardUnknown

func (m *Cert) XXX_DiscardUnknown()

func (*Cert) XXX_Marshal

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

func (*Cert) XXX_Merge

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

func (*Cert) XXX_Size

func (m *Cert) XXX_Size() int

func (*Cert) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*CertNew) GetKey

func (m *CertNew) GetKey() string

func (*CertNew) GetValue

func (m *CertNew) GetValue() []byte

func (*CertNew) ProtoMessage

func (*CertNew) ProtoMessage()

func (*CertNew) Reset

func (m *CertNew) Reset()

func (*CertNew) String

func (m *CertNew) String() string

func (*CertNew) XXX_DiscardUnknown

func (m *CertNew) XXX_DiscardUnknown()

func (*CertNew) XXX_Marshal

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

func (*CertNew) XXX_Merge

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

func (*CertNew) XXX_Size

func (m *CertNew) XXX_Size() int

func (*CertNew) XXX_Unmarshal

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

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执行器类型结构

func NewType

func NewType() *CertType

NewType 新建cert类型结构

func (*CertType) GetLogMap

func (b *CertType) GetLogMap() map[int64]*types.LogInfo

GetLogMap 获取logmap

func (*CertType) GetName

func (b *CertType) GetName() string

GetName 获取执行器名

func (*CertType) GetPayload

func (b *CertType) GetPayload() types.Message

GetPayload 获取payload

func (*CertType) GetTypeMap

func (b *CertType) GetTypeMap() map[string]int32

GetTypeMap 获取类型map

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

Jump to

Keyboard shortcuts

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