Documentation ¶
Index ¶
- type AKV
- func (b *AKV) CheckExists(ctx context.Context, _ *Profile, key string) (bool, error)
- func (b *AKV) Close() error
- func (b *AKV) Delete(ctx context.Context, _ *Profile, key string) error
- func (b *AKV) Get(ctx context.Context, _ *Profile, key string) ([]byte, error)
- func (b *AKV) List(ctx context.Context, _ *Profile) ([]Key, error)
- func (b *AKV) Put(ctx context.Context, _ *Profile, key, value string, overwrite bool) error
- func (b *AKV) SetParameter(key string, value interface{})
- type AWSParameterStore
- func (s *AWSParameterStore) CheckExists(ctx context.Context, p *Profile, key string) (bool, error)
- func (s *AWSParameterStore) Close() error
- func (s *AWSParameterStore) Delete(ctx context.Context, p *Profile, key string) error
- func (s *AWSParameterStore) Get(ctx context.Context, p *Profile, key string) ([]byte, error)
- func (s *AWSParameterStore) List(ctx context.Context, p *Profile) (list []Key, err error)
- func (s *AWSParameterStore) Put(ctx context.Context, p *Profile, key, value string, overwrite bool) error
- func (s *AWSParameterStore) SetParameter(key string, value interface{})
- type Backend
- type FileStore
- func (f *FileStore) CheckExists(_ context.Context, _ *Profile, key string) (bool, error)
- func (f *FileStore) Close() error
- func (f *FileStore) Delete(_ context.Context, _ *Profile, key string) error
- func (f *FileStore) Get(_ context.Context, _ *Profile, key string) ([]byte, error)
- func (f *FileStore) List(_ context.Context, _ *Profile) (keys []Key, err error)
- func (f *FileStore) Put(_ context.Context, _ *Profile, key, value string, overwrite bool) error
- func (f *FileStore) SetMasterPassword(password []byte)
- func (f *FileStore) SetParameter(key string, value interface{})
- type FileStoreEntry
- type GSM
- func (b *GSM) CheckExists(ctx context.Context, p *Profile, key string) (bool, error)
- func (b *GSM) Close() error
- func (b *GSM) Delete(ctx context.Context, p *Profile, key string) error
- func (b *GSM) Get(ctx context.Context, p *Profile, key string) ([]byte, error)
- func (b *GSM) List(ctx context.Context, p *Profile) ([]Key, error)
- func (b *GSM) Put(ctx context.Context, p *Profile, key, value string, overwrite bool) error
- func (b *GSM) SetParameter(key string, value interface{})
- type KMS
- func (b *KMS) CheckExists(ctx context.Context, p *Profile, key string) (bool, error)
- func (b *KMS) Close() error
- func (b *KMS) Delete(ctx context.Context, p *Profile, key string) error
- func (b *KMS) Get(ctx context.Context, p *Profile, key string) ([]byte, error)
- func (b *KMS) List(ctx context.Context, p *Profile) ([]Key, error)
- func (b *KMS) Put(ctx context.Context, p *Profile, key, value string, overwrite bool) error
- func (b *KMS) SetParameter(key string, value interface{})
- type Key
- type Profile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AKV ¶ added in v1.11.0
type AKV struct {
// contains filtered or unexported fields
}
func (*AKV) CheckExists ¶ added in v1.11.0
func (*AKV) SetParameter ¶ added in v1.11.0
type AWSParameterStore ¶ added in v1.10.0
type AWSParameterStore struct {
// contains filtered or unexported fields
}
AWSParameterStore implements Backend for AWS Parameter Store service.
func NewAWSParameterStore ¶ added in v1.10.0
func NewAWSParameterStore(ctx context.Context, p *Profile) (*AWSParameterStore, error)
NewAWSParameterStore returns a new AWSParameterStore with an initialized AWS SSM client.
func (*AWSParameterStore) CheckExists ¶ added in v1.10.0
CheckExists returns true if there exists a value for a given key.
func (*AWSParameterStore) Close ¶ added in v1.10.0
func (s *AWSParameterStore) Close() error
Close is not effictive for this backend
func (*AWSParameterStore) Get ¶ added in v1.10.0
Get returns the decrypted value for a parameter by key.
func (*AWSParameterStore) Put ¶ added in v1.10.0
func (s *AWSParameterStore) Put(ctx context.Context, p *Profile, key, value string, overwrite bool) error
Put write the parameter and its value using encryption ;either the default key or the one specified in the profile.
func (*AWSParameterStore) SetParameter ¶ added in v1.11.0
func (s *AWSParameterStore) SetParameter(key string, value interface{})
type Backend ¶
type Backend interface { Get(ctx context.Context, p *Profile, key string) ([]byte, error) List(ctx context.Context, p *Profile) ([]Key, error) CheckExists(ctx context.Context, p *Profile, key string) (bool, error) Put(ctx context.Context, p *Profile, key, value string, overwrite bool) error Delete(ctx context.Context, p *Profile, key string) error SetParameter(key string, value interface{}) Close() error }
type FileStore ¶ added in v1.11.0
type FileStore struct {
// contains filtered or unexported fields
}
func NewFileStore ¶ added in v1.11.0
func (*FileStore) CheckExists ¶ added in v1.11.0
CheckExists checks if given key exists in the (file)store
func (*FileStore) Delete ¶ added in v1.11.0
Delete a key from the store. Delete overwrites the entire store file with the updated store values
func (*FileStore) Get ¶ added in v1.11.0
Get reads the store from file, fetches and decrypt the value for given key
func (*FileStore) Put ¶ added in v1.11.0
Put a new Key with encrypted password in the store. Put overwrites the entire store file with the updated store
func (*FileStore) SetMasterPassword ¶ added in v1.11.0
SetMasterPassword is not relevant for this backend
func (*FileStore) SetParameter ¶ added in v1.11.0
type FileStoreEntry ¶ added in v1.11.0
type GSM ¶
type GSM struct {
// contains filtered or unexported fields
}
func NewGSM ¶
func NewGSM(client *secretmanager.Client) *GSM
func (*GSM) CheckExists ¶
func (*GSM) SetParameter ¶ added in v1.11.0
type KMS ¶
type KMS struct {
// contains filtered or unexported fields
}
func (*KMS) CheckExists ¶
func (*KMS) SetParameter ¶ added in v1.11.0
type Profile ¶
type Profile struct { Backend string Label string ProjectID string Location string Keyring string CryptoKey string Bucket string VaultUrl string SecretRunes []rune AutoCopyEnabled bool `json:"autoCopyEnabled"` // if true then the secret of a single list result will be copied to clipboard PromptForSecretLine bool `json:"promptForSecretLine"` // if true then you must enter a number to run the command on that line }
Profile describes a single profile in a .kiya configuration