conf

package
v0.0.0-...-b1d3944 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Stores  map[string]*StoreConfig `json:"stores"`
	Secrets map[string]string       `json:"secrets"`
	// contains filtered or unexported fields
}

Config is the structure that is (de)serialized in order to configure bits from files

func (*Config) MarshalJSON

func (conf *Config) MarshalJSON() (b []byte, err error)

MarshalJSON encodes the config structure but encrypt the secrets field using AES-256 GCM with the provided secret

func (*Config) UnmarshalJSON

func (conf *Config) UnmarshalJSON(data []byte) error

UnmarshalJSON decode the config structure and decrypt the secrets field with the configured secret

type StoreConfig

type StoreConfig struct {
	Kind string `json:"kind"`
	bitsstore.S3StoreConfig
}

StoreConfig holds the configuration for a named store

Jump to

Keyboard shortcuts

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