store

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_controller_storage_credential_static_store_v1_static_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CredentialStore

type CredentialStore struct {

	// public_id is a surrogate key suitable for use in a public API.
	// @inject_tag: `gorm:"primary_key"`
	PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"`
	// The create_time is set by the database.
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// The update_time is set by the database.
	// @inject_tag: `gorm:"default:current_timestamp"`
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"`
	// name is optional. If set, it must be unique within project_id.
	// @inject_tag: `gorm:"default:null"`
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" gorm:"default:null"`
	// description is optional.
	// @inject_tag: `gorm:"default:null"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" gorm:"default:null"`
	// The project_id of the owning scope.
	// It must be set.
	// @inject_tag: `gorm:"not_null"`
	ProjectId string `protobuf:"bytes,6,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty" gorm:"not_null"`
	// version allows optimistic locking of the resource.
	// @inject_tag: `gorm:"default:null"`
	Version uint32 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
	// contains filtered or unexported fields
}

func (*CredentialStore) Descriptor deprecated

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

Deprecated: Use CredentialStore.ProtoReflect.Descriptor instead.

func (*CredentialStore) GetCreateTime

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

func (*CredentialStore) GetDescription

func (x *CredentialStore) GetDescription() string

func (*CredentialStore) GetName

func (x *CredentialStore) GetName() string

func (*CredentialStore) GetProjectId added in v0.10.2

func (x *CredentialStore) GetProjectId() string

func (*CredentialStore) GetPublicId

func (x *CredentialStore) GetPublicId() string

func (*CredentialStore) GetUpdateTime

func (x *CredentialStore) GetUpdateTime() *timestamp.Timestamp

func (*CredentialStore) GetVersion

func (x *CredentialStore) GetVersion() uint32

func (*CredentialStore) ProtoMessage

func (*CredentialStore) ProtoMessage()

func (*CredentialStore) ProtoReflect

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

func (*CredentialStore) Reset

func (x *CredentialStore) Reset()

func (*CredentialStore) String

func (x *CredentialStore) String() string

type JsonCredential added in v0.11.0

type JsonCredential struct {

	// public_id is a surrogate key suitable for use in a public API.
	// @inject_tag: `gorm:"primary_key"`
	PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"`
	// create_time is set by the database.
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// update_time is set by the database.
	// @inject_tag: `gorm:"default:current_timestamp"`
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"`
	// name is optional. If set, it must be unique within scope_id.
	// @inject_tag: `gorm:"default:null"`
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" gorm:"default:null"`
	// description is optional.
	// @inject_tag: `gorm:"default:null"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" gorm:"default:null"`
	// store_id of the owning static credential store.
	// It must be set.
	// @inject_tag: `gorm:"not_null"`
	StoreId string `protobuf:"bytes,6,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty" gorm:"not_null"`
	// version allows optimistic locking of the resource.
	// @inject_tag: `gorm:"default:null"`
	Version uint32 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
	// object is the plain-text of the json associated with the
	// credential. We are not storing this plain-text object in the database.
	// @inject_tag: `gorm:"-" wrapping:"pt,object"`
	Object []byte `protobuf:"bytes,8,opt,name=object,proto3" json:"object,omitempty" gorm:"-" wrapping:"pt,object"`
	// object_encrypted is the ciphertext of the object. It is stored in
	// the database.
	// @inject_tag: `gorm:"column:object_encrypted;not_null" wrapping:"ct,object"`
	ObjectEncrypted []byte `` /* 167-byte string literal not displayed */
	// object_hmac is a sha256-hmac of the unencrypted object. It is recalculated
	// everytime the object is updated.
	// @inject_tag: `gorm:"not_null"`
	ObjectHmac []byte `protobuf:"bytes,10,opt,name=object_hmac,json=objectHmac,proto3" json:"object_hmac,omitempty" gorm:"not_null"`
	// The key_id of the kms database key used for encrypting this entry.
	// It must be set.
	// @inject_tag: `gorm:"not_null"`
	KeyId string `protobuf:"bytes,11,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty" gorm:"not_null"`
	// contains filtered or unexported fields
}

