pb

package
v0.0.0-...-9bbed00 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyType_name = map[int32]string{
		0: "KEYTYPE_UNKNOWN",
		1: "KEYTYPE_SECRETBOX",
		2: "KEYTYPE_RSA",
	}
	KeyType_value = map[string]int32{
		"KEYTYPE_UNKNOWN":   0,
		"KEYTYPE_SECRETBOX": 1,
		"KEYTYPE_RSA":       2,
	}
)

Enum value maps for KeyType.

View Source
var (
	EncryptionMethod_name = map[int32]string{
		0: "ENCRYPTIONMETHOD_UNKNOWN",
		1: "ENCRYPTIONMETHOD_SECRETBOX",
	}
	EncryptionMethod_value = map[string]int32{
		"ENCRYPTIONMETHOD_UNKNOWN":   0,
		"ENCRYPTIONMETHOD_SECRETBOX": 1,
	}
)

Enum value maps for EncryptionMethod.

View Source
var File_components_keystore_pb_keystore_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EncryptedData

type EncryptedData struct {
	EncryptionMethod EncryptionMethod `` /* 135-byte string literal not displayed */
	KeyId            int32            `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	Nonce            []byte           `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Ciphertext       []byte           `protobuf:"bytes,4,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptedData) Descriptor deprecated

func (*EncryptedData) Descriptor() ([]byte, []int)

Deprecated: Use EncryptedData.ProtoReflect.Descriptor instead.

func (*EncryptedData) GetCiphertext

func (x *EncryptedData) GetCiphertext() []byte

func (*EncryptedData) GetEncryptionMethod

func (x *EncryptedData) GetEncryptionMethod() EncryptionMethod

func (*EncryptedData) GetKeyId

func (x *EncryptedData) GetKeyId() int32

func (*EncryptedData) GetNonce

func (x *EncryptedData) GetNonce() []byte

func (*EncryptedData) ProtoMessage

func (*EncryptedData) ProtoMessage()

func (*EncryptedData) ProtoReflect

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

func (*EncryptedData) Reset

func (x *EncryptedData) Reset()

func (*EncryptedData) String

func (x *EncryptedData) String() string

type EncryptionMethod

type EncryptionMethod int32
const (
	EncryptionMethod_ENCRYPTIONMETHOD_UNKNOWN   EncryptionMethod = 0
	EncryptionMethod_ENCRYPTIONMETHOD_SECRETBOX EncryptionMethod = 1
)

func (EncryptionMethod) Descriptor

func (EncryptionMethod) Enum

func (EncryptionMethod) EnumDescriptor deprecated

func (EncryptionMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use EncryptionMethod.Descriptor instead.

func (EncryptionMethod) Number

func (EncryptionMethod) String

func (x EncryptionMethod) String() string

func (EncryptionMethod) Type

type KeyData

type KeyData struct {
	Id      int32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Secret  []byte  `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	Created int64   `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
	KeyType KeyType `protobuf:"varint,4,opt,name=key_type,json=keyType,proto3,enum=pb.KeyType" json:"key_type,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyData) Descriptor deprecated

func (*KeyData) Descriptor() ([]byte, []int)

Deprecated: Use KeyData.ProtoReflect.Descriptor instead.

func (*KeyData) GetCreated

func (x *KeyData) GetCreated() int64

func (*KeyData) GetId

func (x *KeyData) GetId() int32

func (*KeyData) GetKeyType

func (x *KeyData) GetKeyType() KeyType

func (*KeyData) GetSecret

func (x *KeyData) GetSecret() []byte

func (*KeyData) ProtoMessage

func (*KeyData) ProtoMessage()

func (*KeyData) ProtoReflect

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

func (*KeyData) Reset

func (x *KeyData) Reset()

func (*KeyData) String

func (x *KeyData) String() string

type KeySetData

type KeySetData struct {
	Keys     []*KeyData `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	ActiveId int32      `protobuf:"varint,2,opt,name=active_id,json=activeId,proto3" json:"active_id,omitempty"`
	// contains filtered or unexported fields
}

func (*KeySetData) Descriptor deprecated

func (*KeySetData) Descriptor() ([]byte, []int)

Deprecated: Use KeySetData.ProtoReflect.Descriptor instead.

func (*KeySetData) GetActiveId

func (x *KeySetData) GetActiveId() int32

func (*KeySetData) GetKeys

func (x *KeySetData) GetKeys() []*KeyData

func (*KeySetData) ProtoMessage

func (*KeySetData) ProtoMessage()

func (*KeySetData) ProtoReflect

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

func (*KeySetData) Reset

func (x *KeySetData) Reset()

func (*KeySetData) String

func (x *KeySetData) String() string

type KeyType

type KeyType int32
const (
	KeyType_KEYTYPE_UNKNOWN   KeyType = 0
	KeyType_KEYTYPE_SECRETBOX KeyType = 1
	KeyType_KEYTYPE_RSA       KeyType = 2
)

func (KeyType) Descriptor

func (KeyType) Descriptor() protoreflect.EnumDescriptor

func (KeyType) Enum

func (x KeyType) Enum() *KeyType

func (KeyType) EnumDescriptor deprecated

func (KeyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use KeyType.Descriptor instead.

func (KeyType) Number

func (x KeyType) Number() protoreflect.EnumNumber

func (KeyType) String

func (x KeyType) String() string

func (KeyType) Type

func (KeyType) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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