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 ¶
MarshalJSON encodes the config structure but encrypt the secrets field using AES-256 GCM with the provided secret
func (*Config) UnmarshalJSON ¶
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
Click to show internal directories.
Click to hide internal directories.