protos

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2016 License: Apache-2.0 Imports: 6 Imported by: 58

Documentation

Overview

Package protos is a generated protocol buffer package.

It is generated from these files:

ca.proto

It has these top-level messages:

CAStatus
Empty
Identity
Token
Hash
PublicKey
PrivateKey
Signature
RegisterUserReq
ReadUserSetReq
User
UserSet
ECertCreateReq
ECertCreateResp
ECertReadReq
ECertRevokeReq
ECertCRLReq
TCertCreateReq
TCertCreateResp
TCertCreateSetReq
TCertCreateSetResp
TCertReadReq
TCertReadSetReq
TCertReadSetsReq
TCertRevokeReq
TCertRevokeSetReq
TCertCRLReq
TLSCertCreateReq
TLSCertCreateResp
TLSCertReadReq
TLSCertRevokeReq
Cert
CertSet
CertSets
CertPair

Index

Constants

This section is empty.

Variables

View Source
var CAStatus_StatusCode_name = map[int32]string{
	0: "OK",
	1: "UNKNOWN_ERROR",
}
View Source
var CAStatus_StatusCode_value = map[string]int32{
	"OK":            0,
	"UNKNOWN_ERROR": 1,
}
View Source
var CryptoType_name = map[int32]string{
	0: "ECDSA",
	1: "RSA",
	2: "DSA",
}
View Source
var CryptoType_value = map[string]int32{
	"ECDSA": 0,
	"RSA":   1,
	"DSA":   2,
}
View Source
var Role_name = map[int32]string{
	0:     "NONE",
	1:     "CLIENT",
	2:     "PEER",
	4:     "VALIDATOR",
	8:     "AUDITOR",
	65535: "ALL",
}
View Source
var Role_value = map[string]int32{
	"NONE":      0,
	"CLIENT":    1,
	"PEER":      2,
	"VALIDATOR": 4,
	"AUDITOR":   8,
	"ALL":       65535,
}

Functions

func RegisterECAAServer

func RegisterECAAServer(s *grpc.Server, srv ECAAServer)

func RegisterECAPServer

func RegisterECAPServer(s *grpc.Server, srv ECAPServer)

func RegisterTCAAServer

func RegisterTCAAServer(s *grpc.Server, srv TCAAServer)

func RegisterTCAPServer

func RegisterTCAPServer(s *grpc.Server, srv TCAPServer)

func RegisterTLSCAAServer

func RegisterTLSCAAServer(s *grpc.Server, srv TLSCAAServer)

func RegisterTLSCAPServer

func RegisterTLSCAPServer(s *grpc.Server, srv TLSCAPServer)

Types

type CAStatus

type CAStatus struct {
	Status CAStatus_StatusCode `protobuf:"varint,1,opt,name=status,enum=protos.CAStatus_StatusCode" json:"status,omitempty"`
}

Status codes shared by both CAs.

func (*CAStatus) ProtoMessage

func (*CAStatus) ProtoMessage()

func (*CAStatus) Reset

func (m *CAStatus) Reset()

func (*CAStatus) String

func (m *CAStatus) String() string

type CAStatus_StatusCode

type CAStatus_StatusCode int32
const (
	CAStatus_OK            CAStatus_StatusCode = 0
	CAStatus_UNKNOWN_ERROR CAStatus_StatusCode = 1
)

func (CAStatus_StatusCode) String

func (x CAStatus_StatusCode) String() string

type Cert

type Cert struct {
	Cert []byte `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"`
}

Certificate issued by either the ECA or TCA.

func (*Cert) ProtoMessage

func (*Cert) ProtoMessage()

func (*Cert) Reset

func (m *Cert) Reset()

func (*Cert) String

func (m *Cert) String() string

type CertPair

type CertPair struct {
	Sign []byte `protobuf:"bytes,1,opt,name=sign,proto3" json:"sign,omitempty"`
	Enc  []byte `protobuf:"bytes,2,opt,name=enc,proto3" json:"enc,omitempty"`
}

func (*CertPair) ProtoMessage

func (*CertPair) ProtoMessage()

func (*CertPair) Reset

