Documentation
¶
Index ¶
- func BuilderOptionDefaultGenres(genres ...genres.Genre) builderOptionDefaultGenre
- func BuilderOptionDefaultSigil(sigils ...ids.Sigil) builderOptionDefaultSigil
- func BuilderOptionHidden(hidden sku.Query) builderOptionHidden
- func BuilderOptionPermittedSigil(sigil ids.Sigil) builderOptionPermittedSigil
- func BuilderOptionRequireNonEmptyQuery() builderOptionRequireNonEmptyQuery
- func BuilderOptions(options ...BuilderOption) builderOptions
- func ContainsExternalSku(qg *Query, el sku.ExternalLike, state checked_out_state.State) (ok bool)
- func ContainsSkuCheckedOutState(qg *Query, state checked_out_state.State) (ok bool)
- func GetTags(query *Query) ids.TagSetMutable
- func GetTypes(query *Query) ids.TypeSet
- func IsErrBlobMissing(err error) bool
- func IsExactlyOneObjectId(query *Query) bool
- type Builder
- func (builder *Builder) BuildQueryGroup(args ...string) (group *Query, err error)
- func (builder *Builder) BuildQueryGroupWithRepoId(externalQueryOptions sku.ExternalQueryOptions, values ...string) (query *Query, err error)
- func (builder *Builder) WithDebug() *Builder
- func (builder *Builder) WithDefaultGenres(defaultGenres ids.Genre) *Builder
- func (builder *Builder) WithDefaultSigil(defaultSigil ids.Sigil) *Builder
- func (builder *Builder) WithDoNotMatchEmpty() *Builder
- func (builder *Builder) WithExpanders(expanders ids.Abbr) *Builder
- func (builder *Builder) WithExternalLike(zts sku.SkuTypeSet) *Builder
- func (builder *Builder) WithFileExtensions(fileExtensions file_extensions.Config) *Builder
- func (builder *Builder) WithHidden(hidden sku.Query) *Builder
- func (builder *Builder) WithOptions(options BuilderOption) *Builder
- func (builder *Builder) WithPermittedSigil(s ids.Sigil) *Builder
- func (builder *Builder) WithRepoId(repoId ids.RepoId) *Builder
- func (builder *Builder) WithRequireNonEmptyQuery() *Builder
- func (builder *Builder) WithTransacted(zts sku.TransactedSet, sigil ids.Sigil) *Builder
- type BuilderOption
- type BuilderOptionWorkspaceConfigEnv
- type CompoundMatch
- type DormantCounter
- type ErrBlobMissing
- type ExecutionInfo
- type Executor
- func (executor *Executor) ExecuteExactlyOne() (object *sku.Transacted, err error)
- func (executor *Executor) ExecuteExactlyOneExternalObject(permitInternal bool) (object *sku.Transacted, err error)
- func (executor *Executor) ExecuteSkuType(out interfaces.FuncIter[sku.SkuType]) (err error)
- func (e *Executor) ExecuteTransacted(out interfaces.FuncIter[*sku.Transacted]) (err error)
- func (e *Executor) ExecuteTransactedAsSkuType(out interfaces.FuncIter[sku.SkuType]) (err error)
- func (qg Executor) Get(g genres.Genre) (sku.QueryWithSigilAndObjectId, bool)
- func (qg Executor) GetSigil() (s ids.Sigil)
- func (qg Executor) HasHidden() bool
- type ExecutorPrimitive
- type ObjectId
- type Query
- type QueryCheckedOut
- type Tags
- func (tags *Tags) AddTag(e *tag_paths.Tag) (err error)
- func (tags *Tags) ContainsSku(object *sku.Transacted) bool
- func (tags *Tags) Flush(envRepo env_repo.Env, printerHeader interfaces.FuncIter[string], dryRun bool) (err error)
- func (tags *Tags) HasChanges() bool
- func (tags *Tags) Load(envRepo env_repo.Env) (err error)
- func (tags *Tags) ReadFrom(bufferedReader *bufio.Reader) (n int64, err error)
- func (tags *Tags) RemoveDormantTag(e *tag_paths.Tag) (err error)
- func (tags Tags) WriteTo(w io.Writer) (n int64, err error)
- type WorkspaceStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuilderOptionDefaultGenres ¶
func BuilderOptionDefaultSigil ¶
func BuilderOptionPermittedSigil ¶
func BuilderOptionRequireNonEmptyQuery ¶
func BuilderOptionRequireNonEmptyQuery() builderOptionRequireNonEmptyQuery
func BuilderOptions ¶
func BuilderOptions(options ...BuilderOption) builderOptions
nil options are permitted, they are just skipped during application
func ContainsExternalSku ¶
func ContainsExternalSku( qg *Query, el sku.ExternalLike, state checked_out_state.State, ) (ok bool)
func ContainsSkuCheckedOutState ¶
func ContainsSkuCheckedOutState( qg *Query, state checked_out_state.State, ) (ok bool)
func GetTags ¶
func GetTags(query *Query) ids.TagSetMutable
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func MakeBuilder ¶
func MakeBuilder( envRepo env_repo.Env, typedBlobStore typed_blob_store.Stores, objectProbeIndex sku.ObjectProbeIndex, luaVMPoolBuilder *lua.VMPoolBuilder, workspaceStoreGetter store_workspace.StoreGetter, ) (b *Builder)
func (*Builder) BuildQueryGroup ¶
func (*Builder) BuildQueryGroupWithRepoId ¶
func (*Builder) WithDebug ¶
TODO refactor into BuilderOption
func (*Builder) WithDefaultGenres ¶
TODO refactor into BuilderOption
func (*Builder) WithDefaultSigil ¶
TODO refactor into BuilderOption
func (*Builder) WithDoNotMatchEmpty ¶
TODO refactor into BuilderOption
func (*Builder) WithExpanders ¶
TODO refactor into BuilderOption
func (*Builder) WithExternalLike ¶
func (builder *Builder) WithExternalLike( zts sku.SkuTypeSet, ) *Builder
TODO
func (*Builder) WithFileExtensions ¶
func (builder *Builder) WithFileExtensions( fileExtensions file_extensions.Config, ) *Builder
TODO refactor into BuilderOption
func (*Builder) WithOptions ¶
func (builder *Builder) WithOptions(options BuilderOption) *Builder
func (*Builder) WithPermittedSigil ¶
TODO refactor into BuilderOption
func (*Builder) WithRepoId ¶
TODO refactor into BuilderOption
func (*Builder) WithRequireNonEmptyQuery ¶
TODO refactor into BuilderOption
type BuilderOption ¶
func BuilderOptionWorkspace ¶
func BuilderOptionWorkspace( env BuilderOptionWorkspaceConfigEnv, ) BuilderOption
type BuilderOptionWorkspaceConfigEnv ¶
type BuilderOptionWorkspaceConfigEnv interface {
env_ui.Env
GetWorkspaceConfig() workspace_config_blobs.Config
}
type CompoundMatch ¶
func (*CompoundMatch) ContainsSku ¶
func (k *CompoundMatch) ContainsSku(tg sku.TransactedGetter) bool
func (*CompoundMatch) String ¶
func (k *CompoundMatch) String() string
type DormantCounter ¶
func MakeDormantCounter ¶
func MakeDormantCounter() DormantCounter
type ErrBlobMissing ¶
type ErrBlobMissing struct {
ObjectId
env_dir.ErrBlobMissing
}
func (ErrBlobMissing) Is ¶
func (err ErrBlobMissing) Is(target error) bool
type ExecutionInfo ¶
type ExecutionInfo struct {
WorkspaceStore
sku.FuncPrimitiveQuery
sku.FuncReadOneInto
}
type Executor ¶
type Executor struct {
ExecutionInfo
Out interfaces.FuncIter[sku.ExternalLike]
// contains filtered or unexported fields
}
TODO use ExecutorPrimitive
func MakeExecutorWithExternalStore ¶
func MakeExecutorWithExternalStore( query *Query, fpq sku.FuncPrimitiveQuery, froi sku.FuncReadOneInto, workspaceStore WorkspaceStore, ) Executor
func (*Executor) ExecuteExactlyOne ¶
func (executor *Executor) ExecuteExactlyOne() (object *sku.Transacted, err error)
func (*Executor) ExecuteExactlyOneExternalObject ¶
func (executor *Executor) ExecuteExactlyOneExternalObject( permitInternal bool, ) (object *sku.Transacted, err error)
TODO refactor into methods that have internal in the name
func (*Executor) ExecuteSkuType ¶
func (*Executor) ExecuteTransacted ¶
func (e *Executor) ExecuteTransacted( out interfaces.FuncIter[*sku.Transacted], ) (err error)
func (*Executor) ExecuteTransactedAsSkuType ¶
type ExecutorPrimitive ¶
type ExecutorPrimitive struct {
// contains filtered or unexported fields
}
func MakeExecutorPrimitive ¶
func MakeExecutorPrimitive( qg sku.PrimitiveQueryGroup, fpq sku.FuncPrimitiveQuery, froi sku.FuncReadOneInto, ) ExecutorPrimitive
func (*ExecutorPrimitive) ExecuteExternalLike ¶
func (e *ExecutorPrimitive) ExecuteExternalLike( out interfaces.FuncIter[sku.ExternalLike], ) (err error)
func (*ExecutorPrimitive) ExecuteTransacted ¶
func (e *ExecutorPrimitive) ExecuteTransacted( out interfaces.FuncIter[*sku.Transacted], ) (err error)
type ObjectId ¶
type ObjectId struct {
Exact bool
Virtual bool
Debug bool
*ids.ObjectId
// contains filtered or unexported fields
}
func (ObjectId) ContainsSku ¶
func (objectId ObjectId) ContainsSku( objectGetter sku.TransactedGetter, ) (ok bool)
TODO support exact
type Query ¶
type Query struct {
sku.ExternalQueryOptions
// contains filtered or unexported fields
}
type QueryCheckedOut ¶
type Tags ¶
type Tags struct {
// contains filtered or unexported fields
}
TODO move implicit tags here
func (*Tags) ContainsSku ¶
func (tags *Tags) ContainsSku(object *sku.Transacted) bool
func (*Tags) Flush ¶
func (*Tags) ReadFrom ¶
type WorkspaceStore ¶
type WorkspaceStore interface {
interfaces.WorkspaceStoreReadAllExternalItems
sku.ExternalStoreUpdateTransacted
sku.ExternalStoreReadExternalLikeFromObjectIdLike
QueryCheckedOut
}
Source Files
¶
- build_state.go
- builder.go
- builder_options.go
- compound_match.go
- dormant_counter.go
- errors.go
- executor.go
- executor_primitive.go
- exp.go
- exp_object_ids.go
- exp_sigil_and_genre.go
- exp_tags_or_types.go
- group_debug.go
- main.go
- object_id.go
- pinned_object_id.go
- primitive.go
- public.go
- tags.go
Click to show internal directories.
Click to hide internal directories.