Documentation ¶
Overview ¶
Package pb parses protocol buffers with the "proto3" version.
IMPORTANT: When parsing .proto files (at least with "protoc") the output generated contains structs with "omitempty" json tags, when Card and Entry shouldn't, as empty fields won't be printed when editing them. The easiest and "worst" solution is to change them manually, until a solution is found.
Index ¶
- Variables
- type Card
- func (*Card) Descriptor() ([]byte, []int)deprecated
- func (x *Card) GetExpireDate() string
- func (x *Card) GetName() string
- func (x *Card) GetNotes() string
- func (x *Card) GetNumber() string
- func (x *Card) GetSecurityCode() string
- func (x *Card) GetType() string
- func (*Card) ProtoMessage()
- func (x *Card) ProtoReflect() protoreflect.Message
- func (x *Card) Reset()
- func (x *Card) String() string
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetExpires() string
- func (x *Entry) GetName() string
- func (x *Entry) GetNotes() string
- func (x *Entry) GetPassword() string
- func (x *Entry) GetURL() string
- func (x *Entry) GetUsername() string
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (x *Entry) String() string
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetContent() []byte
- func (x *File) GetCreatedAt() int64
- func (x *File) GetName() string
- func (x *File) GetSize() int64
- func (x *File) GetUpdatedAt() int64
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- type FileCheap
- func (*FileCheap) Descriptor() ([]byte, []int)deprecated
- func (x *FileCheap) GetCreatedAt() int64
- func (x *FileCheap) GetName() string
- func (x *FileCheap) GetSize() int64
- func (x *FileCheap) GetUpdatedAt() int64
- func (*FileCheap) ProtoMessage()
- func (x *FileCheap) ProtoReflect() protoreflect.Message
- func (x *FileCheap) Reset()
- func (x *FileCheap) String() string
- type TOTP
Constants ¶
This section is empty.
Variables ¶
View Source
var File_card_proto protoreflect.FileDescriptor
View Source
var File_entry_proto protoreflect.FileDescriptor
View Source
var File_file_proto protoreflect.FileDescriptor
View Source
var File_totp_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type"` Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number"` SecurityCode string `protobuf:"bytes,4,opt,name=security_code,json=securityCode,proto3" json:"security_code"` ExpireDate string `protobuf:"bytes,5,opt,name=expire_date,json=expireDate,proto3" json:"expire_date"` Notes string `protobuf:"bytes,6,opt,name=notes,proto3" json:"notes"` // contains filtered or unexported fields }
func (*Card) Descriptor
deprecated
func (*Card) GetExpireDate ¶
func (*Card) GetSecurityCode ¶
func (*Card) ProtoMessage ¶
func (*Card) ProtoMessage()
func (*Card) ProtoReflect ¶
func (x *Card) ProtoReflect() protoreflect.Message
type Entry ¶
type Entry struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password"` URL string `protobuf:"bytes,4,opt,name=URL,proto3" json:"URL"` Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes"` Expires string `protobuf:"bytes,6,opt,name=expires,proto3" json:"expires"` // contains filtered or unexported fields }
func (*Entry) Descriptor
deprecated
func (*Entry) GetExpires ¶
func (*Entry) GetPassword ¶
func (*Entry) GetUsername ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
type File ¶
type File struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size"` CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at"` UpdatedAt int64 `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at"` // contains filtered or unexported fields }
func (*File) Descriptor
deprecated
func (*File) GetContent ¶
func (*File) GetCreatedAt ¶
func (*File) GetUpdatedAt ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type FileCheap ¶
type FileCheap struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size"` CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at"` UpdatedAt int64 `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at"` // contains filtered or unexported fields }
FileCheap is like File but without the content. It's used to display single files on the terminal.
Fields and numbers must match with File ones.
func (*FileCheap) Descriptor
deprecated
func (*FileCheap) GetCreatedAt ¶
func (*FileCheap) GetUpdatedAt ¶
func (*FileCheap) ProtoMessage ¶
func (*FileCheap) ProtoMessage()
func (*FileCheap) ProtoReflect ¶
func (x *FileCheap) ProtoReflect() protoreflect.Message
type TOTP ¶
type TOTP struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` Raw string `protobuf:"bytes,2,opt,name=raw,proto3" json:"raw"` Digits int32 `protobuf:"varint,3,opt,name=digits,proto3" json:"digits"` // contains filtered or unexported fields }
TOTP represents a Time-based One-Time Password.
func (*TOTP) Descriptor
deprecated
func (*TOTP) ProtoMessage ¶
func (*TOTP) ProtoMessage()
func (*TOTP) ProtoReflect ¶
func (x *TOTP) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.