storj/certificate/certificatepb/certificate.pb.go
Egon Elbre e9bc06608e certificate/certificatepb: add definitions for migration
Also fixing the timestamp in .proto which was actually int64.

Change-Id: I65e3172793a49bf8bfd946b199016204ed72f221
2023-01-25 10:28:36 +02:00

337 lines
12 KiB
Go

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: certificate.proto
package certificatepb
import (
fmt "fmt"
math "math"
proto "github.com/gogo/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
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 (m *SigningRequest) Reset() { *m = SigningRequest{} }
func (m *SigningRequest) String() string { return proto.CompactTextString(m) }
func (*SigningRequest) ProtoMessage() {}
func (*SigningRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c0d34c34dd33be4b, []int{0}
}
func (m *SigningRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SigningRequest.Unmarshal(m, b)
}
func (m *SigningRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SigningRequest.Marshal(b, m, deterministic)
}
func (m *SigningRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SigningRequest.Merge(m, src)
}
func (m *SigningRequest) XXX_Size() int {
return xxx_messageInfo_SigningRequest.Size(m)
}
func (m *SigningRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SigningRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SigningRequest proto.InternalMessageInfo
func (m *SigningRequest) GetAuthToken() string {
if m != nil {
return m.AuthToken
}
return ""
}
func (m *SigningRequest) GetTimestamp() int64 {
if m != nil {
return m.Timestamp
}
return 0
}
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 (m *SigningResponse) Reset() { *m = SigningResponse{} }
func (m *SigningResponse) String() string { return proto.CompactTextString(m) }
func (*SigningResponse) ProtoMessage() {}
func (*SigningResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c0d34c34dd33be4b, []int{1}
}
func (m *SigningResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SigningResponse.Unmarshal(m, b)
}
func (m *SigningResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SigningResponse.Marshal(b, m, deterministic)
}
func (m *SigningResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SigningResponse.Merge(m, src)
}
func (m *SigningResponse) XXX_Size() int {
return xxx_messageInfo_SigningResponse.Size(m)
}
func (m *SigningResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SigningResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SigningResponse proto.InternalMessageInfo
func (m *SigningResponse) GetChain() [][]byte {
if m != nil {
return m.Chain
}
return nil
}
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 (m *AuthorizationGroup) Reset() { *m = AuthorizationGroup{} }
func (m *AuthorizationGroup) String() string { return proto.CompactTextString(m) }
func (*AuthorizationGroup) ProtoMessage() {}
func (*AuthorizationGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_c0d34c34dd33be4b, []int{2}
}
func (m *AuthorizationGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthorizationGroup.Unmarshal(m, b)
}
func (m *AuthorizationGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthorizationGroup.Marshal(b, m, deterministic)
}
func (m *AuthorizationGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthorizationGroup.Merge(m, src)
}
func (m *AuthorizationGroup) XXX_Size() int {
return xxx_messageInfo_AuthorizationGroup.Size(m)
}
func (m *AuthorizationGroup) XXX_DiscardUnknown() {
xxx_messageInfo_AuthorizationGroup.DiscardUnknown(m)
}
var xxx_messageInfo_AuthorizationGroup proto.InternalMessageInfo
func (m *AuthorizationGroup) GetAuthorizations() []*Authorization {
if m != nil {
return m.Authorizations
}
return nil
}
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 (m *Authorization) Reset() { *m = Authorization{} }
func (m *Authorization) String() string { return proto.CompactTextString(m) }
func (*Authorization) ProtoMessage() {}
func (*Authorization) Descriptor() ([]byte, []int) {
return fileDescriptor_c0d34c34dd33be4b, []int{3}
}
func (m *Authorization) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Authorization.Unmarshal(m, b)
}
func (m *Authorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Authorization.Marshal(b, m, deterministic)
}
func (m *Authorization) XXX_Merge(src proto.Message) {
xxx_messageInfo_Authorization.Merge(m, src)
}
func (m *Authorization) XXX_Size() int {
return xxx_messageInfo_Authorization.Size(m)
}
func (m *Authorization) XXX_DiscardUnknown() {
xxx_messageInfo_Authorization.DiscardUnknown(m)
}
var xxx_messageInfo_Authorization proto.InternalMessageInfo
func (m *Authorization) GetToken() *Token {
if m != nil {
return m.Token
}
return nil
}
func (m *Authorization) GetClaim() *Claim {
if m != nil {
return m.Claim
}
return nil
}
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 (m *Token) Reset() { *m = Token{} }
func (m *Token) String() string { return proto.CompactTextString(m) }
func (*Token) ProtoMessage() {}
func (*Token) Descriptor() ([]byte, []int) {
return fileDescriptor_c0d34c34dd33be4b, []int{4}
}
func (m *Token) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Token.Unmarshal(m, b)
}
func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Token.Marshal(b, m, deterministic)
}
func (m *Token) XXX_Merge(src proto.Message) {
xxx_messageInfo_Token.Merge(m, src)
}
func (m *Token) XXX_Size() int {
return xxx_messageInfo_Token.Size(m)
}
func (m *Token) XXX_DiscardUnknown() {
xxx_messageInfo_Token.DiscardUnknown(m)
}
var xxx_messageInfo_Token proto.InternalMessageInfo
func (m *Token) GetUserId() []byte {
if m != nil {
return m.UserId
}
return nil
}
func (m *Token) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
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 (m *Claim) Reset() { *m = Claim{} }
func (m *Claim) String() string { return proto.CompactTextString(m) }
func (*Claim) ProtoMessage() {}
func (*Claim) Descriptor() ([]byte, []int) {
return fileDescriptor_c0d34c34dd33be4b, []int{5}
}
func (m *Claim) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Claim.Unmarshal(m, b)
}
func (m *Claim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Claim.Marshal(b, m, deterministic)
}
func (m *Claim) XXX_Merge(src proto.Message) {
xxx_messageInfo_Claim.Merge(m, src)
}
func (m *Claim) XXX_Size() int {
return xxx_messageInfo_Claim.Size(m)
}
func (m *Claim) XXX_DiscardUnknown() {
xxx_messageInfo_Claim.DiscardUnknown(m)
}
var xxx_messageInfo_Claim proto.InternalMessageInfo
func (m *Claim) GetAddr() []byte {
if m != nil {
return m.Addr
}
return nil
}
func (m *Claim) GetTimestamp() int64 {
if m != nil {
return m.Timestamp
}
return 0
}
func (m *Claim) GetIdentity() []byte {
if m != nil {
return m.Identity
}
return nil
}
func (m *Claim) GetSignedChainBytes() [][]byte {
if m != nil {
return m.SignedChainBytes
}
return nil
}
func init() {
proto.RegisterType((*SigningRequest)(nil), "node.SigningRequest")
proto.RegisterType((*SigningResponse)(nil), "node.SigningResponse")
proto.RegisterType((*AuthorizationGroup)(nil), "node.AuthorizationGroup")
proto.RegisterType((*Authorization)(nil), "node.Authorization")
proto.RegisterType((*Token)(nil), "node.Token")
proto.RegisterType((*Claim)(nil), "node.Claim")
}
func init() { proto.RegisterFile("certificate.proto", fileDescriptor_c0d34c34dd33be4b) }
var fileDescriptor_c0d34c34dd33be4b = []byte{
// 363 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0xbf, 0x4f, 0xf3, 0x30,
0x10, 0x55, 0xbe, 0x26, 0xfd, 0xe8, 0x35, 0x14, 0x30, 0x45, 0x44, 0x15, 0x48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