Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockStore ¶
type Conf ¶
type Conf struct { // Flattened config - can be backed by env variables. // It is configured from Android side with the config (settings) // ssid, pass, vpn_ext. Conf map[string]string `json:"Conf,omitempty"` // Additional/federated sources Sources []meshauth.Store // contains filtered or unexported fields }
Conf impplements a ConfSource and is used for bootstrap info. It may be used for general configuration of the app as well.
type Store ¶
type Store interface { // Get an object blob Get(name string) ([]byte, error) // Save a blob. Set(conf string, data []byte) error // List the configs starting with a prefix, of a given type. // Not suitable for large collections - use a database ! List(name string, tp string) ([]string, error) }
Store is a minimal store for small number of small objects. Good for configs in a namespace.
Click to show internal directories.
Click to hide internal directories.