env_repo

package
v0.0.0-...-81dce24 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigBang

type BigBang struct {
	ids.Type
	Config *config_immutable.LatestPrivate

	Yin                  string
	Yang                 string
	ExcludeDefaultType   bool
	ExcludeDefaultConfig bool
	OverrideXDGWithCwd   bool
}

func (*BigBang) SetFlagSet

func (bb *BigBang) SetFlagSet(f *flag.FlagSet)

type Env

type Env struct {
	env_local.Env

	interfaces.DirectoryPaths

	blob_store.CopyingBlobStore
	// contains filtered or unexported fields
}

func Make

func Make(
	env env_local.Env,
	o Options,
) (s Env, err error)

func (Env) DataFileStoreVersion

func (h Env) DataFileStoreVersion() string

func (*Env) Genesis

func (env *Env) Genesis(bb BigBang)

func (Env) GetConfigPrivate

func (s Env) GetConfigPrivate() config_immutable_io.ConfigLoadedPrivate

func (Env) GetConfigPublic

func (s Env) GetConfigPublic() config_immutable_io.ConfigLoadedPublic

func (Env) GetEnv

func (a Env) GetEnv() env_ui.Env

func (Env) GetLockSmith

func (s Env) GetLockSmith() interfaces.LockSmith

func (Env) GetStoreVersion

func (h Env) GetStoreVersion() interfaces.StoreVersion

func (Env) MakeBlobStore

func (s Env) MakeBlobStore() interfaces.LocalBlobStore

func (Env) ReadAllLevel2Files

func (s Env) ReadAllLevel2Files(
	p string,
	w interfaces.FuncIter[string],
) (err error)

func (Env) ReadAllShas

func (s Env) ReadAllShas(
	p string,
	w interfaces.FuncIter[*sha.Sha],
) (err error)

func (Env) ReadAllShasForBlobs

func (s Env) ReadAllShasForBlobs(
	w interfaces.FuncIter[*sha.Sha],
) (err error)

func (Env) ReadCloserCache

func (s Env) ReadCloserCache(p string) (sha.ReadCloser, error)

func (Env) ResetCache

func (s Env) ResetCache() (err error)

func (Env) WriteCloserCache

func (s Env) WriteCloserCache(
	p string,
) (w sha.WriteCloser, err error)

type ErrNotInZitDir

type ErrNotInZitDir struct{}

func (ErrNotInZitDir) Error

func (e ErrNotInZitDir) Error() string

func (ErrNotInZitDir) Is

func (e ErrNotInZitDir) Is(target error) (ok bool)

func (ErrNotInZitDir) ShouldShowStackTrace

func (e ErrNotInZitDir) ShouldShowStackTrace() bool

type Options

type Options struct {
	BasePath             string
	PermitNoZitDirectory bool
	MakeXDGDirectories   bool
}

func (Options) GetReadOnlyBlobStorePath

func (o Options) GetReadOnlyBlobStorePath() string

Jump to

Keyboard shortcuts

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