Documentation ¶
Index ¶
- func EdgesTo(t *testing.T, initIdx func() *index.Index)
- func Files(t *testing.T, initIdx func() *index.Index)
- func Index(t *testing.T, initIdx func() *index.Index)
- func PathsOfSignerTarget(t *testing.T, initIdx func() *index.Index)
- type Fataler
- type IndexDeps
- func (id *IndexDeps) AddAttribute(permaNode *blobref.BlobRef, attr, value string) *blobref.BlobRef
- func (id *IndexDeps) DelAttribute(permaNode *blobref.BlobRef, attr string) *blobref.BlobRef
- func (id *IndexDeps) Get(key string) string
- func (id *IndexDeps) NewPermanode() *blobref.BlobRef
- func (id *IndexDeps) NewPlannedPermanode(key string) *blobref.BlobRef
- func (id *IndexDeps) SetAttribute(permaNode *blobref.BlobRef, attr, value string) *blobref.BlobRef
- func (id *IndexDeps) UploadFile(fileName string, contents string, modTime time.Time) (fileRef, wholeRef *blobref.BlobRef)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IndexDeps ¶
type IndexDeps struct { Index *index.Index BlobSource *test.Fetcher // Following three needed for signing: PublicKeyFetcher *test.Fetcher EntityFetcher jsonsign.EntityFetcher // fetching decrypted openpgp entities SignerBlobRef *blobref.BlobRef Fataler // optional means of failing. // contains filtered or unexported fields }
An IndexDeps is a helper for populating and querying an Index for tests.
func NewIndexDeps ¶
NewIndexDeps returns an IndexDeps helper for populating and working with the provided index for tests.
func (*IndexDeps) AddAttribute ¶
func (*IndexDeps) DelAttribute ¶
func (*IndexDeps) NewPermanode ¶
NewPermanode creates (& signs) a new permanode and adds it to the index, returning its blobref.
func (*IndexDeps) NewPlannedPermanode ¶
NewPermanode creates (& signs) a new planned permanode and adds it to the index, returning its blobref.
func (*IndexDeps) SetAttribute ¶
Click to show internal directories.
Click to hide internal directories.