cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 20 Imported by: 0

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

func Execute

func Execute()

Types

type KeychainByPlatformStore added in v1.2.0

type KeychainByPlatformStore struct {
	keyring.Keyring
}

func (KeychainByPlatformStore) Name added in v1.2.0

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

func (MetadataEncodedStore) Set added in v1.2.0

func (s MetadataEncodedStore) Set(item keyring.Item) error

Set

type StandardStore added in v1.2.0

type StandardStore struct {
	keyring.Keyring
}

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 NewKeychainByPlatform(chain string) (Store, error)

func NewMetadataEncodedStore added in v1.2.0

func NewMetadataEncodedStore(chain string) (Store, error)

func NewStandardStore added in v1.2.0

func NewStandardStore(chain string) (Store, error)

TODO: consider supporting other backends: https://pkg.go.dev/github.com/99designs/keyring#BackendType

func NewStore added in v1.2.0

func NewStore(chain string) (Store, error)

Jump to

Keyboard shortcuts

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