func (*JsonCredential) Descriptor deprecated added in v0.11.0

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

Deprecated: Use JsonCredential.ProtoReflect.Descriptor instead.

func (*JsonCredential) GetCreateTime added in v0.11.0

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

func (*JsonCredential) GetDescription added in v0.11.0

func (x *JsonCredential) GetDescription() string

func (*JsonCredential) GetKeyId added in v0.11.0

func (x *JsonCredential) GetKeyId() string

func (*JsonCredential) GetName added in v0.11.0

func (x *JsonCredential) GetName() string

func (*JsonCredential) GetObject added in v0.11.0

func (x *JsonCredential) GetObject() []byte

func (*JsonCredential) GetObjectEncrypted added in v0.11.0

func (x *JsonCredential) GetObjectEncrypted() []byte

func (*JsonCredential) GetObjectHmac added in v0.11.0

func (x *JsonCredential) GetObjectHmac() []byte

func (*JsonCredential) GetPublicId added in v0.11.0

func (x *JsonCredential) GetPublicId() string

func (*JsonCredential) GetStoreId added in v0.11.0

func (x *JsonCredential) GetStoreId() string

func (*JsonCredential) GetUpdateTime added in v0.11.0

func (x *JsonCredential) GetUpdateTime() *timestamp.Timestamp

func (*JsonCredential) GetVersion added in v0.11.0

func (x *JsonCredential) GetVersion() uint32

func (*JsonCredential) ProtoMessage added in v0.11.0

func (*JsonCredential) ProtoMessage()

func (*JsonCredential) ProtoReflect added in v0.11.0

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

func (*JsonCredential) Reset added in v0.11.0

func (x *JsonCredential) Reset()

func (*JsonCredential) String added in v0.11.0

func (x *JsonCredential) String() string

type SshPrivateKeyCredential added in v0.10.0