func (m *CertPair) Reset()

func (*CertPair) String

func (m *CertPair) String() string

type CertSet

type CertSet struct {
	Ts    *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=ts" json:"ts,omitempty"`
	Id    *Identity                  `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Key   []byte                     `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Certs [][]byte                   `protobuf:"bytes,4,rep,name=certs,proto3" json:"certs,omitempty"`
}

func (*CertSet) GetId

func (m *CertSet) GetId() *Identity

func (*CertSet) GetTs

func (m *CertSet) GetTs() *google_protobuf.Timestamp

func (*CertSet) ProtoMessage

func (*CertSet) ProtoMessage()

func (*CertSet) Reset

func (m *CertSet) Reset()

func (*CertSet) String

func (m *CertSet) String() string

type CertSets

type CertSets struct {
	Sets []*CertSet `protobuf:"bytes,1,rep,name=sets" json:"sets,omitempty"`
}

func (*CertSets) GetSets

func (m *CertSets) GetSets() []*CertSet

func (*CertSets) ProtoMessage

func (*CertSets) ProtoMessage()

func (*CertSets) Reset

func (m *CertSets) Reset()

func (*CertSets) String

func (m *CertSets) String() string

type CryptoType

type CryptoType int32

Public/private keys.

const (
	CryptoType_ECDSA CryptoType = 0
	CryptoType_RSA   CryptoType = 1
	CryptoType_DSA   CryptoType = 2
)

func (CryptoType) String

func (x CryptoType) String() string

type ECAAClient

type ECAAClient interface {
	RegisterUser(ctx context.Context, in *RegisterUserReq, opts ...grpc.CallOption) (*Token, error)
	ReadUserSet(ctx context.Context, in *ReadUserSetReq, opts ...grpc.CallOption) (*UserSet, error)
	RevokeCertificate(ctx context.Context, in *ECertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error)
	PublishCRL(ctx context.Context, in *ECertCRLReq, opts ...grpc.CallOption) (*CAStatus, error)
}

func NewECAAClient

func NewECAAClient(cc *grpc.ClientConn) ECAAClient

type ECAAServer

type ECAAServer interface {
	RegisterUser(context.Context, *RegisterUserReq) (*Token, error)
	ReadUserSet(context.Context, *ReadUserSetReq) (*UserSet, error)
	RevokeCertificate(context.Context, *ECertRevokeReq) (*CAStatus, error)
	PublishCRL(context.Context, *ECertCRLReq) (*CAStatus, error)
}

type ECAPClient

type ECAPClient interface {
	ReadCACertificate(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Cert, error)
	CreateCertificatePair(ctx context.Context, in *ECertCreateReq, opts ...grpc.CallOption) (*ECertCreateResp, error)
	ReadCertificatePair(ctx context.Context, in *ECertReadReq, opts ...grpc.CallOption) (*CertPair, error)
	ReadCertificateByHash(ctx context.Context, in *Hash, opts ...grpc.CallOption) (*Cert, error)
	RevokeCertificatePair(ctx context.Context, in *ECertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error)
}

func NewECAPClient

func NewECAPClient(cc *grpc.ClientConn) ECAPClient

type ECAPServer

type ECAPServer interface {
	ReadCACertificate(context.Context, *Empty) (*Cert, error)
	CreateCertificatePair(context.Context, *ECertCreateReq) (*ECertCreateResp, error)
	ReadCertificatePair(context.Context, *ECertReadReq) (*CertPair, error)
	ReadCertificateByHash(context.Context, *Hash) (*Cert, error)
	RevokeCertificatePair(context.Context, *ECertRevokeReq) (*CAStatus, error)
}

type ECertCRLReq

