client

package
v2.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeSlice

func SafeSlice(str string, start int, end int) string

Types

type AWS

type AWS struct {
	// contains filtered or unexported fields
}

type ConfigstoreClient

type ConfigstoreClient struct {
	// contains filtered or unexported fields
}

func InitConfigstore

func InitConfigstore(dir string, region string, role string, masterKey string, isInsecure bool) (*ConfigstoreClient, error)

func NewConfigstoreClient

func NewConfigstoreClient(dbFile string, overrideFiles []string, ignoreRole bool) (*ConfigstoreClient, error)

func (*ConfigstoreClient) Decrypt

func (c *ConfigstoreClient) Decrypt(key string) error

func (*ConfigstoreClient) Encrypt

func (c *ConfigstoreClient) Encrypt(key string) error

func (*ConfigstoreClient) Exists

func (c *ConfigstoreClient) Exists(key string) bool

func (*ConfigstoreClient) Get

func (c *ConfigstoreClient) Get(key string) (string, error)

func (*ConfigstoreClient) GetAll

func (c *ConfigstoreClient) GetAll(skipDecryption bool) (map[string]ConfigstoreDBValue, error)

func (*ConfigstoreClient) GetAllKeys

func (c *ConfigstoreClient) GetAllKeys(keyFilter string) []string

func (*ConfigstoreClient) GetAllValues

func (c *ConfigstoreClient) GetAllValues(skipDecryption bool) (map[string]string, error)

func (*ConfigstoreClient) GetAsKMSEncrypted

func (c *ConfigstoreClient) GetAsKMSEncrypted(key string) (string, error)

func (*ConfigstoreClient) ProcessTemplateString

func (c *ConfigstoreClient) ProcessTemplateString(t string) (string, error)

func (*ConfigstoreClient) Set

func (c *ConfigstoreClient) Set(key string, rawValue []byte, isSecret bool, isBinary bool) error

func (*ConfigstoreClient) TestTemplateString

func (c *ConfigstoreClient) TestTemplateString(t string) (bool, error)

func (*ConfigstoreClient) Unset

func (c *ConfigstoreClient) Unset(key string) error

type ConfigstoreDB

type ConfigstoreDB struct {
	Version     int                           `json:"version"`
	Region      string                        `json:"region"`
	Role        string                        `json:"role"`
	IsInsecure  bool                          `json:"is_insecure"`
	DataKey     string                        `json:"data_key"`
	MasterKeyId string                        `json:"master_key_id,omitempty"`
	Data        map[string]ConfigstoreDBValue `json:"data"`
}

type ConfigstoreDBValue

type ConfigstoreDBValue struct {
	Value    string `json:"value"`
	IsBinary bool   `json:"is_binary"`
	IsSecret bool   `json:"is_secret"`
}

type Encryption

type Encryption struct {
	// contains filtered or unexported fields
}

type KMS

type KMS struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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