store_config

package
v0.0.0-...-ed7c31d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TagComparePtr

func TagComparePtr(left, right *tag) cmp.Result

Types

type ApproximatedType

type ApproximatedType = typed_blob_store.ApproximatedType

type CLI

type CLI = repo_config_cli.Config

type Config

type Config struct {
	CLI
	// contains filtered or unexported fields
}

func (Config) AccumulateImplicitTags

func (compiled Config) AccumulateImplicitTags(
	tag ids.Tag,
) (err error)

func (Config) GetApproximatedType

func (compiled Config) GetApproximatedType(
	id domain_interfaces.ObjectId,
) (ct ApproximatedType)

Returns the exactly matching Typ, or if it doesn't exist, returns the parent Typ or nil. (Parent Typ for `md-gdoc` would be `md`.)

func (Config) GetCLIFlags

func (config Config) GetCLIFlags() (flags []string)

func (Config) GetFileExtensions

func (config Config) GetFileExtensions() file_extensions.Config

func (Config) GetImplicitTags

func (compiled Config) GetImplicitTags(tag ids.Tag) ids.TagSet

func (Config) GetPrintOptions

func (config Config) GetPrintOptions() options_print.Options

func (Config) GetSku

func (compiled Config) GetSku() *sku.Transacted

func (Config) GetTagOrRepoIdOrType

func (compiled Config) GetTagOrRepoIdOrType(
	objectIdString string,
) (object *sku.Transacted, err error)

func (Config) GetTypeExtension

func (config Config) GetTypeExtension(v string) string

func (Config) GetTypeStringFromExtension

func (config Config) GetTypeStringFromExtension(t string) string

func (Config) IsInlineType

func (config Config) IsInlineType(tipe ids.Type) (isInline bool)

func (Config) SetNeedsRecompile

func (compiled Config) SetNeedsRecompile(reason string)

type Store

type Store interface {
	GetConfig() Config
	GetConfigPtr() *Config
	HasChanges() (ok bool)
	GetChanges() (out []string)
}

type StoreMutable

type StoreMutable interface {
	Store

	AddTransacted(
		child *sku.Transacted,
		parent *sku.Transacted,
	) (err error)

	Initialize(
		dirLayout env_repo.Env,
		kcli repo_config_cli.Config,
	) (err error)

	Reset() error

	Flush(
		dirLayout env_repo.Env,
		blobStore typed_blob_store.Stores,
		printerHeader interfaces.FuncIter[string],
	) (err error)
}

func Make

func Make() StoreMutable

Source Files

  • accessors.go
  • cli.go
  • compiled.go
  • main.go
  • persist.go
  • tag.go

Jump to

Keyboard shortcuts

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