type ECertCRLReq struct {
	Id  *Identity  `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Sig *Signature `protobuf:"bytes,2,opt,name=sig" json:"sig,omitempty"`
}

func (*ECertCRLReq) GetId

func (m *ECertCRLReq) GetId() *Identity

func (*ECertCRLReq) GetSig

func (m *ECertCRLReq) GetSig() *Signature

func (*ECertCRLReq) ProtoMessage

func (*ECertCRLReq) ProtoMessage()

func (*ECertCRLReq) Reset

func (m *ECertCRLReq) Reset()

func (*ECertCRLReq) String

func (m *ECertCRLReq) String() string

type ECertCreateReq

type ECertCreateReq struct {
	Ts   *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=ts" json:"ts,omitempty"`
	Id   *Identity                  `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Tok  *Token                     `protobuf:"bytes,3,opt,name=tok" json:"tok,omitempty"`
	Sign *PublicKey                 `protobuf:"bytes,4,opt,name=sign" json:"sign,omitempty"`
	Enc  *PublicKey                 `protobuf:"bytes,5,opt,name=enc" json:"enc,omitempty"`
	Sig  *Signature                 `protobuf:"bytes,6,opt,name=sig" json:"sig,omitempty"`
}

Certificate requests.

func (*ECertCreateReq) GetEnc

func (m *ECertCreateReq) GetEnc() *PublicKey

func (*ECertCreateReq) GetId

func (m *ECertCreateReq) GetId() *Identity

func (*ECertCreateReq) GetSig

func (m *ECertCreateReq) GetSig() *Signature

func (*ECertCreateReq) GetSign

func (m *ECertCreateReq) GetSign() *PublicKey

func (*ECertCreateReq) GetTok

func (m *ECertCreateReq) GetTok() *Token

func (*ECertCreateReq) GetTs

func (*ECertCreateReq) ProtoMessage

func (*ECertCreateReq) ProtoMessage()

func (*ECertCreateReq) Reset

func (m *ECertCreateReq) Reset()

func (*ECertCreateReq) String

func (m *ECertCreateReq) String() string

type ECertCreateResp

type ECertCreateResp struct {
	Certs   *CertPair `protobuf:"bytes,1,opt,name=certs" json:"certs,omitempty"`
	Chain   *Token    `protobuf:"bytes,2,opt,name=chain" json:"chain,omitempty"`
	Pkchain []byte    `protobuf:"bytes,4,opt,name=pkchain,proto3" json:"pkchain,omitempty"`
	Tok     *Token    `protobuf:"bytes,3,opt,name=tok" json:"tok,omitempty"`
}

func (*ECertCreateResp) GetCerts

func (m *ECertCreateResp) GetCerts() *CertPair

func (*ECertCreateResp) GetChain

func (m *ECertCreateResp) GetChain() *Token

func (*ECertCreateResp) GetTok

func (m *ECertCreateResp) GetTok() *Token

func (*ECertCreateResp) ProtoMessage

func (*ECertCreateResp) ProtoMessage()

func (*ECertCreateResp) Reset

func (m *ECertCreateResp) Reset()

func (*ECertCreateResp) String

func (m *ECertCreateResp) String() string

type ECertReadReq

type ECertReadReq struct {
	Id *Identity `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*ECertReadReq) GetId

func (m *ECertReadReq) GetId() *Identity

func (*ECertReadReq) ProtoMessage

func (*ECertReadReq) ProtoMessage()

func (*ECertReadReq) Reset

func (m *ECertReadReq) Reset()

func (*ECertReadReq) String

func (m *ECertReadReq) String() string

type ECertRevokeReq

type ECertRevokeReq struct {
	Id   *Identity  `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Cert *Cert      `protobuf:"bytes,2,opt,name=cert" json:"cert,omitempty"`
	Sig  *Signature `protobuf:"bytes,3,opt,name=sig" json:"sig,omitempty"`
}

func (*ECertRevokeReq) GetCert

func (m *ECertRevokeReq) GetCert() *Cert

func (*ECertRevokeReq) GetId

func (m *ECertRevokeReq) GetId() *Identity

func (*ECertRevokeReq) GetSig

func (m *ECertRevokeReq) GetSig() *Signature

func (*ECertRevokeReq) ProtoMessage

func (*ECertRevokeReq) ProtoMessage()

func (*ECertRevokeReq) Reset

func (m *ECertRevokeReq) Reset()

func (*ECertRevokeReq) String

func (m *ECertRevokeReq) String() string

type Empty

type Empty struct {
}

Empty message.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type Hash

type Hash struct {
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) Reset

func (m *Hash) Reset()

func (*Hash) String

func (m *Hash) String() string

type Identity

type Identity struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

Uniquely identifies a user towards either CA.

func (*Identity) ProtoMessage

func (*Identity) ProtoMessage()

func (*Identity) Reset

func (m *Identity) Reset()

func (*Identity) String

func (m *Identity) String() string

type PrivateKey

type PrivateKey struct {
	Type CryptoType `protobuf:"varint,1,opt,name=type,enum=protos.CryptoType" json:"type,omitempty"`
	Key  []byte     `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
}

