pb

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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 solution is to change them manually, until a better one is found.

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Card.ProtoReflect.Descriptor instead.

func (*Card) GetExpireDate

func (x *Card) GetExpireDate() string

func (*Card) GetName

func (x *Card) GetName() string

func (*Card) GetNotes

func (x *Card) GetNotes() string

func (*Card) GetNumber

func (x *Card) GetNumber() string

func (*Card) GetSecurityCode

func (x *Card) GetSecurityCode() string

func (*Card) GetType

func (x *Card) GetType() string

func (*Card) ProtoMessage

func (*Card) ProtoMessage()

func (*Card) ProtoReflect

func (x *Card) ProtoReflect() protoreflect.Message

func (*Card) Reset

func (x *Card) Reset()

func (*Card) String

func (x *Card) String() string

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

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetExpires

func (x *Entry) GetExpires() string

func (*Entry) GetName

func (x *Entry) GetName() string

func (*Entry) GetNotes

func (x *Entry) GetNotes() string

func (*Entry) GetPassword

func (x *Entry) GetPassword() string

func (*Entry) GetURL

func (x *Entry) GetURL() string

func (*Entry) GetUsername

func (x *Entry) GetUsername() string

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetContent

func (x *File) GetContent() []byte

func (*File) GetCreatedAt

func (x *File) GetCreatedAt() int64

func (*File) GetName

func (x *File) GetName() string

func (*File) GetSize

func (x *File) GetSize() int64

func (*File) GetUpdatedAt

func (x *File) GetUpdatedAt() int64

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

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

Deprecated: Use FileCheap.ProtoReflect.Descriptor instead.

func (*FileCheap) GetCreatedAt

func (x *FileCheap) GetCreatedAt() int64

func (*FileCheap) GetName

func (x *FileCheap) GetName() string

func (*FileCheap) GetSize

func (x *FileCheap) GetSize() int64

func (*FileCheap) GetUpdatedAt

func (x *FileCheap) GetUpdatedAt() int64

func (*FileCheap) ProtoMessage

func (*FileCheap) ProtoMessage()

func (*FileCheap) ProtoReflect

func (x *FileCheap) ProtoReflect() protoreflect.Message

func (*FileCheap) Reset

func (x *FileCheap) Reset()

func (*FileCheap) String

func (x *FileCheap) String() string

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

Deprecated: Use TOTP.ProtoReflect.Descriptor instead.

func (*TOTP) GetDigits

func (x *TOTP) GetDigits() int32

func (*TOTP) GetName

func (x *TOTP) GetName() string

func (*TOTP) GetRaw

func (x *TOTP) GetRaw() string

func (*TOTP) ProtoMessage

func (*TOTP) ProtoMessage()

func (*TOTP) ProtoReflect

func (x *TOTP) ProtoReflect() protoreflect.Message

func (*TOTP) Reset

func (x *TOTP) Reset()

func (*TOTP) String

func (x *TOTP) String() string

Jump to

Keyboard shortcuts

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