Documentation ¶
Overview ¶
Package certificatepb contains protobuf definitions for certificate signing.
Index ¶
- func DRPCRegisterCertificates(mux drpc.Mux, impl DRPCCertificatesServer) error
- type Authorization
- func (*Authorization) Descriptor() ([]byte, []int)
- func (m *Authorization) GetClaim() *Claim
- func (m *Authorization) GetToken() *Token
- func (*Authorization) ProtoMessage()
- func (m *Authorization) Reset()
- func (m *Authorization) String() string
- func (m *Authorization) XXX_DiscardUnknown()
- func (m *Authorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Authorization) XXX_Merge(src proto.Message)
- func (m *Authorization) XXX_Size() int
- func (m *Authorization) XXX_Unmarshal(b []byte) error
- type AuthorizationGroup
- func (*AuthorizationGroup) Descriptor() ([]byte, []int)
- func (m *AuthorizationGroup) GetAuthorizations() []*Authorization
- func (*AuthorizationGroup) ProtoMessage()
- func (m *AuthorizationGroup) Reset()
- func (m *AuthorizationGroup) String() string
- func (m *AuthorizationGroup) XXX_DiscardUnknown()
- func (m *AuthorizationGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorizationGroup) XXX_Merge(src proto.Message)
- func (m *AuthorizationGroup) XXX_Size() int
- func (m *AuthorizationGroup) XXX_Unmarshal(b []byte) error
- type Claim
- func (*Claim) Descriptor() ([]byte, []int)
- func (m *Claim) GetAddr() []byte
- func (m *Claim) GetIdentity() []byte
- func (m *Claim) GetSignedChainBytes() [][]byte
- func (m *Claim) GetTimestamp() int64
- func (*Claim) ProtoMessage()
- func (m *Claim) Reset()
- func (m *Claim) String() string
- func (m *Claim) XXX_DiscardUnknown()
- func (m *Claim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Claim) XXX_Merge(src proto.Message)
- func (m *Claim) XXX_Size() int
- func (m *Claim) XXX_Unmarshal(b []byte) error
- type DRPCCertificatesClient
- type DRPCCertificatesDescription
- type DRPCCertificatesServer
- type DRPCCertificatesUnimplementedServer
- type DRPCCertificates_SignStream
- type SigningRequest
- func (*SigningRequest) Descriptor() ([]byte, []int)
- func (m *SigningRequest) GetAuthToken() string
- func (m *SigningRequest) GetTimestamp() int64
- func (*SigningRequest) ProtoMessage()
- func (m *SigningRequest) Reset()
- func (m *SigningRequest) String() string
- func (m *SigningRequest) XXX_DiscardUnknown()
- func (m *SigningRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SigningRequest) XXX_Merge(src proto.Message)
- func (m *SigningRequest) XXX_Size() int
- func (m *SigningRequest) XXX_Unmarshal(b []byte) error
- type SigningResponse
- func (*SigningResponse) Descriptor() ([]byte, []int)
- func (m *SigningResponse) GetChain() [][]byte
- func (*SigningResponse) ProtoMessage()
- func (m *SigningResponse) Reset()
- func (m *SigningResponse) String() string
- func (m *SigningResponse) XXX_DiscardUnknown()
- func (m *SigningResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SigningResponse) XXX_Merge(src proto.Message)
- func (m *SigningResponse) XXX_Size() int
- func (m *SigningResponse) XXX_Unmarshal(b []byte) error
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetData() []byte
- func (m *Token) GetUserId() []byte
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) String() string
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DRPCRegisterCertificates ¶
func DRPCRegisterCertificates(mux drpc.Mux, impl DRPCCertificatesServer) error
Types ¶
type Authorization ¶ added in v1.72.2
type Authorization struct { Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Claim *Claim `protobuf:"bytes,2,opt,name=claim,proto3" json:"claim,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Authorization) Descriptor ¶ added in v1.72.2
func (*Authorization) Descriptor() ([]byte, []int)
func (*Authorization) GetClaim ¶ added in v1.72.2
func (m *Authorization) GetClaim() *Claim
func (*Authorization) GetToken ¶ added in v1.72.2
func (m *Authorization) GetToken() *Token
func (*Authorization) ProtoMessage ¶ added in v1.72.2
func (*Authorization) ProtoMessage()
func (*Authorization) Reset ¶ added in v1.72.2
func (m *Authorization) Reset()
func (*Authorization) String ¶ added in v1.72.2
func (m *Authorization) String() string
func (*Authorization) XXX_DiscardUnknown ¶ added in v1.72.2
func (m *Authorization) XXX_DiscardUnknown()
func (*Authorization) XXX_Marshal ¶ added in v1.72.2
func (m *Authorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Authorization) XXX_Merge ¶ added in v1.72.2
func (m *Authorization) XXX_Merge(src proto.Message)
func (*Authorization) XXX_Size ¶ added in v1.72.2
func (m *Authorization) XXX_Size() int
func (*Authorization) XXX_Unmarshal ¶ added in v1.72.2
func (m *Authorization) XXX_Unmarshal(b []byte) error
type AuthorizationGroup ¶ added in v1.72.2
type AuthorizationGroup struct { Authorizations []*Authorization `protobuf:"bytes,1,rep,name=authorizations,proto3" json:"authorizations,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthorizationGroup) Descriptor ¶ added in v1.72.2
func (*AuthorizationGroup) Descriptor() ([]byte, []int)
func (*AuthorizationGroup) GetAuthorizations ¶ added in v1.72.2
func (m *AuthorizationGroup) GetAuthorizations() []*Authorization
func (*AuthorizationGroup) ProtoMessage ¶ added in v1.72.2
func (*AuthorizationGroup) ProtoMessage()
func (*AuthorizationGroup) Reset ¶ added in v1.72.2
func (m *AuthorizationGroup) Reset()
func (*AuthorizationGroup) String ¶ added in v1.72.2
func (m *AuthorizationGroup) String() string
func (*AuthorizationGroup) XXX_DiscardUnknown ¶ added in v1.72.2
func (m *AuthorizationGroup) XXX_DiscardUnknown()
func (*AuthorizationGroup) XXX_Marshal ¶ added in v1.72.2
func (m *AuthorizationGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthorizationGroup) XXX_Merge ¶ added in v1.72.2
func (m *AuthorizationGroup) XXX_Merge(src proto.Message)
func (*AuthorizationGroup) XXX_Size ¶ added in v1.72.2
func (m *AuthorizationGroup) XXX_Size() int
func (*AuthorizationGroup) XXX_Unmarshal ¶ added in v1.72.2
func (m *AuthorizationGroup) XXX_Unmarshal(b []byte) error
type Claim ¶ added in v1.72.2
type Claim struct { Addr []byte `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Identity []byte `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` SignedChainBytes [][]byte `protobuf:"bytes,4,rep,name=signed_chain_bytes,json=signedChainBytes,proto3" json:"signed_chain_bytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Claim) Descriptor ¶ added in v1.72.2
func (*Claim) GetIdentity ¶ added in v1.72.2
func (*Claim) GetSignedChainBytes ¶ added in v1.72.2
func (*Claim) GetTimestamp ¶ added in v1.72.2
func (*Claim) ProtoMessage ¶ added in v1.72.2
func (*Claim) ProtoMessage()
func (*Claim) XXX_DiscardUnknown ¶ added in v1.72.2
func (m *Claim) XXX_DiscardUnknown()
func (*Claim) XXX_Marshal ¶ added in v1.72.2
func (*Claim) XXX_Unmarshal ¶ added in v1.72.2
type DRPCCertificatesClient ¶
type DRPCCertificatesClient interface { DRPCConn() drpc.Conn Sign(ctx context.Context, in *SigningRequest) (*SigningResponse, error) }
func NewDRPCCertificatesClient ¶
func NewDRPCCertificatesClient(cc drpc.Conn) DRPCCertificatesClient
type DRPCCertificatesDescription ¶
type DRPCCertificatesDescription struct{}
func (DRPCCertificatesDescription) NumMethods ¶
func (DRPCCertificatesDescription) NumMethods() int
type DRPCCertificatesServer ¶
type DRPCCertificatesServer interface {
Sign(context.Context, *SigningRequest) (*SigningResponse, error)
}
type DRPCCertificatesUnimplementedServer ¶
type DRPCCertificatesUnimplementedServer struct{}
func (*DRPCCertificatesUnimplementedServer) Sign ¶
func (s *DRPCCertificatesUnimplementedServer) Sign(context.Context, *SigningRequest) (*SigningResponse, error)
type DRPCCertificates_SignStream ¶
type DRPCCertificates_SignStream interface { drpc.Stream SendAndClose(*SigningResponse) error }
type SigningRequest ¶
type SigningRequest struct { AuthToken string `protobuf:"bytes,1,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SigningRequest) Descriptor ¶
func (*SigningRequest) Descriptor() ([]byte, []int)
func (*SigningRequest) GetAuthToken ¶
func (m *SigningRequest) GetAuthToken() string
func (*SigningRequest) GetTimestamp ¶
func (m *SigningRequest) GetTimestamp() int64
func (*SigningRequest) ProtoMessage ¶
func (*SigningRequest) ProtoMessage()
func (*SigningRequest) Reset ¶
func (m *SigningRequest) Reset()
func (*SigningRequest) String ¶
func (m *SigningRequest) String() string
func (*SigningRequest) XXX_DiscardUnknown ¶
func (m *SigningRequest) XXX_DiscardUnknown()
func (*SigningRequest) XXX_Marshal ¶
func (m *SigningRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SigningRequest) XXX_Merge ¶
func (m *SigningRequest) XXX_Merge(src proto.Message)
func (*SigningRequest) XXX_Size ¶
func (m *SigningRequest) XXX_Size() int
func (*SigningRequest) XXX_Unmarshal ¶
func (m *SigningRequest) XXX_Unmarshal(b []byte) error
type SigningResponse ¶
type SigningResponse struct { Chain [][]byte `protobuf:"bytes,1,rep,name=chain,proto3" json:"chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SigningResponse) Descriptor ¶
func (*SigningResponse) Descriptor() ([]byte, []int)
func (*SigningResponse) GetChain ¶
func (m *SigningResponse) GetChain() [][]byte
func (*SigningResponse) ProtoMessage ¶
func (*SigningResponse) ProtoMessage()
func (*SigningResponse) Reset ¶
func (m *SigningResponse) Reset()
func (*SigningResponse) String ¶
func (m *SigningResponse) String() string
func (*SigningResponse) XXX_DiscardUnknown ¶
func (m *SigningResponse) XXX_DiscardUnknown()
func (*SigningResponse) XXX_Marshal ¶
func (m *SigningResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SigningResponse) XXX_Merge ¶
func (m *SigningResponse) XXX_Merge(src proto.Message)
func (*SigningResponse) XXX_Size ¶
func (m *SigningResponse) XXX_Size() int
func (*SigningResponse) XXX_Unmarshal ¶
func (m *SigningResponse) XXX_Unmarshal(b []byte) error
type Token ¶ added in v1.72.2
type Token struct { UserId []byte `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Token) Descriptor ¶ added in v1.72.2
func (*Token) ProtoMessage ¶ added in v1.72.2
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶ added in v1.72.2
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶ added in v1.72.2
func (*Token) XXX_Unmarshal ¶ added in v1.72.2
Click to show internal directories.
Click to hide internal directories.