Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + var CAStatus_StatusCode_name = map[int32]string + var CAStatus_StatusCode_value = map[string]int32 + var CryptoType_name = map[int32]string + var CryptoType_value = map[string]int32 + var Role_name = map[int32]string + var Role_value = map[string]int32 + func RegisterECAAServer(s *grpc.Server, srv ECAAServer) + func RegisterECAPServer(s *grpc.Server, srv ECAPServer) + func RegisterTCAAServer(s *grpc.Server, srv TCAAServer) + func RegisterTCAPServer(s *grpc.Server, srv TCAPServer) + func RegisterTLSCAAServer(s *grpc.Server, srv TLSCAAServer) + func RegisterTLSCAPServer(s *grpc.Server, srv TLSCAPServer) + type CAStatus struct + Status CAStatus_StatusCode + func (*CAStatus) ProtoMessage() + func (m *CAStatus) Reset() + func (m *CAStatus) String() string + type CAStatus_StatusCode int32 + const CAStatus_OK + const CAStatus_UNKNOWN_ERROR + func (x CAStatus_StatusCode) String() string + type Cert struct + Cert []byte + func (*Cert) ProtoMessage() + func (m *Cert) Reset() + func (m *Cert) String() string + type CertPair struct + Enc []byte + Sign []byte + func (*CertPair) ProtoMessage() + func (m *CertPair) Reset() + func (m *CertPair) String() string + type CertSet struct + Certs [][]byte + Id *Identity + Key []byte + Ts *google_protobuf.Timestamp + func (*CertSet) ProtoMessage() + func (m *CertSet) GetId() *Identity + func (m *CertSet) GetTs() *google_protobuf.Timestamp + func (m *CertSet) Reset() + func (m *CertSet) String() string + type CertSets struct + Sets []*CertSet + func (*CertSets) ProtoMessage() + func (m *CertSets) GetSets() []*CertSet + func (m *CertSets) Reset() + func (m *CertSets) String() string + type CryptoType int32 + const CryptoType_DSA + const CryptoType_ECDSA + const CryptoType_RSA + func (x CryptoType) String() string + type ECAAClient interface + PublishCRL func(ctx context.Context, in *ECertCRLReq, opts ...grpc.CallOption) (*CAStatus, error) + ReadUserSet func(ctx context.Context, in *ReadUserSetReq, opts ...grpc.CallOption) (*UserSet, error) + RegisterUser func(ctx context.Context, in *RegisterUserReq, opts ...grpc.CallOption) (*Token, error) + RevokeCertificate func(ctx context.Context, in *ECertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error) + func NewECAAClient(cc *grpc.ClientConn) ECAAClient + type ECAAServer interface + PublishCRL func(context.Context, *ECertCRLReq) (*CAStatus, error) + ReadUserSet func(context.Context, *ReadUserSetReq) (*UserSet, error) + RegisterUser func(context.Context, *RegisterUserReq) (*Token, error) + RevokeCertificate func(context.Context, *ECertRevokeReq) (*CAStatus, error) + type ECAPClient interface + CreateCertificatePair func(ctx context.Context, in *ECertCreateReq, opts ...grpc.CallOption) (*ECertCreateResp, error) + ReadCACertificate func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Cert, error) + ReadCertificateByHash func(ctx context.Context, in *Hash, opts ...grpc.CallOption) (*Cert, error) + ReadCertificatePair func(ctx context.Context, in *ECertReadReq, opts ...grpc.CallOption) (*CertPair, error) + RevokeCertificatePair func(ctx context.Context, in *ECertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error) + func NewECAPClient(cc *grpc.ClientConn) ECAPClient + type ECAPServer interface + CreateCertificatePair func(context.Context, *ECertCreateReq) (*ECertCreateResp, error) + ReadCACertificate func(context.Context, *Empty) (*Cert, error) + ReadCertificateByHash func(context.Context, *Hash) (*Cert, error) + ReadCertificatePair func(context.Context, *ECertReadReq) (*CertPair, error) + RevokeCertificatePair func(context.Context, *ECertRevokeReq) (*CAStatus, error) + type ECertCRLReq struct + Id *Identity + Sig *Signature + func (*ECertCRLReq) ProtoMessage() + func (m *ECertCRLReq) GetId() *Identity + func (m *ECertCRLReq) GetSig() *Signature + func (m *ECertCRLReq) Reset() + func (m *ECertCRLReq) String() string + type ECertCreateReq struct + Enc *PublicKey + Id *Identity + Sig *Signature + Sign *PublicKey + Tok *Token + Ts *google_protobuf.Timestamp + func (*ECertCreateReq) ProtoMessage() + func (m *ECertCreateReq) GetEnc() *PublicKey + func (m *ECertCreateReq) GetId() *Identity + func (m *ECertCreateReq) GetSig() *Signature + func (m *ECertCreateReq) GetSign() *PublicKey + func (m *ECertCreateReq) GetTok() *Token + func (m *ECertCreateReq) GetTs() *google_protobuf.Timestamp + func (m *ECertCreateReq) Reset() + func (m *ECertCreateReq) String() string + type ECertCreateResp struct + Certs *CertPair + Chain *Token + Pkchain []byte + Tok *Token + func (*ECertCreateResp) ProtoMessage() + func (m *ECertCreateResp) GetCerts() *CertPair + func (m *ECertCreateResp) GetChain() *Token + func (m *ECertCreateResp) GetTok() *Token + func (m *ECertCreateResp) Reset() + func (m *ECertCreateResp) String() string + type ECertReadReq struct + Id *Identity + func (*ECertReadReq) ProtoMessage() + func (m *ECertReadReq) GetId() *Identity + func (m *ECertReadReq) Reset() + func (m *ECertReadReq) String() string + type ECertRevokeReq struct + Cert *Cert + Id *Identity + Sig *Signature + func (*ECertRevokeReq) ProtoMessage() + func (m *ECertRevokeReq) GetCert() *Cert + func (m *ECertRevokeReq) GetId() *Identity + func (m *ECertRevokeReq) GetSig() *Signature + func (m *ECertRevokeReq) Reset() + func (m *ECertRevokeReq) String() string + type Empty struct + func (*Empty) ProtoMessage() + func (m *Empty) Reset() + func (m *Empty) String() string + type Hash struct + Hash []byte + func (*Hash) ProtoMessage() + func (m *Hash) Reset() + func (m *Hash) String() string + type Identity struct + Id string + func (*Identity) ProtoMessage() + func (m *Identity) Reset() + func (m *Identity) String() string + type PrivateKey struct + Key []byte + Type CryptoType + func (*PrivateKey) ProtoMessage() + func (m *PrivateKey) Reset() + func (m *PrivateKey) String() string + type PublicKey struct + Key []byte + Type CryptoType + func (*PublicKey) ProtoMessage() + func (m *PublicKey) Reset() + func (m *PublicKey) String() string + type ReadUserSetReq struct + Req *Identity + Role Role + Sig *Signature + func (*ReadUserSetReq) ProtoMessage() + func (m *ReadUserSetReq) GetReq() *Identity + func (m *ReadUserSetReq) GetSig() *Signature + func (m *ReadUserSetReq) Reset() + func (m *ReadUserSetReq) String() string + type RegisterUserReq struct + Id *Identity + Role Role + func (*RegisterUserReq) ProtoMessage() + func (m *RegisterUserReq) GetId() *Identity + func (m *RegisterUserReq) Reset() + func (m *RegisterUserReq) String() string + type Role int32 + const Role_ALL + const Role_AUDITOR + const Role_CLIENT + const Role_NONE + const Role_PEER + const Role_VALIDATOR + func (x Role) String() string + type Signature struct + R []byte + S []byte + Type CryptoType + func (*Signature) ProtoMessage() + func (m *Signature) Reset() + func (m *Signature) String() string + type TCAAClient interface + PublishCRL func(ctx context.Context, in *TCertCRLReq, opts ...grpc.CallOption) (*CAStatus, error) + ReadCertificateSets func(ctx context.Context, in *TCertReadSetsReq, opts ...grpc.CallOption) (*CertSets, error) + RevokeCertificate func(ctx context.Context, in *TCertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error) + RevokeCertificateSet func(ctx context.Context, in *TCertRevokeSetReq, opts ...grpc.CallOption) (*CAStatus, error) + func NewTCAAClient(cc *grpc.ClientConn) TCAAClient + type TCAAServer interface + PublishCRL func(context.Context, *TCertCRLReq) (*CAStatus, error) + ReadCertificateSets func(context.Context, *TCertReadSetsReq) (*CertSets, error) + RevokeCertificate func(context.Context, *TCertRevokeReq) (*CAStatus, error) + RevokeCertificateSet func(context.Context, *TCertRevokeSetReq) (*CAStatus, error) + type TCAPClient interface + CreateCertificate func(ctx context.Context, in *TCertCreateReq, opts ...grpc.CallOption) (*TCertCreateResp, error) + CreateCertificateSet func(ctx context.Context, in *TCertCreateSetReq, opts ...grpc.CallOption) (*TCertCreateSetResp, error) + ReadCACertificate func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Cert, error) + ReadCertificate func(ctx context.Context, in *TCertReadReq, opts ...grpc.CallOption) (*Cert, error) + ReadCertificateSet func(ctx context.Context, in *TCertReadSetReq, opts ...grpc.CallOption) (*CertSet, error) + RevokeCertificate func(ctx context.Context, in *TCertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error) + RevokeCertificateSet func(ctx context.Context, in *TCertRevokeSetReq, opts ...grpc.CallOption) (*CAStatus, error) + func NewTCAPClient(cc *grpc.ClientConn) TCAPClient + type TCAPServer interface + CreateCertificate func(context.Context, *TCertCreateReq) (*TCertCreateResp, error) + CreateCertificateSet func(context.Context, *TCertCreateSetReq) (*TCertCreateSetResp, error) + ReadCACertificate func(context.Context, *Empty) (*Cert, error) + ReadCertificate func(context.Context, *TCertReadReq) (*Cert, error) + ReadCertificateSet func(context.Context, *TCertReadSetReq) (*CertSet, error) + RevokeCertificate func(context.Context, *TCertRevokeReq) (*CAStatus, error) + RevokeCertificateSet func(context.Context, *TCertRevokeSetReq) (*CAStatus, error) + type TCertCRLReq struct + Id *Identity + Sig *Signature + func (*TCertCRLReq) ProtoMessage() + func (m *TCertCRLReq) GetId() *Identity + func (m *TCertCRLReq) GetSig() *Signature + func (m *TCertCRLReq) Reset() + func (m *TCertCRLReq) String() string + type TCertCreateReq struct + Id *Identity + Pub *PublicKey + Sig *Signature + Ts *google_protobuf.Timestamp + func (*TCertCreateReq) ProtoMessage() + func (m *TCertCreateReq) GetId() *Identity + func (m *TCertCreateReq) GetPub() *PublicKey + func (m *TCertCreateReq) GetSig() *Signature + func (m *TCertCreateReq) GetTs() *google_protobuf.Timestamp + func (m *TCertCreateReq) Reset() + func (m *TCertCreateReq) String() string + type TCertCreateResp struct + Cert *Cert + func (*TCertCreateResp) ProtoMessage() + func (m *TCertCreateResp) GetCert() *Cert + func (m *TCertCreateResp) Reset() + func (m *TCertCreateResp) String() string + type TCertCreateSetReq struct + Id *Identity + Num uint32 + Sig *Signature + Ts *google_protobuf.Timestamp + func (*TCertCreateSetReq) ProtoMessage() + func (m *TCertCreateSetReq) GetId() *Identity + func (m *TCertCreateSetReq) GetSig() *Signature + func (m *TCertCreateSetReq) GetTs() *google_protobuf.Timestamp + func (m *TCertCreateSetReq) Reset() + func (m *TCertCreateSetReq) String() string + type TCertCreateSetResp struct + Certs *CertSet + func (*TCertCreateSetResp) ProtoMessage() + func (m *TCertCreateSetResp) GetCerts() *CertSet + func (m *TCertCreateSetResp) Reset() + func (m *TCertCreateSetResp) String() string + type TCertReadReq struct + Hash *Hash + Id *Identity + Req *Identity + Sig *Signature + Ts *google_protobuf.Timestamp + func (*TCertReadReq) ProtoMessage() + func (m *TCertReadReq) GetHash() *Hash + func (m *TCertReadReq) GetId() *Identity + func (m *TCertReadReq) GetReq() *Identity + func (m *TCertReadReq) GetSig() *Signature + func (m *TCertReadReq) GetTs() *google_protobuf.Timestamp + func (m *TCertReadReq) Reset() + func (m *TCertReadReq) String() string + type TCertReadSetReq struct + Id *Identity + Num uint32 + Req *Identity + Sig *Signature + Ts *google_protobuf.Timestamp + func (*TCertReadSetReq) ProtoMessage() + func (m *TCertReadSetReq) GetId() *Identity + func (m *TCertReadSetReq) GetReq() *Identity + func (m *TCertReadSetReq) GetSig() *Signature + func (m *TCertReadSetReq) GetTs() *google_protobuf.Timestamp + func (m *TCertReadSetReq) Reset() + func (m *TCertReadSetReq) String() string + type TCertReadSetsReq struct + Begin *google_protobuf.Timestamp + End *google_protobuf.Timestamp + Req *Identity + Role Role + Sig *Signature + func (*TCertReadSetsReq) ProtoMessage() + func (m *TCertReadSetsReq) GetBegin() *google_protobuf.Timestamp + func (m *TCertReadSetsReq) GetEnd() *google_protobuf.Timestamp + func (m *TCertReadSetsReq) GetReq() *Identity + func (m *TCertReadSetsReq) GetSig() *Signature + func (m *TCertReadSetsReq) Reset() + func (m *TCertReadSetsReq) String() string + type TCertRevokeReq struct + Cert *Cert + Id *Identity + Sig *Signature + func (*TCertRevokeReq) ProtoMessage() + func (m *TCertRevokeReq) GetCert() *Cert + func (m *TCertRevokeReq) GetId() *Identity + func (m *TCertRevokeReq) GetSig() *Signature + func (m *TCertRevokeReq) Reset() + func (m *TCertRevokeReq) String() string + type TCertRevokeSetReq struct + Id *Identity + Sig *Signature + Ts *google_protobuf.Timestamp + func (*TCertRevokeSetReq) ProtoMessage() + func (m *TCertRevokeSetReq) GetId() *Identity + func (m *TCertRevokeSetReq) GetSig() *Signature + func (m *TCertRevokeSetReq) GetTs() *google_protobuf.Timestamp + func (m *TCertRevokeSetReq) Reset() + func (m *TCertRevokeSetReq) String() string + type TLSCAAClient interface + RevokeCertificate func(ctx context.Context, in *TLSCertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error) + func NewTLSCAAClient(cc *grpc.ClientConn) TLSCAAClient + type TLSCAAServer interface + RevokeCertificate func(context.Context, *TLSCertRevokeReq) (*CAStatus, error) + type TLSCAPClient interface + CreateCertificate func(ctx context.Context, in *TLSCertCreateReq, opts ...grpc.CallOption) (*TLSCertCreateResp, error) + ReadCACertificate func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Cert, error) + ReadCertificate func(ctx context.Context, in *TLSCertReadReq, opts ...grpc.CallOption) (*Cert, error) + RevokeCertificate func(ctx context.Context, in *TLSCertRevokeReq, opts ...grpc.CallOption) (*CAStatus, error) + func NewTLSCAPClient(cc *grpc.ClientConn) TLSCAPClient + type TLSCAPServer interface + CreateCertificate func(context.Context, *TLSCertCreateReq) (*TLSCertCreateResp, error) + ReadCACertificate func(context.Context, *Empty) (*Cert, error) + ReadCertificate func(context.Context, *TLSCertReadReq) (*Cert, error) + RevokeCertificate func(context.Context, *TLSCertRevokeReq) (*CAStatus, error) + type TLSCertCreateReq struct + Id *Identity + Pub *PublicKey + Sig *Signature + Ts *google_protobuf.Timestamp + func (*TLSCertCreateReq) ProtoMessage() + func (m *TLSCertCreateReq) GetId() *Identity + func (m *TLSCertCreateReq) GetPub() *PublicKey + func (m *TLSCertCreateReq) GetSig() *Signature + func (m *TLSCertCreateReq) GetTs() *google_protobuf.Timestamp + func (m *TLSCertCreateReq) Reset() + func (m *TLSCertCreateReq) String() string + type TLSCertCreateResp struct + Cert *Cert + RootCert *Cert + func (*TLSCertCreateResp) ProtoMessage() + func (m *TLSCertCreateResp) GetCert() *Cert + func (m *TLSCertCreateResp) GetRootCert() *Cert + func (m *TLSCertCreateResp) Reset() + func (m *TLSCertCreateResp) String() string + type TLSCertReadReq struct + Id *Identity + func (*TLSCertReadReq) ProtoMessage() + func (m *TLSCertReadReq) GetId() *Identity + func (m *TLSCertReadReq) Reset() + func (m *TLSCertReadReq) String() string + type TLSCertRevokeReq struct + Cert *Cert + Id *Identity + Sig *Signature + func (*TLSCertRevokeReq) ProtoMessage() + func (m *TLSCertRevokeReq) GetCert() *Cert + func (m *TLSCertRevokeReq) GetId() *Identity + func (m *TLSCertRevokeReq) GetSig() *Signature + func (m *TLSCertRevokeReq) Reset() + func (m *TLSCertRevokeReq) String() string + type Token struct + Tok []byte + func (*Token) ProtoMessage() + func (m *Token) Reset() + func (m *Token) String() string + type User struct + Id *Identity + Role Role + func (*User) ProtoMessage() + func (m *User) GetId() *Identity + func (m *User) Reset() + func (m *User) String() string + type UserSet struct + Users []*User + func (*UserSet) ProtoMessage() + func (m *UserSet) GetUsers() []*User + func (m *UserSet) Reset() + func (m *UserSet) String() string