type SshPrivateKeyCredential struct {

	// public_id is a surrogate key suitable for use in a public API.
	// @inject_tag: `gorm:"primary_key"`
	PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"`
	// create_time is set by the database.
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// update_time is set by the database.
	// @inject_tag: `gorm:"default:current_timestamp"`
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"`
	// name is optional. If set, it must be unique within project_id.
	// @inject_tag: `gorm:"default:null"`
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" gorm:"default:null"`
	// description is optional.
	// @inject_tag: `gorm:"default:null"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" gorm:"default:null"`
	// store_id of the owning static credential store.
	// It must be set.
	// @inject_tag: `gorm:"not_null"`
	StoreId string `protobuf:"bytes,6,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty" gorm:"not_null"`
	// version allows optimistic locking of the resource.
	// @inject_tag: `gorm:"default:null"`
	Version uint32 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
	// username is the username associated with the credential.
	// It must be set.
	// @inject_tag: `gorm:"not_null"`
	Username string `protobuf:"bytes,8,opt,name=username,proto3" json:"username,omitempty" gorm:"not_null"`
	// private_key is the plain-text of the private key associated with the
	// credential. We are not storing this plain-text private key in the database.
	// @inject_tag: `gorm:"-" wrapping:"pt,private_key"`
	PrivateKey []byte `` /* 126-byte string literal not displayed */
	// private_key_encrypted is the ciphertext of the private key. It is stored in
	// the database.
	// @inject_tag: `gorm:"column:private_key_encrypted;not_null" wrapping:"ct,private_key"`
	PrivateKeyEncrypted []byte `` /* 192-byte string literal not displayed */
	// private_key_hmac is a sha256-hmac of the unencrypted private key.  It is recalculated
	// everytime the private key is updated.
	// @inject_tag: `gorm:"not_null"`
	PrivateKeyHmac []byte `protobuf:"bytes,11,opt,name=private_key_hmac,json=privateKeyHmac,proto3" json:"private_key_hmac,omitempty" gorm:"not_null"`
	// The key_id of the kms database key used for encrypting this entry.
	// It must be set.
	// @inject_tag: `gorm:"not_null"`
	KeyId string `protobuf:"bytes,12,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty" gorm:"not_null"`
	// private_key_passphrase is the plain-text of the passphrase of the SSH private
	// key associated with the credential. We are not storing this plain-text
	// private key passphrase in the database.
	// @inject_tag: `gorm:"-"`
	PrivateKeyPassphrase []byte `` /* 133-byte string literal not displayed */
	// private_key_passphrase_encrypted is the ciphertext of the private key passphrase. It is stored in
	// the database.
	// @inject_tag: `gorm:"column:private_key_passphrase_encrypted;not_null"`
	PrivateKeyPassphraseEncrypted []byte `` /* 209-byte string literal not displayed */
	// private_key_passphrase_hmac is a sha256-hmac of the unencrypted private key passphrase.  It is recalculated
	// everytime the private key passphrase is updated.
	// @inject_tag: `gorm:"not_null"`
	PrivateKeyPassphraseHmac []byte `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SshPrivateKeyCredential) Descriptor deprecated added in v0.10.0

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

Deprecated: Use SshPrivateKeyCredential.ProtoReflect.Descriptor instead.

func (*SshPrivateKeyCredential) GetCreateTime added in v0.10.0

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

func (*SshPrivateKeyCredential) GetDescription added in v0.10.0

func (x *SshPrivateKeyCredential) GetDescription() string

func (*SshPrivateKeyCredential) GetKeyId added in v0.10.0

func (x *SshPrivateKeyCredential) GetKeyId() string

func (*SshPrivateKeyCredential) GetName added in v0.10.0

func (x *SshPrivateKeyCredential) GetName() string

func (*SshPrivateKeyCredential) GetPrivateKey added in v0.10.0

func (x *SshPrivateKeyCredential) GetPrivateKey() []byte

func (*SshPrivateKeyCredential) GetPrivateKeyEncrypted added in v0.10.0

func (x *SshPrivateKeyCredential) GetPrivateKeyEncrypted() []byte

func (*SshPrivateKeyCredential) GetPrivateKeyHmac added in v0.10.0

func (x *SshPrivateKeyCredential) GetPrivateKeyHmac() []byte

func (*SshPrivateKeyCredential) GetPrivateKeyPassphrase added in v0.10.0

func (x *SshPrivateKeyCredential) GetPrivateKeyPassphrase() []byte

func (*SshPrivateKeyCredential) GetPrivateKeyPassphraseEncrypted added in v0.10.0

func (x *SshPrivateKeyCredential) GetPrivateKeyPassphraseEncrypted() []byte

func (*SshPrivateKeyCredential) GetPrivateKeyPassphraseHmac added in v0.10.0

func (x *SshPrivateKeyCredential) GetPrivateKeyPassphraseHmac() []byte

func (*SshPrivateKeyCredential) GetPublicId added in v0.10.0

func (x *SshPrivateKeyCredential) GetPublicId() string

func (*SshPrivateKeyCredential) GetStoreId added in v0.10.0

func (x *SshPrivateKeyCredential) GetStoreId() string

func (*SshPrivateKeyCredential) GetUpdateTime added in v0.10.0

func (x *SshPrivateKeyCredential) GetUpdateTime() *timestamp.Timestamp

func (*SshPrivateKeyCredential) GetUsername added in v0.10.0

func (x *SshPrivateKeyCredential) GetUsername() string

func (*SshPrivateKeyCredential) GetVersion added in v0.10.0

func (x *SshPrivateKeyCredential) GetVersion() uint32

func (*SshPrivateKeyCredential) ProtoMessage added in v0.10.0

func (*SshPrivateKeyCredential) ProtoMessage()

func (*SshPrivateKeyCredential) ProtoReflect added in v0.10.0

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

func (*SshPrivateKeyCredential) Reset added in v0.10.0

func (x *SshPrivateKeyCredential) Reset()

func (*SshPrivateKeyCredential) String added in v0.10.0

func (x *SshPrivateKeyCredential) String() string

type UsernamePasswordCredential

type UsernamePasswordCredential struct {

	// public_id is a surrogate key suitable for use in a public API.
	// @inject_tag: `gorm:"primary_key"`
	PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"`
	// create_time is set by the database.
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// update_time is set by the database.
	// @inject_tag: `gorm:"default:current_timestamp"`
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"`
	// name is optional. If set, it must be unique within project_id.
	// @inject_tag: `gorm:"default:null"`
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" gorm:"default:null"`
	// description is optional.
	// @inject_tag: `gorm:"default:null"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" gorm:"default:null"`
	// store_id of the owning static credential store.
	// It must be set.
	// @inject_tag: `gorm:"not_null"`
	StoreId string `protobuf:"bytes,6,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty" gorm:"not_null"`
	// version allows optimistic locking of the resource.
	// @inject_tag: `gorm:"default:null"`
	Version uint32 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
	// username is the username associated with the credential.
	// It must be set.
	// @inject_tag: `gorm:"not_null"`
	Username string `protobuf:"bytes,8,opt,name=username,proto3" json:"username,omitempty" gorm:"not_null"`
	// password is the plain-text of the password associated with the credential. We are
	// not storing this plain-text password in the database.
	// @inject_tag: `gorm:"-" wrapping:"pt,password_data"`
	Password []byte `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty" gorm:"-" wrapping:"pt,password_data"`
	// ct_password is the ciphertext of the password. It
	// is stored in the database.
	// @inject_tag: `gorm:"column:password_encrypted;not_null" wrapping:"ct,password_data"`
	CtPassword []byte `` /* 162-byte string literal not displayed */
	// password_hmac is a sha256-hmac of the unencrypted password.  It is recalculated
	// everytime the password is updated.
	// @inject_tag: `gorm:"not_null"`
	PasswordHmac []byte `protobuf:"bytes,11,opt,name=password_hmac,json=passwordHmac,proto3" json:"password_hmac,omitempty" gorm:"not_null"`
	// The key_id of the kms database key used for encrypting this entry.
	// It must be set.
	// @inject_tag: `gorm:"not_null"`
	KeyId string `protobuf:"bytes,12,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty" gorm:"not_null"`
	// contains filtered or unexported fields
}