func (*PrivateKey) ProtoMessage

func (*PrivateKey) ProtoMessage()

func (*PrivateKey) Reset

func (m *PrivateKey) Reset()

func (*PrivateKey) String

func (m *PrivateKey) String() string

type PublicKey

type PublicKey struct {
	Type CryptoType `protobuf:"varint,1,opt,name=type,enum=protos.CryptoType" json:"type,omitempty"`
	Key  []byte     `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
}

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) String

func (m *PublicKey) String() string

type ReadUserSetReq

type ReadUserSetReq struct {
	Req  *Identity  `protobuf:"bytes,1,opt,name=req" json:"req,omitempty"`
	Role Role       `protobuf:"varint,2,opt,name=role,enum=protos.Role" json:"role,omitempty"`
	Sig  *Signature `protobuf:"bytes,3,opt,name=sig" json:"sig,omitempty"`
}

func (*ReadUserSetReq) GetReq

func (m *ReadUserSetReq) GetReq() *Identity

func (*ReadUserSetReq) GetSig

func (m *ReadUserSetReq) GetSig() *Signature

func (*ReadUserSetReq) ProtoMessage

func (*ReadUserSetReq) ProtoMessage()

func (*ReadUserSetReq) Reset

func (m *ReadUserSetReq) Reset()

func (*ReadUserSetReq) String

func (m *ReadUserSetReq) String() string

type RegisterUserReq

type RegisterUserReq struct {
	Id   *Identity `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Role Role      `protobuf:"varint,2,opt,name=role,enum=protos.Role" json:"role,omitempty"`
}

func (*RegisterUserReq) GetId

func (m *RegisterUserReq) GetId() *Identity

func (*RegisterUserReq) ProtoMessage

func (*RegisterUserReq) ProtoMessage()

func (*RegisterUserReq) Reset

func (m *RegisterUserReq) Reset()

func (*RegisterUserReq) String

func (m *RegisterUserReq) String() string

type Role

type Role int32

User registration.

const (
	Role_NONE      Role = 0
	Role_CLIENT    Role = 1
	Role_PEER      Role = 2
	Role_VALIDATOR Role = 4
	Role_AUDITOR   Role = 8
	Role_ALL       Role = 65535
)

func (Role) String

func (x Role) String() string

type Signature

type Signature struct {
	Type CryptoType `protobuf:"varint,1,opt,name=type,enum=protos.CryptoType" json:"type,omitempty"`
	R    []byte     `protobuf:"bytes,2,opt,name=r,proto3" json:"r,omitempty"`
	S    []byte     `protobuf:"bytes,3,opt,name=s,proto3" json:"s,omitempty"`
}

Signature.

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) String

func (m *Signature) String() string

type TCAAClient

type TCAAClient interface {
	ReadCertificateSets(ctx context.Context, in *TCertReadSetsReq, opts ...grpc.CallOption) (*CertSets, error)
	RevokeCertificate(ctx context.Context, in *TCertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error)
	RevokeCertificateSet(ctx context.Context, in *TCertRevokeSetReq, opts ...grpc.CallOption) (*CAStatus, error)
	PublishCRL(ctx context.Context, in *TCertCRLReq, opts ...grpc.CallOption) (*CAStatus, error)
}

func NewTCAAClient

func NewTCAAClient(cc *grpc.ClientConn) TCAAClient

type TCAAServer

