certificatepb

package
v1.87.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package certificatepb contains protobuf definitions for certificate signing.

Index

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

func (*Claim) GetAddr added in v1.72.2

func (m *Claim) GetAddr() []byte

func (*Claim) GetIdentity added in v1.72.2

func (m *Claim) GetIdentity() []byte

func (*Claim) GetSignedChainBytes added in v1.72.2

func (m *Claim) GetSignedChainBytes() [][]byte

func (*Claim) GetTimestamp added in v1.72.2

func (m *Claim) GetTimestamp() int64

func (*Claim) ProtoMessage added in v1.72.2

func (*Claim) ProtoMessage()

func (*Claim) Reset added in v1.72.2

func (m *Claim) Reset()

func (*Claim) String added in v1.72.2

func (m *Claim) String() string

func (*Claim) XXX_DiscardUnknown added in v1.72.2

func (m *Claim) XXX_DiscardUnknown()

func (*Claim) XXX_Marshal added in v1.72.2

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

func (*Claim) XXX_Merge added in v1.72.2

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

func (*Claim) XXX_Size added in v1.72.2

func (m *Claim) XXX_Size() int

func (*Claim) XXX_Unmarshal added in v1.72.2

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

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) Method

func (DRPCCertificatesDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool)

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

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

func (*Token) GetData added in v1.72.2

func (m *Token) GetData() []byte

func (*Token) GetUserId added in v1.72.2

func (m *Token) GetUserId() []byte

func (*Token) ProtoMessage added in v1.72.2

func (*Token) ProtoMessage()

func (*Token) Reset added in v1.72.2

func (m *Token) Reset()

func (*Token) String added in v1.72.2

func (m *Token) String() string

func (*Token) XXX_DiscardUnknown added in v1.72.2

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal added in v1.72.2

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

func (*Token) XXX_Merge added in v1.72.2

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

func (*Token) XXX_Size added in v1.72.2

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal added in v1.72.2

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

Jump to

Keyboard shortcuts

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