index

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: The version will be used to regenerate existing indexes.
	INDEX_VERSION = `2014-08-12`
	INDEX_TEXT    = `` /* 447-byte string literal not displayed */

)
View Source
const MAX_WRITERS = 12

Arbitrary limit on the number of concurrent calls to WriteIndex

Variables

This section is empty.

Functions

func Update

func Update(client *http.Client, url string) error

Types

type Directory

type Directory struct {
	Bucket  string
	Prefix  string
	SubDirs map[string]*Directory
	Objects map[string]*storage.Object
	Updated time.Time
}

func NewDirectory

func NewDirectory(rawURL string) (*Directory, error)

func (*Directory) AddObject

func (d *Directory) AddObject(obj *storage.Object) error

func (*Directory) Fetch

func (d *Directory) Fetch(client *http.Client) error

func (*Directory) NeedsIndex

func (d *Directory) NeedsIndex() bool

func (*Directory) Walk

func (d *Directory) Walk(dirs chan<- *Directory)

func (*Directory) WriteIndex

func (d *Directory) WriteIndex(client *http.Client) error

Jump to

Keyboard shortcuts

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