store

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_controller_storage_kms_store_v1_database_key_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_kms_store_v1_oidc_key_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_kms_store_v1_oplog_key_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_kms_store_v1_root_key_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_kms_store_v1_session_key_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_kms_store_v1_token_key_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DatabaseKey

type DatabaseKey struct {

	// private_id is used to access the key via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,10,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// root key id for the key
	// @inject_tag: `gorm:"default:null"`
	RootKeyId string `protobuf:"bytes,20,opt,name=root_key_id,json=rootKeyId,proto3" json:"root_key_id,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,30,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*DatabaseKey) Descriptor deprecated

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

Deprecated: Use DatabaseKey.ProtoReflect.Descriptor instead.

func (*DatabaseKey) GetCreateTime

func (x *DatabaseKey) GetCreateTime() *timestamp.Timestamp

func (*DatabaseKey) GetPrivateId

func (x *DatabaseKey) GetPrivateId() string

func (*DatabaseKey) GetRootKeyId

func (x *DatabaseKey) GetRootKeyId() string

func (*DatabaseKey) ProtoMessage

func (*DatabaseKey) ProtoMessage()

func (*DatabaseKey) ProtoReflect

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

func (*DatabaseKey) Reset

func (x *DatabaseKey) Reset()

func (*DatabaseKey) String

func (x *DatabaseKey) String() string

type DatabaseKeyVersion

type DatabaseKeyVersion struct {

	// private_id is used to access the key version via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,10,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// database id for the key version
	// @inject_tag: `gorm:"default:null"`
	DatabaseKeyId string `protobuf:"bytes,20,opt,name=database_key_id,json=databaseKeyId,proto3" json:"database_key_id,omitempty" gorm:"default:null"`
	// root_key_version_id of the version of the root key data.
	// @inject_tag: `gorm:"default:null"`
	RootKeyVersionId string `` /* 134-byte string literal not displayed */
	// plain-text of the key data.  we are NOT storing this plain-text key
	// in the db.
	// @inject_tag: `gorm:"-" wrapping:"pt,key_data"`
	Key []byte `protobuf:"bytes,40,opt,name=key,proto3" json:"key,omitempty" gorm:"-" wrapping:"pt,key_data"`
	// ciphertext key data stored in the database
	// @inject_tag: `gorm:"column:key;not_null" wrapping:"ct,key_data"`
	CtKey []byte `` /* 127-byte string literal not displayed */
	// version of the key data.  This is not used for optimistic locking, since
	// key versions are immutable.  It's just the version of the key.
	// @inject_tag: `gorm:"default:null"`
	Version uint32 `protobuf:"varint,60,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,70,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*DatabaseKeyVersion) Descriptor deprecated

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

Deprecated: Use DatabaseKeyVersion.ProtoReflect.Descriptor instead.

func (*DatabaseKeyVersion) GetCreateTime

func (x *DatabaseKeyVersion) GetCreateTime() *timestamp.Timestamp

func (*DatabaseKeyVersion) GetCtKey

func (x *DatabaseKeyVersion) GetCtKey() []byte

func (*DatabaseKeyVersion) GetDatabaseKeyId

func (x *DatabaseKeyVersion) GetDatabaseKeyId() string

func (*DatabaseKeyVersion) GetKey

func (x *DatabaseKeyVersion) GetKey() []byte

func (*DatabaseKeyVersion) GetPrivateId

func (x *DatabaseKeyVersion) GetPrivateId() string

func (*DatabaseKeyVersion) GetRootKeyVersionId

func (x *DatabaseKeyVersion) GetRootKeyVersionId() string

func (*DatabaseKeyVersion) GetVersion

func (x *DatabaseKeyVersion) GetVersion() uint32

func (*DatabaseKeyVersion) ProtoMessage

func (*DatabaseKeyVersion) ProtoMessage()

func (*DatabaseKeyVersion) ProtoReflect

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

func (*DatabaseKeyVersion) Reset

func (x *DatabaseKeyVersion) Reset()

func (*DatabaseKeyVersion) String

func (x *DatabaseKeyVersion) String() string

type OidcKey added in v0.1.5

type OidcKey struct {

	// private_id is used to access the key via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,10,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// root key id for the key
	// @inject_tag: `gorm:"default:null"`
	RootKeyId string `protobuf:"bytes,20,opt,name=root_key_id,json=rootKeyId,proto3" json:"root_key_id,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,30,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*OidcKey) Descriptor deprecated added in v0.1.5

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

Deprecated: Use OidcKey.ProtoReflect.Descriptor instead.

func (*OidcKey) GetCreateTime added in v0.1.5

func (x *OidcKey) GetCreateTime() *timestamp.Timestamp

func (*OidcKey) GetPrivateId added in v0.1.5

func (x *OidcKey) GetPrivateId() string

func (*OidcKey) GetRootKeyId added in v0.1.5

func (x *OidcKey) GetRootKeyId() string

func (*OidcKey) ProtoMessage added in v0.1.5

func (*OidcKey) ProtoMessage()

func (*OidcKey) ProtoReflect added in v0.1.5

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

func (*OidcKey) Reset added in v0.1.5

func (x *OidcKey) Reset()

func (*OidcKey) String added in v0.1.5

func (x *OidcKey) String() string

type OidcKeyVersion added in v0.1.5

type OidcKeyVersion struct {

	// private_id is used to access the key version via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,10,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// id for the key version
	// @inject_tag: `gorm:"default:null"`
	OidcKeyId string `protobuf:"bytes,20,opt,name=oidc_key_id,json=oidcKeyId,proto3" json:"oidc_key_id,omitempty" gorm:"default:null"`
	// root_key_version_id of the version of the root key data.
	// @inject_tag: `gorm:"default:null"`
	RootKeyVersionId string `` /* 134-byte string literal not displayed */
	// plain-text of the key data.  we are NOT storing this plain-text key
	// in the db.
	// @inject_tag: `gorm:"-" wrapping:"pt,key_data"`
	Key []byte `protobuf:"bytes,40,opt,name=key,proto3" json:"key,omitempty" gorm:"-" wrapping:"pt,key_data"`
	// ciphertext key data stored in the database
	// @inject_tag: `gorm:"column:key;not_null" wrapping:"ct,key_data"`
	CtKey []byte `` /* 127-byte string literal not displayed */
	// version of the key data.  This is not used for optimistic locking, since
	// key versions are immutable.  It's just the version of the key.
	// @inject_tag: `gorm:"default:null"`
	Version uint32 `protobuf:"varint,60,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,70,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*OidcKeyVersion) Descriptor deprecated added in v0.1.5

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

Deprecated: Use OidcKeyVersion.ProtoReflect.Descriptor instead.

func (*OidcKeyVersion) GetCreateTime added in v0.1.5

func (x *OidcKeyVersion) GetCreateTime() *timestamp.Timestamp

func (*OidcKeyVersion) GetCtKey added in v0.1.5

func (x *OidcKeyVersion) GetCtKey() []byte

func (*OidcKeyVersion) GetKey added in v0.1.5

func (x *OidcKeyVersion) GetKey() []byte

func (*OidcKeyVersion) GetOidcKeyId added in v0.1.5

func (x *OidcKeyVersion) GetOidcKeyId() string

func (*OidcKeyVersion) GetPrivateId added in v0.1.5

func (x *OidcKeyVersion) GetPrivateId() string

func (*OidcKeyVersion) GetRootKeyVersionId added in v0.1.5

func (x *OidcKeyVersion) GetRootKeyVersionId() string

func (*OidcKeyVersion) GetVersion added in v0.1.5

func (x *OidcKeyVersion) GetVersion() uint32

func (*OidcKeyVersion) ProtoMessage added in v0.1.5

func (*OidcKeyVersion) ProtoMessage()

func (*OidcKeyVersion) ProtoReflect added in v0.1.5

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

func (*OidcKeyVersion) Reset added in v0.1.5

func (x *OidcKeyVersion) Reset()

func (*OidcKeyVersion) String added in v0.1.5

func (x *OidcKeyVersion) String() string

type OplogKey

type OplogKey struct {

	// private_id is used to access the key via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,10,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// root key id for the key
	// @inject_tag: `gorm:"default:null"`
	RootKeyId string `protobuf:"bytes,20,opt,name=root_key_id,json=rootKeyId,proto3" json:"root_key_id,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,30,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*OplogKey) Descriptor deprecated

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

Deprecated: Use OplogKey.ProtoReflect.Descriptor instead.

func (*OplogKey) GetCreateTime

func (x *OplogKey) GetCreateTime() *timestamp.Timestamp

func (*OplogKey) GetPrivateId

func (x *OplogKey) GetPrivateId() string

func (*OplogKey) GetRootKeyId

func (x *OplogKey) GetRootKeyId() string

func (*OplogKey) ProtoMessage

func (*OplogKey) ProtoMessage()

func (*OplogKey) ProtoReflect

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

func (*OplogKey) Reset

func (x *OplogKey) Reset()

func (*OplogKey) String

func (x *OplogKey) String() string

type OplogKeyVersion

type OplogKeyVersion struct {

	// private_id is used to access the key version via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,10,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// id for the key version
	// @inject_tag: `gorm:"default:null"`
	OplogKeyId string `protobuf:"bytes,20,opt,name=oplog_key_id,json=oplogKeyId,proto3" json:"oplog_key_id,omitempty" gorm:"default:null"`
	// root_key_version_id of the version of the root key data.
	// @inject_tag: `gorm:"default:null"`
	RootKeyVersionId string `` /* 134-byte string literal not displayed */
	// plain-text of the key data.  we are NOT storing this plain-text key
	// in the db.
	// @inject_tag: `gorm:"-" wrapping:"pt,key_data"`
	Key []byte `protobuf:"bytes,40,opt,name=key,proto3" json:"key,omitempty" gorm:"-" wrapping:"pt,key_data"`
	// ciphertext key data stored in the database
	// @inject_tag: `gorm:"column:key;not_null" wrapping:"ct,key_data"`
	CtKey []byte `` /* 127-byte string literal not displayed */
	// version of the key data.  This is not used for optimistic locking, since
	// key versions are immutable.  It's just the version of the key.
	// @inject_tag: `gorm:"default:null"`
	Version uint32 `protobuf:"varint,60,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,70,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*OplogKeyVersion) Descriptor deprecated

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

Deprecated: Use OplogKeyVersion.ProtoReflect.Descriptor instead.

func (*OplogKeyVersion) GetCreateTime

func (x *OplogKeyVersion) GetCreateTime() *timestamp.Timestamp

func (*OplogKeyVersion) GetCtKey

func (x *OplogKeyVersion) GetCtKey() []byte

func (*OplogKeyVersion) GetKey

func (x *OplogKeyVersion) GetKey() []byte

func (*OplogKeyVersion) GetOplogKeyId

func (x *OplogKeyVersion) GetOplogKeyId() string

func (*OplogKeyVersion) GetPrivateId

func (x *OplogKeyVersion) GetPrivateId() string

func (*OplogKeyVersion) GetRootKeyVersionId

func (x *OplogKeyVersion) GetRootKeyVersionId() string

func (*OplogKeyVersion) GetVersion

func (x *OplogKeyVersion) GetVersion() uint32

func (*OplogKeyVersion) ProtoMessage

func (*OplogKeyVersion) ProtoMessage()

func (*OplogKeyVersion) ProtoReflect

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

func (*OplogKeyVersion) Reset

func (x *OplogKeyVersion) Reset()

func (*OplogKeyVersion) String

func (x *OplogKeyVersion) String() string

type RootKey

type RootKey struct {

	// private_id is used to access the root key via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,1,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// scope id for the root key
	// @inject_tag: `gorm:"default:null"`
	ScopeId string `protobuf:"bytes,2,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*RootKey) Descriptor deprecated

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

Deprecated: Use RootKey.ProtoReflect.Descriptor instead.

func (*RootKey) GetCreateTime

func (x *RootKey) GetCreateTime() *timestamp.Timestamp

func (*RootKey) GetPrivateId

func (x *RootKey) GetPrivateId() string

func (*RootKey) GetScopeId

func (x *RootKey) GetScopeId() string

func (*RootKey) ProtoMessage

func (*RootKey) ProtoMessage()

func (*RootKey) ProtoReflect

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

func (*RootKey) Reset

func (x *RootKey) Reset()

func (*RootKey) String

func (x *RootKey) String() string

type RootKeyVersion

type RootKeyVersion struct {

	// private_id is used to access the root key version via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,1,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// scope id for the root key version
	// @inject_tag: `gorm:"default:null"`
	RootKeyId string `protobuf:"bytes,2,opt,name=root_key_id,json=rootKeyId,proto3" json:"root_key_id,omitempty" gorm:"default:null"`
	// plain-text of the key data.  we are NOT storing this plain-text key
	// in the db.
	// @inject_tag: `gorm:"-" wrapping:"pt,key_data"`
	Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty" gorm:"-" wrapping:"pt,key_data"`
	// ciphertext key data stored in the database
	// @inject_tag: `gorm:"column:key;not_null" wrapping:"ct,key_data"`
	CtKey []byte `` /* 126-byte string literal not displayed */
	// version of the key data.  This is not used for optimistic locking, since
	// key versions are immutable.  It's just the version of the key.
	// @inject_tag: `gorm:"default:null"`
	Version uint32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*RootKeyVersion) Descriptor deprecated

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

Deprecated: Use RootKeyVersion.ProtoReflect.Descriptor instead.

func (*RootKeyVersion) GetCreateTime

func (x *RootKeyVersion) GetCreateTime() *timestamp.Timestamp

func (*RootKeyVersion) GetCtKey

func (x *RootKeyVersion) GetCtKey() []byte

func (*RootKeyVersion) GetKey

func (x *RootKeyVersion) GetKey() []byte

func (*RootKeyVersion) GetPrivateId

func (x *RootKeyVersion) GetPrivateId() string

func (*RootKeyVersion) GetRootKeyId

func (x *RootKeyVersion) GetRootKeyId() string

func (*RootKeyVersion) GetVersion

func (x *RootKeyVersion) GetVersion() uint32

func (*RootKeyVersion) ProtoMessage

func (*RootKeyVersion) ProtoMessage()

func (*RootKeyVersion) ProtoReflect

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

func (*RootKeyVersion) Reset

func (x *RootKeyVersion) Reset()

func (*RootKeyVersion) String

func (x *RootKeyVersion) String() string

type SessionKey

type SessionKey struct {

	// private_id is used to access the key via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,10,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// root key id for the key
	// @inject_tag: `gorm:"default:null"`
	RootKeyId string `protobuf:"bytes,20,opt,name=root_key_id,json=rootKeyId,proto3" json:"root_key_id,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,30,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*SessionKey) Descriptor deprecated

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

Deprecated: Use SessionKey.ProtoReflect.Descriptor instead.

func (*SessionKey) GetCreateTime

func (x *SessionKey) GetCreateTime() *timestamp.Timestamp

func (*SessionKey) GetPrivateId

func (x *SessionKey) GetPrivateId() string

func (*SessionKey) GetRootKeyId

func (x *SessionKey) GetRootKeyId() string

func (*SessionKey) ProtoMessage

func (*SessionKey) ProtoMessage()

func (*SessionKey) ProtoReflect

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

func (*SessionKey) Reset

func (x *SessionKey) Reset()

func (*SessionKey) String

func (x *SessionKey) String() string

type SessionKeyVersion

type SessionKeyVersion struct {

	// private_id is used to access the key version via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,10,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// id for the key version
	// @inject_tag: `gorm:"default:null"`
	SessionKeyId string `protobuf:"bytes,20,opt,name=session_key_id,json=sessionKeyId,proto3" json:"session_key_id,omitempty" gorm:"default:null"`
	// root_key_version_id of the version of the root key data.
	// @inject_tag: `gorm:"default:null"`
	RootKeyVersionId string `` /* 134-byte string literal not displayed */
	// plain-text of the key data.  we are NOT storing this plain-text key
	// in the db.
	// @inject_tag: `gorm:"-" wrapping:"pt,key_data"`
	Key []byte `protobuf:"bytes,40,opt,name=key,proto3" json:"key,omitempty" gorm:"-" wrapping:"pt,key_data"`
	// ciphertext key data stored in the database
	// @inject_tag: `gorm:"column:key;not_null" wrapping:"ct,key_data"`
	CtKey []byte `` /* 127-byte string literal not displayed */
	// version of the key data.  This is not used for optimistic locking, since
	// key versions are immutable.  It's just the version of the key.
	// @inject_tag: `gorm:"default:null"`
	Version uint32 `protobuf:"varint,60,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,70,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*SessionKeyVersion) Descriptor deprecated

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

Deprecated: Use SessionKeyVersion.ProtoReflect.Descriptor instead.

func (*SessionKeyVersion) GetCreateTime

func (x *SessionKeyVersion) GetCreateTime() *timestamp.Timestamp

func (*SessionKeyVersion) GetCtKey

func (x *SessionKeyVersion) GetCtKey() []byte

func (*SessionKeyVersion) GetKey

func (x *SessionKeyVersion) GetKey() []byte

func (*SessionKeyVersion) GetPrivateId

func (x *SessionKeyVersion) GetPrivateId() string

func (*SessionKeyVersion) GetRootKeyVersionId

func (x *SessionKeyVersion) GetRootKeyVersionId() string

func (*SessionKeyVersion) GetSessionKeyId

func (x *SessionKeyVersion) GetSessionKeyId() string

func (*SessionKeyVersion) GetVersion

func (x *SessionKeyVersion) GetVersion() uint32

func (*SessionKeyVersion) ProtoMessage

func (*SessionKeyVersion) ProtoMessage()

func (*SessionKeyVersion) ProtoReflect

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

func (*SessionKeyVersion) Reset

func (x *SessionKeyVersion) Reset()

func (*SessionKeyVersion) String

func (x *SessionKeyVersion) String() string

type TokenKey

type TokenKey struct {

	// private_id is used to access the key via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,10,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// root key id for the key
	// @inject_tag: `gorm:"default:null"`
	RootKeyId string `protobuf:"bytes,20,opt,name=root_key_id,json=rootKeyId,proto3" json:"root_key_id,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,30,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*TokenKey) Descriptor deprecated

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

Deprecated: Use TokenKey.ProtoReflect.Descriptor instead.

func (*TokenKey) GetCreateTime

func (x *TokenKey) GetCreateTime() *timestamp.Timestamp

func (*TokenKey) GetPrivateId

func (x *TokenKey) GetPrivateId() string

func (*TokenKey) GetRootKeyId

func (x *TokenKey) GetRootKeyId() string

func (*TokenKey) ProtoMessage

func (*TokenKey) ProtoMessage()

func (*TokenKey) ProtoReflect

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

func (*TokenKey) Reset

func (x *TokenKey) Reset()

func (*TokenKey) String

func (x *TokenKey) String() string

type TokenKeyVersion

type TokenKeyVersion struct {

	// private_id is used to access the key version via an API
	// @inject_tag: gorm:"primary_key"
	PrivateId string `protobuf:"bytes,10,opt,name=private_id,json=privateId,proto3" json:"private_id,omitempty" gorm:"primary_key"`
	// id for the key version
	// @inject_tag: `gorm:"default:null"`
	TokenKeyId string `protobuf:"bytes,20,opt,name=token_key_id,json=tokenKeyId,proto3" json:"token_key_id,omitempty" gorm:"default:null"`
	// root_key_version_id of the version of the root key data.
	// @inject_tag: `gorm:"default:null"`
	RootKeyVersionId string `` /* 134-byte string literal not displayed */
	// plain-text of the key data.  we are NOT storing this plain-text key
	// in the db.
	// @inject_tag: `gorm:"-" wrapping:"pt,key_data"`
	Key []byte `protobuf:"bytes,40,opt,name=key,proto3" json:"key,omitempty" gorm:"-" wrapping:"pt,key_data"`
	// ciphertext key data stored in the database
	// @inject_tag: `gorm:"column:key;not_null" wrapping:"ct,key_data"`
	CtKey []byte `` /* 127-byte string literal not displayed */
	// version of the key data.  This is not used for optimistic locking, since
	// key versions are immutable.  It's just the version of the key.
	// @inject_tag: `gorm:"default:null"`
	Version uint32 `protobuf:"varint,60,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,70,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// contains filtered or unexported fields
}

func (*TokenKeyVersion) Descriptor deprecated

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

Deprecated: Use TokenKeyVersion.ProtoReflect.Descriptor instead.

func (*TokenKeyVersion) GetCreateTime

func (x *TokenKeyVersion) GetCreateTime() *timestamp.Timestamp

func (*TokenKeyVersion) GetCtKey

func (x *TokenKeyVersion) GetCtKey() []byte

func (*TokenKeyVersion) GetKey

func (x *TokenKeyVersion) GetKey() []byte

func (*TokenKeyVersion) GetPrivateId

func (x *TokenKeyVersion) GetPrivateId() string

func (*TokenKeyVersion) GetRootKeyVersionId

func (x *TokenKeyVersion) GetRootKeyVersionId() string

func (*TokenKeyVersion) GetTokenKeyId

func (x *TokenKeyVersion) GetTokenKeyId() string

func (*TokenKeyVersion) GetVersion

func (x *TokenKeyVersion) GetVersion() uint32

func (*TokenKeyVersion) ProtoMessage

func (*TokenKeyVersion) ProtoMessage()

func (*TokenKeyVersion) ProtoReflect

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

func (*TokenKeyVersion) Reset

func (x *TokenKeyVersion) Reset()

func (*TokenKeyVersion) String

func (x *TokenKeyVersion) String() string

Jump to

Keyboard shortcuts

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