type TCAAServer interface {
	ReadCertificateSets(context.Context, *TCertReadSetsReq) (*CertSets, error)
	RevokeCertificate(context.Context, *TCertRevokeReq) (*CAStatus, error)
	RevokeCertificateSet(context.Context, *TCertRevokeSetReq) (*CAStatus, error)
	PublishCRL(context.Context, *TCertCRLReq) (*CAStatus, error)
}

type TCAPClient

type TCAPClient interface {
	ReadCACertificate(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Cert, error)
	CreateCertificate(ctx context.Context, in *TCertCreateReq, opts ...grpc.CallOption) (*TCertCreateResp, error)
	CreateCertificateSet(ctx context.Context, in *TCertCreateSetReq, opts ...grpc.CallOption) (*TCertCreateSetResp, error)
	ReadCertificate(ctx context.Context, in *TCertReadReq, opts ...grpc.CallOption) (*Cert, error)
	ReadCertificateSet(ctx context.Context, in *TCertReadSetReq, opts ...grpc.CallOption) (*CertSet, error)
	RevokeCertificate(ctx context.Context, in *TCertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error)
	RevokeCertificateSet(ctx context.Context, in *TCertRevokeSetReq, opts ...grpc.CallOption) (*CAStatus, error)
}

func NewTCAPClient

func NewTCAPClient(cc *grpc.ClientConn) TCAPClient

type TCAPServer

type TCAPServer interface {
	ReadCACertificate(context.Context, *Empty) (*Cert, error)
	CreateCertificate(context.Context, *TCertCreateReq) (*TCertCreateResp, error)
	CreateCertificateSet(context.Context, *TCertCreateSetReq) (*TCertCreateSetResp, error)
	ReadCertificate(context.Context, *TCertReadReq) (*Cert, error)
	ReadCertificateSet(context.Context, *TCertReadSetReq) (*CertSet, error)
	RevokeCertificate(context.Context, *TCertRevokeReq) (*CAStatus, error)
	RevokeCertificateSet(context.Context, *TCertRevokeSetReq) (*CAStatus, error)
}

type TCertCRLReq

type TCertCRLReq struct {
	Id  *Identity  `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Sig *Signature `protobuf:"bytes,2,opt,name=sig" json:"sig,omitempty"`
}

func (*TCertCRLReq) GetId

func (m *TCertCRLReq) GetId() *Identity

func (*TCertCRLReq) GetSig

func (m *TCertCRLReq) GetSig() *Signature

func (*TCertCRLReq) ProtoMessage

func (*TCertCRLReq) ProtoMessage()

func (*TCertCRLReq) Reset

func (m *TCertCRLReq) Reset()

func (*TCertCRLReq) String

func (m *TCertCRLReq) String() string

type TCertCreateReq

type TCertCreateReq struct {
	Ts  *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=ts" json:"ts,omitempty"`
	Id  *Identity                  `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Pub *PublicKey                 `protobuf:"bytes,3,opt,name=pub" json:"pub,omitempty"`
	Sig *Signature                 `protobuf:"bytes,4,opt,name=sig" json:"sig,omitempty"`
}

func (*TCertCreateReq) GetId

func (m *TCertCreateReq) GetId() *Identity

func (*TCertCreateReq) GetPub

func (m *TCertCreateReq) GetPub() *PublicKey

func (*TCertCreateReq) GetSig

func (m *TCertCreateReq) GetSig() *Signature

func (*TCertCreateReq) GetTs

func (*TCertCreateReq) ProtoMessage

func (*TCertCreateReq) ProtoMessage()

func (*TCertCreateReq) Reset

func (m *TCertCreateReq) Reset()

func (*TCertCreateReq) String

func (m *TCertCreateReq) String() string

type TCertCreateResp

type TCertCreateResp struct {
	Cert *Cert `protobuf:"bytes,1,opt,name=cert" json:"cert,omitempty"`
}

func (*TCertCreateResp) GetCert

func (m *TCertCreateResp) GetCert() *Cert

func (*TCertCreateResp) ProtoMessage

func (*TCertCreateResp) ProtoMessage()

func (*TCertCreateResp) Reset

func (m *TCertCreateResp) Reset()

func (*TCertCreateResp) String

func (m *TCertCreateResp) String() string

type TCertCreateSetReq

type TCertCreateSetReq struct {
	Ts  *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=ts" json:"ts,omitempty"`
	Id  *Identity                  `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Num uint32                     `protobuf:"varint,3,opt,name=num" json:"num,omitempty"`
	Sig *Signature                 `protobuf:"bytes,4,opt,name=sig" json:"sig,omitempty"`
}

func (*TCertCreateSetReq) GetId

func (m *TCertCreateSetReq) GetId() *Identity

func (*TCertCreateSetReq) GetSig

func (m *TCertCreateSetReq) GetSig() *Signature

func (*TCertCreateSetReq) GetTs

func (*TCertCreateSetReq) ProtoMessage

func (*TCertCreateSetReq) ProtoMessage()

func (*TCertCreateSetReq) Reset

func (m *TCertCreateSetReq) Reset()

func (*TCertCreateSetReq) String

func (m *TCertCreateSetReq) String() string

type TCertCreateSetResp

type TCertCreateSetResp struct {
	Certs *CertSet `protobuf:"bytes,1,opt,name=certs" json:"certs,omitempty"`
}

func (*TCertCreateSetResp) GetCerts

func (m *TCertCreateSetResp) GetCerts() *CertSet

func (*TCertCreateSetResp) ProtoMessage

func (*TCertCreateSetResp) ProtoMessage()

func (*TCertCreateSetResp) Reset

func (m *TCertCreateSetResp) Reset()

func (*TCertCreateSetResp) String

func (m *TCertCreateSetResp) String() string

type TCertReadReq

type TCertReadReq struct {
	Ts   *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=ts" json:"ts,omitempty"`
	Hash *Hash                      `protobuf:"bytes,2,opt,name=hash" json:"hash,omitempty"`
	Req  *Identity                  `protobuf:"bytes,3,opt,name=req" json:"req,omitempty"`
	Id   *Identity                  `protobuf:"bytes,4,opt,name=id" json:"id,omitempty"`
	Sig  *Signature                 `protobuf:"bytes,5,opt,name=sig" json:"sig,omitempty"`
}

