Documentation ¶
Index ¶
- type IndexJob
- type IndexSet
- type IndexTree
- type Indexer
- func (i *Indexer) DeleteDirectory(ctx context.Context) error
- func (i *Indexer) DeleteIndexHTML(ctx context.Context) error
- func (i *Indexer) DeleteRedirect(ctx context.Context) error
- func (i *Indexer) Empty() bool
- func (i *Indexer) UpdateDirectoryHTML(ctx context.Context) error
- func (i *Indexer) UpdateIndexHTML(ctx context.Context) error
- func (i *Indexer) UpdateRedirect(ctx context.Context) error
- type SyncIndexJob
- func (si *SyncIndexJob) Delete(enable bool)
- func (si *SyncIndexJob) DeleteFilter(f storage.Filter)
- func (si *SyncIndexJob) DestinationPrefix(p string)
- func (sj *SyncIndexJob) Do(ctx context.Context) error
- func (si *SyncIndexJob) Prefix(p string)
- func (si *SyncIndexJob) Recursive(enable bool)
- func (si *SyncIndexJob) SourceFilter(f storage.Filter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexJob ¶
func NewIndexJob ¶
func (*IndexJob) DirectoryHTML ¶
DirectoryHTML toggles generation of HTML pages to mimic directories.
type Indexer ¶
type Indexer struct { Title string SubDirs []string Objects []*gs.Object // contains filtered or unexported fields }
func (*Indexer) UpdateDirectoryHTML ¶
type SyncIndexJob ¶
func NewSyncIndexJob ¶
func NewSyncIndexJob(src, dst *storage.Bucket) *SyncIndexJob
func (*SyncIndexJob) Delete ¶
func (si *SyncIndexJob) Delete(enable bool)
Delete enables deletion of extra objects and indexes from Destination.
func (*SyncIndexJob) DeleteFilter ¶
func (si *SyncIndexJob) DeleteFilter(f storage.Filter)
DeleteFilter selects which objects may be pruned from Destination.
func (*SyncIndexJob) DestinationPrefix ¶
func (si *SyncIndexJob) DestinationPrefix(p string)
DestinationPrefix overrides the Destination bucket's default prefix.
func (*SyncIndexJob) Prefix ¶
func (si *SyncIndexJob) Prefix(p string)
Prefix is an alias for DestinationPrefix()
func (*SyncIndexJob) Recursive ¶
func (si *SyncIndexJob) Recursive(enable bool)
Recursive toggles copying/indexing subdirectories (the default).
func (*SyncIndexJob) SourceFilter ¶
func (si *SyncIndexJob) SourceFilter(f storage.Filter)
SourceFilter selects which objects to copy from Source.
Click to show internal directories.
Click to hide internal directories.