Documentation
¶
Overview ¶
Copyright © 2022 Zander Hill <zander@xargs.io>
Copyright © 2022 Zander Hill <zander@xargs.io>
Copyright © 2022 Zander Hill <zander@xargs.io>
Copyright © 2022 Zander Hill <zander@xargs.io>
Copyright © 2022 Zander Hill <zander@xargs.io>
Copyright © 2022 Zander Hill <zander@xargs.io>
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChainDirKey = "dir"
View Source
var ConfigPrefix = "chain"
View Source
var ErrFunctionNotImplemented = errors.New("function not implemented")
View Source
var KeychainBackend = "keychain_backend"
View Source
var KeyringPassword = "password"
View Source
var KeyringServiceKey = "keyring_service"
View Source
var KeyringUserKey = "keyring_user"
View Source
var LogLevelName = "log_level"
View Source
var MetaDataName = "METADATA"
View Source
var PasswordValidationLength = "password_validation_length"
View Source
var StoreBackendTypeName = "store"
Functions ¶
Types ¶
type KeychainByPlatformStore ¶ added in v1.2.0
func (KeychainByPlatformStore) Name ¶ added in v1.2.0
func (s KeychainByPlatformStore) Name() string
type MetadataEncodedStore ¶ added in v1.2.0
type MetadataEncodedStore struct {
// contains filtered or unexported fields
}
func (MetadataEncodedStore) Get ¶ added in v1.2.0
func (s MetadataEncodedStore) Get(envKey string) (keyring.Item, error)
Get Read from reverse index, then get record Store value as proto of k/v for recreating these
func (MetadataEncodedStore) GetMeta ¶ added in v1.2.0
func (s MetadataEncodedStore) GetMeta() (chainv1.Storage, error)
func (MetadataEncodedStore) Keys ¶ added in v1.2.0
func (s MetadataEncodedStore) Keys() ([]string, error)
TODO List all keys, then perform translation in reverse index
func (MetadataEncodedStore) Name ¶ added in v1.2.0
func (s MetadataEncodedStore) Name() string
type StandardStore ¶ added in v1.2.0
func (StandardStore) Name ¶ added in v1.2.0
func (s StandardStore) Name() string
type Store ¶ added in v1.2.0
type Store interface { Keys() ([]string, error) Get(string) (keyring.Item, error) Set(keyring.Item) error Name() string }
func NewKeychainByPlatform ¶ added in v1.2.0
func NewMetadataEncodedStore ¶ added in v1.2.0
func NewStandardStore ¶ added in v1.2.0
TODO: consider supporting other backends: https://pkg.go.dev/github.com/99designs/keyring#BackendType
Source Files
¶
Click to show internal directories.
Click to hide internal directories.