func (*TCertReadReq) GetHash

func (m *TCertReadReq) GetHash() *Hash

func (*TCertReadReq) GetId

func (m *TCertReadReq) GetId() *Identity

func (*TCertReadReq) GetReq

func (m *TCertReadReq) GetReq() *Identity

func (*TCertReadReq) GetSig

func (m *TCertReadReq) GetSig() *Signature

func (*TCertReadReq) GetTs

func (*TCertReadReq) ProtoMessage

func (*TCertReadReq) ProtoMessage()

func (*TCertReadReq) Reset

func (m *TCertReadReq) Reset()

func (*TCertReadReq) String

func (m *TCertReadReq) String() string

type TCertReadSetReq

type TCertReadSetReq struct {
	Ts  *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=ts" json:"ts,omitempty"`
	Req *Identity                  `protobuf:"bytes,2,opt,name=req" json:"req,omitempty"`
	Id  *Identity                  `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
	Num uint32                     `protobuf:"varint,4,opt,name=num" json:"num,omitempty"`
	Sig *Signature                 `protobuf:"bytes,5,opt,name=sig" json:"sig,omitempty"`
}

func (*TCertReadSetReq) GetId

func (m *TCertReadSetReq) GetId() *Identity

func (*TCertReadSetReq) GetReq

func (m *TCertReadSetReq) GetReq() *Identity

func (*TCertReadSetReq) GetSig

func (m *TCertReadSetReq) GetSig() *Signature

func (*TCertReadSetReq) GetTs

func (*TCertReadSetReq) ProtoMessage

func (*TCertReadSetReq) ProtoMessage()

func (*TCertReadSetReq) Reset

func (m *TCertReadSetReq) Reset()

func (*TCertReadSetReq) String

func (m *TCertReadSetReq) String() string

type TCertReadSetsReq

type TCertReadSetsReq struct {
	Begin *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=begin" json:"begin,omitempty"`
	End   *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=end" json:"end,omitempty"`
	Req   *Identity                  `protobuf:"bytes,3,opt,name=req" json:"req,omitempty"`
	Role  Role                       `protobuf:"varint,4,opt,name=role,enum=protos.Role" json:"role,omitempty"`
	Sig   *Signature                 `protobuf:"bytes,5,opt,name=sig" json:"sig,omitempty"`
}

