clientutil

package
v0.0.0-...-8fa1bb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package clientutil implements common utilities shared by clients and those who act as clients, such as a DirServer being a client of a StoreServer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAll

func ReadAll(cfg upspin.Config, entry *upspin.DirEntry) ([]byte, error)

ReadAll reads the entire contents of a DirEntry. The reader must have the necessary keys loaded in the config to unpack the cipher if the entry is encrypted.

func ReadLocation

func ReadLocation(cfg upspin.Config, loc upspin.Location) ([]byte, error)

ReadLocation uses the provided Config to fetch the contents of the given Location, following any StoreServer.Get redirects.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL