Documentation
¶
Index ¶
- Constants
- func IsErrUnsupportedFormatterValue(err error) bool
- func MakeErrUnsupportedFormatterValue(formatValue string, g interfaces.Genre) error
- type ErrUnsupportedFormatterValue
- type Format
- type FormatFunc
- type Options
- type OptionsGetter
- type ParentNegotiatorFirstAncestor
- type Repo
- func (e *Repo) ApplyToOrganizeOptions(oo *organize_text.Options)
- func (repo *Repo) Checkin(skus sku.SkuTypeSetMutable, proto sku.Proto, delete bool, refreshCheckout bool) (processed sku.TransactedMutableSet, err error)
- func (u *Repo) DeleteFiles(fs interfaces.Collection[*fd.FD]) (err error)
- func (repo *Repo) Flush() (err error)
- func (repo *Repo) GetAbbr() sku.AbbrStore
- func (repo *Repo) GetBlobFormatter(tipe ids.Type, formatId string, utiGroup string) (blobFormatter script_config.RemoteScript, err error)
- func (u *Repo) GetBlobStore() interfaces.BlobStore
- func (u *Repo) GetConfig() store_config.Store
- func (u *Repo) GetDormantIndex() *dormant_index.Index
- func (u *Repo) GetEnv() env_ui.Env
- func (repo *Repo) GetEnvLocal() env_local.Env
- func (u *Repo) GetEnvLua() env_lua.Env
- func (u *Repo) GetEnvRepo() env_repo.Env
- func (repo *Repo) GetEnvWorkspace() env_workspace.Env
- func (u *Repo) GetImmutableConfigPrivate() config_immutable_io.ConfigLoadedPrivate
- func (u *Repo) GetImmutableConfigPublic() config_immutable_io.ConfigLoadedPublic
- func (u *Repo) GetInventoryListStore() sku.InventoryListStore
- func (u *Repo) GetMatcherDormant() query.DormantCounter
- func (repo *Repo) GetObjectFromObjectId(objectIdString string) (sk *sku.Transacted, err error)
- func (repo *Repo) GetObjectStore() sku.ObjectStore
- func (u *Repo) GetStore() *store.Store
- func (u *Repo) GetTime() time.Time
- func (u *Repo) GetTypedInventoryListBlobStore() typed_blob_store.InventoryList
- func (repo *Repo) GetWorkspaceStoreForQuery(repoId ids.RepoId) (store_workspace.Store, bool)
- func (repo *Repo) GetZettelFromObjectId(objectIdString string) (sk *sku.Transacted, err error)
- func (repo *Repo) ImportList(list *sku.List, i sku.Importer) (err error)
- func (u *Repo) Lock() (err error)
- func (repo *Repo) LockAndCommitOrganizeResults(results organize_text.OrganizeResults) (changeResults organize_text.Changes, err error)
- func (repo *Repo) MakeExternalQueryGroup(metaBuilder query.BuilderOption, externalQueryOptions sku.ExternalQueryOptions, ...) (queryGroup *query.Query, err error)
- func (repo *Repo) MakeFormatFunc(format string, writer interfaces.WriterAndStringWriter) (output interfaces.FuncIter[*sku.Transacted], err error)
- func (repo *Repo) MakeImporter(options sku.ImporterOptions, storeOptions sku.StoreOptions) (importer sku.Importer)
- func (u *Repo) MakeInventoryList(queryGroup *query.Query) (list *sku.List, err error)
- func (u *Repo) MakeObjectIdIndex() ids.Index
- func (e *Repo) MakeOrganizeOptionsWithOrganizeMetadata(organizeFlags organize_text.Flags, metadata organize_text.Metadata) organize_text.Options
- func (e *Repo) MakeOrganizeOptionsWithQueryGroup(organizeFlags organize_text.Flags, qg *query.Query) organize_text.Options
- func (u *Repo) MakePrinterBoxArchive(out interfaces.WriterAndStringWriter, includeTai bool) interfaces.FuncIter[*sku.Transacted]
- func (repo *Repo) MakeQueryBuilder(dg ids.Genre, options query.BuilderOption) *query.Builder
- func (repo *Repo) MakeQueryBuilderExcludingHidden(genre ids.Genre, options query.BuilderOption) *query.Builder
- func (u *Repo) PrintMatchedDormantIfNecessary()
- func (u *Repo) PrinterCheckedOutConflictsForRemoteTransfers() interfaces.FuncIter[*sku.CheckedOut]
- func (repo *Repo) PrinterFDDeleted() interfaces.FuncIter[*fd.FD]
- func (u *Repo) PrinterHeader() interfaces.FuncIter[string]
- func (repo *Repo) PrinterTransactedDeleted() interfaces.FuncIter[*sku.CheckedOut]
- func (local *Repo) PullQueryGroupFromRemote(remote repo.Repo, qg *query.Query, options repo.RemoteTransferOptions) (err error)
- func (env *Repo) ReadObjectHistory(oid *ids.ObjectId) (skus []*sku.Transacted, err error)
- func (localWorkingCopy *Repo) Reindex()
- func (u *Repo) Reset() (err error)
- func (u *Repo) Unlock() (err error)
Constants ¶
View Source
const ( OptionsEmpty = Options(iota) OptionsAllowConfigReadError = Options(1 << iota) )
Variables ¶
This section is empty.
Functions ¶
func MakeErrUnsupportedFormatterValue ¶
func MakeErrUnsupportedFormatterValue( formatValue string, g interfaces.Genre, ) error
Types ¶
type ErrUnsupportedFormatterValue ¶
type ErrUnsupportedFormatterValue interface {
error
GetFormatValue() string
interfaces.GenreGetter
}
type FormatFunc ¶
type FormatFunc func(*Repo, interfaces.WriterAndStringWriter) (interfaces.FuncIter[*sku.Transacted], error)
type OptionsGetter ¶
type OptionsGetter interface {
GetLocalRepoOptions() Options
}
type ParentNegotiatorFirstAncestor ¶
type ParentNegotiatorFirstAncestor struct {
Local, Remote repo.WorkingCopy
}
func (ParentNegotiatorFirstAncestor) FindBestCommonAncestor ¶
func (parentNegotiator ParentNegotiatorFirstAncestor) FindBestCommonAncestor( conflicted sku.Conflicted, ) (ancestor *sku.Transacted, err error)
func (ParentNegotiatorFirstAncestor) GetParentNegotiator ¶
func (parentNegotiator ParentNegotiatorFirstAncestor) GetParentNegotiator() sku.ParentNegotiator
type Repo ¶
type Repo struct {
DormantCounter query.DormantCounter
// contains filtered or unexported fields
}
func (*Repo) ApplyToOrganizeOptions ¶
func (e *Repo) ApplyToOrganizeOptions(oo *organize_text.Options)
func (*Repo) Checkin ¶
func (repo *Repo) Checkin( skus sku.SkuTypeSetMutable, proto sku.Proto, delete bool, refreshCheckout bool, ) (processed sku.TransactedMutableSet, err error)
func (*Repo) DeleteFiles ¶
func (u *Repo) DeleteFiles(fs interfaces.Collection[*fd.FD]) (err error)
func (*Repo) GetBlobFormatter ¶
func (repo *Repo) GetBlobFormatter( tipe ids.Type, formatId string, utiGroup string, ) (blobFormatter script_config.RemoteScript, err error)
TODO add support for checked out types
func (*Repo) GetBlobStore ¶
func (u *Repo) GetBlobStore() interfaces.BlobStore
func (*Repo) GetConfig ¶
func (u *Repo) GetConfig() store_config.Store
func (*Repo) GetDormantIndex ¶
func (u *Repo) GetDormantIndex() *dormant_index.Index
func (*Repo) GetEnvLocal ¶
func (*Repo) GetEnvRepo ¶
func (*Repo) GetEnvWorkspace ¶
func (repo *Repo) GetEnvWorkspace() env_workspace.Env
func (*Repo) GetImmutableConfigPrivate ¶
func (u *Repo) GetImmutableConfigPrivate() config_immutable_io.ConfigLoadedPrivate
func (*Repo) GetImmutableConfigPublic ¶
func (u *Repo) GetImmutableConfigPublic() config_immutable_io.ConfigLoadedPublic
func (*Repo) GetInventoryListStore ¶
func (u *Repo) GetInventoryListStore() sku.InventoryListStore
func (*Repo) GetMatcherDormant ¶
func (u *Repo) GetMatcherDormant() query.DormantCounter
func (*Repo) GetObjectFromObjectId ¶
func (repo *Repo) GetObjectFromObjectId( objectIdString string, ) (sk *sku.Transacted, err error)
func (*Repo) GetObjectStore ¶
func (repo *Repo) GetObjectStore() sku.ObjectStore
func (*Repo) GetTypedInventoryListBlobStore ¶
func (u *Repo) GetTypedInventoryListBlobStore() typed_blob_store.InventoryList
func (*Repo) GetWorkspaceStoreForQuery ¶
func (*Repo) GetZettelFromObjectId ¶
func (repo *Repo) GetZettelFromObjectId( objectIdString string, ) (sk *sku.Transacted, err error)
TODO rename
func (*Repo) ImportList ¶
func (*Repo) LockAndCommitOrganizeResults ¶
func (repo *Repo) LockAndCommitOrganizeResults( results organize_text.OrganizeResults, ) (changeResults organize_text.Changes, err error)
func (*Repo) MakeExternalQueryGroup ¶
func (repo *Repo) MakeExternalQueryGroup( metaBuilder query.BuilderOption, externalQueryOptions sku.ExternalQueryOptions, args ...string, ) (queryGroup *query.Query, err error)
func (*Repo) MakeFormatFunc ¶
func (repo *Repo) MakeFormatFunc( format string, writer interfaces.WriterAndStringWriter, ) (output interfaces.FuncIter[*sku.Transacted], err error)
TODO switch to using fd.Std
func (*Repo) MakeImporter ¶
func (repo *Repo) MakeImporter( options sku.ImporterOptions, storeOptions sku.StoreOptions, ) (importer sku.Importer)
func (*Repo) MakeInventoryList ¶
func (*Repo) MakeObjectIdIndex ¶
func (*Repo) MakeOrganizeOptionsWithOrganizeMetadata ¶
func (e *Repo) MakeOrganizeOptionsWithOrganizeMetadata( organizeFlags organize_text.Flags, metadata organize_text.Metadata, ) organize_text.Options
func (*Repo) MakeOrganizeOptionsWithQueryGroup ¶
func (e *Repo) MakeOrganizeOptionsWithQueryGroup( organizeFlags organize_text.Flags, qg *query.Query, ) organize_text.Options
func (*Repo) MakePrinterBoxArchive ¶
func (u *Repo) MakePrinterBoxArchive( out interfaces.WriterAndStringWriter, includeTai bool, ) interfaces.FuncIter[*sku.Transacted]
func (*Repo) MakeQueryBuilder ¶
func (*Repo) MakeQueryBuilderExcludingHidden ¶
func (*Repo) PrintMatchedDormantIfNecessary ¶
func (u *Repo) PrintMatchedDormantIfNecessary()
func (*Repo) PrinterCheckedOutConflictsForRemoteTransfers ¶
func (u *Repo) PrinterCheckedOutConflictsForRemoteTransfers() interfaces.FuncIter[*sku.CheckedOut]
func (*Repo) PrinterFDDeleted ¶
func (repo *Repo) PrinterFDDeleted() interfaces.FuncIter[*fd.FD]
TODO make generic external version
func (*Repo) PrinterHeader ¶
func (u *Repo) PrinterHeader() interfaces.FuncIter[string]
func (*Repo) PrinterTransactedDeleted ¶
func (repo *Repo) PrinterTransactedDeleted() interfaces.FuncIter[*sku.CheckedOut]
TODO migrate to StringFormatWriterSkuBoxCheckedOut
func (*Repo) PullQueryGroupFromRemote ¶
func (*Repo) ReadObjectHistory ¶
Source Files
¶
- accessors.go
- actions.go
- big_bang.go
- errors.go
- format.go
- formatter_value.go
- local_op_pull.go
- local_op_read_object_history.go
- local_parent_negotiator.go
- lock.go
- main.go
- op_checkin.go
- op_get_blob_formatter.go
- op_get_sku_from_object_id.go
- op_import_list.go
- op_make_importer.go
- op_make_inventory_list.go
- op_make_query_group.go
- op_reindex.go
- options.go
- organize.go
- printers.go
Click to show internal directories.
Click to hide internal directories.