func (*TCertReadSetsReq) GetBegin

func (*TCertReadSetsReq) GetEnd

func (*TCertReadSetsReq) GetReq

func (m *TCertReadSetsReq) GetReq() *Identity

func (*TCertReadSetsReq) GetSig

func (m *TCertReadSetsReq) GetSig() *Signature

func (*TCertReadSetsReq) ProtoMessage

func (*TCertReadSetsReq) ProtoMessage()

func (*TCertReadSetsReq) Reset

func (m *TCertReadSetsReq) Reset()

func (*TCertReadSetsReq) String

func (m *TCertReadSetsReq) String() string

type TCertRevokeReq

type TCertRevokeReq struct {
	Id   *Identity  `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Cert *Cert      `protobuf:"bytes,2,opt,name=cert" json:"cert,omitempty"`
	Sig  *Signature `protobuf:"bytes,3,opt,name=sig" json:"sig,omitempty"`
}

func (*TCertRevokeReq) GetCert

func (m *TCertRevokeReq) GetCert() *Cert

func (*TCertRevokeReq) GetId

func (m *TCertRevokeReq) GetId() *Identity

func (*TCertRevokeReq) GetSig

func (m *TCertRevokeReq) GetSig() *Signature

func (*TCertRevokeReq) ProtoMessage

func (*TCertRevokeReq) ProtoMessage()

func (*TCertRevokeReq) Reset

func (m *TCertRevokeReq) Reset()

func (*TCertRevokeReq) String

func (m *TCertRevokeReq) String() string

type TCertRevokeSetReq

type TCertRevokeSetReq struct {
	Id  *Identity                  `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Ts  *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=ts" json:"ts,omitempty"`
	Sig *Signature                 `protobuf:"bytes,3,opt,name=sig" json:"sig,omitempty"`
}

func (*TCertRevokeSetReq) GetId

func (m *TCertRevokeSetReq) GetId() *Identity

func (*TCertRevokeSetReq) GetSig

func (m *TCertRevokeSetReq) GetSig() *Signature

func (*TCertRevokeSetReq) GetTs

func (*TCertRevokeSetReq) ProtoMessage

func (*TCertRevokeSetReq) ProtoMessage()

func (*TCertRevokeSetReq) Reset

func (m *TCertRevokeSetReq) Reset()

func (*TCertRevokeSetReq) String

func (m *TCertRevokeSetReq) String() string

type TLSCAAClient

type TLSCAAClient interface {
	RevokeCertificate(ctx context.Context, in *TLSCertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error)
}

func NewTLSCAAClient

func NewTLSCAAClient(cc *grpc.ClientConn) TLSCAAClient

type TLSCAAServer

type TLSCAAServer interface {
	RevokeCertificate(context.Context, *TLSCertRevokeReq) (*CAStatus, error)
}

type TLSCAPClient

type TLSCAPClient interface {
	ReadCACertificate(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Cert, error)
	CreateCertificate(ctx context.Context, in *TLSCertCreateReq, opts ...grpc.CallOption) (*TLSCertCreateResp, error)
	ReadCertificate(ctx context.Context, in *TLSCertReadReq, opts ...grpc.CallOption) (*Cert, error)
	RevokeCertificate(ctx context.Context, in *TLSCertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error)
}

func NewTLSCAPClient

func NewTLSCAPClient(cc *grpc.ClientConn) TLSCAPClient

type TLSCAPServer

type TLSCAPServer interface {
	ReadCACertificate(context.Context, *Empty) (*Cert, error)
	CreateCertificate(context.Context, *TLSCertCreateReq) (*TLSCertCreateResp, error)
	ReadCertificate(context.Context, *TLSCertReadReq) (*Cert, error)
	RevokeCertificate(context.Context, *TLSCertRevokeReq) (*CAStatus, error)
}

