Documentation ¶
Index ¶
- func DoPsharding(zone, ctx string, assertions []*section.Assertion, pshards []*section.Pshard, ...) ([]*section.Pshard, error)
- func DoSharding(zone, ctx string, assertions []*section.Assertion, shards []*section.Shard, ...) ([]*section.Shard, error)
- func LoadPrivateKeys(path string) (map[keys.PublicKeyID]interface{}, error)
- func StorePrivateKey(path string, privateKeys []keys.PrivateKey) error
- type BloomFilterConfig
- type Config
- type ConsistencyConfig
- type MetaDataConfig
- type PShardingConfig
- type Rainspub
- type ShardingConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoPsharding ¶
func DoPsharding(zone, ctx string, assertions []*section.Assertion, pshards []*section.Pshard, conf PShardingConfig, sortAssertions bool) ([]*section.Pshard, error)
DoPsharding creates pshards based on the zone's content and config.
func DoSharding ¶
func DoSharding(zone, ctx string, assertions []*section.Assertion, shards []*section.Shard, config ShardingConfig, sortAssertions bool) ([]*section.Shard, error)
DoSharding creates shards based on the zone's content and config.
func LoadPrivateKeys ¶
func LoadPrivateKeys(path string) (map[keys.PublicKeyID]interface{}, error)
LoadPrivateKeys reads private keys from the path provided in the config and returns a map from PublicKeyID to the corresponding private key data.
func StorePrivateKey ¶
func StorePrivateKey(path string, privateKeys []keys.PrivateKey) error
Types ¶
type BloomFilterConfig ¶
type BloomFilterConfig struct { BFAlgo section.BloomFilterAlgo BFHash algorithmTypes.Hash BloomFilterSize int }
BloomFilterConfig specifies the bloom filter's meta data
type Config ¶
type Config struct { ZonefilePath string AuthServers []connection.Info PrivateKeyPath string ShardingConf ShardingConfig PShardingConf PShardingConfig MetaDataConf MetaDataConfig ConsistencyConf ConsistencyConfig DoSigning bool MaxZoneSize int OutputPath string DoPublish bool }
Config lists configurations for publishing zone information, see zonepub flag description for detail.
func LoadConfig ¶
LoadConfig loads configuration information from configPath
type ConsistencyConfig ¶
type ConsistencyConfig struct { DoConsistencyCheck bool SortShards bool SortZone bool SigNotExpired bool CheckStringFields bool }
ConsistencyConfig determines which consistency checks are performed prior to signing.
type MetaDataConfig ¶
type MetaDataConfig struct { AddSignatureMetaData bool AddSigMetaDataToAssertions bool AddSigMetaDataToShards bool AddSigMetaDataToPshards bool SignatureAlgorithm algorithmTypes.Signature KeyPhase int SigValidSince int64 SigValidUntil int64 SigSigningInterval time.Duration }
MetaDataConfig determines how the signature meta data is generated and to which section(s) it is added.
type PShardingConfig ¶
type PShardingConfig struct { IncludePshards bool DoPsharding bool NofAssertionsPerPshard int BloomFilterConf BloomFilterConfig }
PShardingConfig contains configuration options on how to split a zone into probabilistic shards.
type Rainspub ¶
type Rainspub struct {
Config Config
}
Rainspub represents the publishing process of a zone authority. It can be configured to do anything from just one step to the whole process of publishing information to the zone's authoritative servers.