Documentation ¶
Overview ¶
Package rtns provides a secure, stand-alone IPNS publishing service that leverages the KaaS encrypted keystore service
Index ¶
- Constants
- Variables
- type RKeystore
- type RTNS
- func (r *RTNS) GetKey(name string) (ci.PrivKey, error)
- func (r *RTNS) HasKey(name string) (bool, error)
- 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 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 {
// contains filtered or unexported fields
}
RTNS manages all the needed components to interact with public and private IPNS networks.
func NewRTNS ¶
func NewRTNS(ctx context.Context, rvs routing.ValueStore, ds datastore.Datastore, keys keystore.Keystore, size int) *RTNS
NewRTNS instantiates our RTNS service, and starts the republisher