store

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 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 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"`
	// The scope_id of the owning scope.
	// It must be set.
	// @inject_tag: `gorm:"not_null"`
	ScopeId string `protobuf:"bytes,6,opt,name=scope_id,json=scopeId,proto3" json:"scope_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) GetPublicId

func (x *CredentialStore) GetPublicId() string

func (*CredentialStore) GetScopeId

func (x *CredentialStore) GetScopeId() 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 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 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"`
	// 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