Documentation ¶
Overview ¶
Package rtns provides a secure, stand-alone IPNS publishing service that leverages the KaaS encrypted keystore service
Index ¶
- Constants
- Variables
- type Cache
- type Config
- type RKeystore
- type RTNS
- func (r *RTNS) Bootstrap(peers []peerstore.PeerInfo)
- func (r *RTNS) Close()
- func (r *RTNS) DefaultBootstrap()
- func (r *RTNS) Publish(ctx context.Context, pk ci.PrivKey, cache bool, keyID, content string) error
- func (r *RTNS) PublishWithEOL(ctx context.Context, pk ci.PrivKey, eol time.Time, cache bool, ...) error
Constants ¶
const DefaultRecordLifetime = time.Hour * 24
DefaultRecordLifetime is the default lifetime for IPNS records
Variables ¶
var DefaultRebroadcastInterval = time.Hour * 4
DefaultRebroadcastInterval is the default interval at which we rebroadcast IPNS records
var FailureRetryInterval = time.Minute * 5
FailureRetryInterval is the interval at which we retry IPNS records broadcasts (when they fail)
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is used to cache keyIDs we have published
type RKeystore ¶
type RKeystore struct {
// contains filtered or unexported fields
}
RKeystore satisfies the keystore.Keystore interface, providing access to a kaas backend for secure key management
func NewRKeystore ¶
NewRKeystore implements a keystore.Keystore compatible version of the kaas client
func (*RKeystore) Get ¶
Get retrieves a key from the Keystore if it exists, and returns ErrNoSuchKey otherwise.
type RTNS ¶
type RTNS struct { Keys *RKeystore // contains filtered or unexported fields }
RTNS is a standalone IPNS publishing service for use with the kaas keystore enabling secure management of IPNS records
func (*RTNS) Bootstrap ¶
Bootstrap is an optional helper to connect to the given peers and bootstrap the Peer DHT (and Bitswap). This is a best-effort function. Errors are only logged and a warning is printed when less than half of the given peers could be contacted. It is fine to pass a list where some peers will not be reachable.
func (*RTNS) Close ¶
func (r *RTNS) Close()
Close is used to close all service needed by our publisher
func (*RTNS) DefaultBootstrap ¶
func (r *RTNS) DefaultBootstrap()
DefaultBootstrap is a wrapper around Bootstrap that handles bootstrapping to the default libp2p bootstrap nodes, as well as the Temporal production nodes