type TLSCertCreateReq

type TLSCertCreateReq struct {
	Ts  *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=ts" json:"ts,omitempty"`
	Id  *Identity                  `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Pub *PublicKey                 `protobuf:"bytes,3,opt,name=pub" json:"pub,omitempty"`
	Sig *Signature                 `protobuf:"bytes,4,opt,name=sig" json:"sig,omitempty"`
}

func (*TLSCertCreateReq) GetId

func (m *TLSCertCreateReq) GetId() *Identity

func (*TLSCertCreateReq) GetPub

func (m *TLSCertCreateReq) GetPub() *PublicKey

func (*TLSCertCreateReq) GetSig

func (m *TLSCertCreateReq) GetSig() *Signature

func (*TLSCertCreateReq) GetTs

func (*TLSCertCreateReq) ProtoMessage

func (*TLSCertCreateReq) ProtoMessage()

func (*TLSCertCreateReq) Reset

func (m *TLSCertCreateReq) Reset()

func (*TLSCertCreateReq) String

func (m *TLSCertCreateReq) String() string

type TLSCertCreateResp

type TLSCertCreateResp struct {
	Cert     *Cert `protobuf:"bytes,1,opt,name=cert" json:"cert,omitempty"`
	RootCert *Cert `protobuf:"bytes,2,opt,name=rootCert" json:"rootCert,omitempty"`
}

func (*TLSCertCreateResp) GetCert

func (m *TLSCertCreateResp) GetCert() *Cert

func (*TLSCertCreateResp) GetRootCert

func (m *TLSCertCreateResp) GetRootCert() *Cert

func (*TLSCertCreateResp) ProtoMessage

func (*TLSCertCreateResp) ProtoMessage()

func (*TLSCertCreateResp) Reset

func (m *TLSCertCreateResp) Reset()

func (*TLSCertCreateResp) String

func (m *TLSCertCreateResp) String() string

type TLSCertReadReq

type TLSCertReadReq struct {
	Id *Identity `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*TLSCertReadReq) GetId

func (m *TLSCertReadReq) GetId() *Identity

func (*TLSCertReadReq) ProtoMessage

func (*TLSCertReadReq) ProtoMessage()

func (*TLSCertReadReq) Reset

func (m *TLSCertReadReq) Reset()

func (*TLSCertReadReq) String

func (m *TLSCertReadReq) String() string

type TLSCertRevokeReq

type TLSCertRevokeReq struct {
	Id   *Identity  `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Cert *Cert      `protobuf:"bytes,2,opt,name=cert" json:"cert,omitempty"`
	Sig  *Signature `protobuf:"bytes,3,opt,name=sig" json:"sig,omitempty"`
}

func (*TLSCertRevokeReq) GetCert

func (m *TLSCertRevokeReq) GetCert() *Cert

func (*TLSCertRevokeReq) GetId

func (m *TLSCertRevokeReq) GetId() *Identity

func (*TLSCertRevokeReq) GetSig

func (m *TLSCertRevokeReq) GetSig() *Signature

func (*TLSCertRevokeReq) ProtoMessage

func (*TLSCertRevokeReq) ProtoMessage()

func (*TLSCertRevokeReq) Reset

func (m *TLSCertRevokeReq) Reset()

func (*TLSCertRevokeReq) String

func (m *TLSCertRevokeReq) String() string

type Token

type Token struct {
	Tok []byte `protobuf:"bytes,1,opt,name=tok,proto3" json:"tok,omitempty"`
}

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

type User

type User struct {
	Id   *Identity `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Role Role      `protobuf:"varint,2,opt,name=role,enum=protos.Role" json:"role,omitempty"`
}

func (*User) GetId

func (m *User) GetId() *Identity

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

type UserSet

type UserSet struct {
	Users []*User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
}

func (*UserSet) GetUsers

func (m *UserSet) GetUsers() []*User

func (*UserSet) ProtoMessage

func (*UserSet) ProtoMessage()

func (*UserSet) Reset

func (m *UserSet) Reset()

func (*UserSet) String

func (m *UserSet) String() string

Jump to

Keyboard shortcuts

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