func (*UsernamePasswordCredential) Descriptor deprecated

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

Deprecated: Use UsernamePasswordCredential.ProtoReflect.Descriptor instead.

func (*UsernamePasswordCredential) GetCreateTime

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

func (*UsernamePasswordCredential) GetCtPassword

func (x *UsernamePasswordCredential) GetCtPassword() []byte

func (*UsernamePasswordCredential) GetDescription

func (x *UsernamePasswordCredential) GetDescription() string

func (*UsernamePasswordCredential) GetKeyId

func (x *UsernamePasswordCredential) GetKeyId() string

func (*UsernamePasswordCredential) GetName

func (x *UsernamePasswordCredential) GetName() string

func (*UsernamePasswordCredential) GetPassword

func (x *UsernamePasswordCredential) GetPassword() []byte

func (*UsernamePasswordCredential) GetPasswordHmac

func (x *UsernamePasswordCredential) GetPasswordHmac() []byte

func (*UsernamePasswordCredential) GetPublicId

func (x *UsernamePasswordCredential) GetPublicId() string

func (*UsernamePasswordCredential) GetStoreId

func (x *UsernamePasswordCredential) GetStoreId() string

func (*UsernamePasswordCredential) GetUpdateTime

func (x *UsernamePasswordCredential) GetUpdateTime() *timestamp.Timestamp

func (*UsernamePasswordCredential) GetUsername

func (x *UsernamePasswordCredential) GetUsername() string

func (*UsernamePasswordCredential) GetVersion

func (x *UsernamePasswordCredential) GetVersion() uint32

func (*UsernamePasswordCredential) ProtoMessage

func (*UsernamePasswordCredential) ProtoMessage()

func (*UsernamePasswordCredential) ProtoReflect

func (*UsernamePasswordCredential) Reset

func (x *UsernamePasswordCredential) Reset()

func (*UsernamePasswordCredential) String

func (x *UsernamePasswordCredential) String() string

Jump to

Keyboard shortcuts

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