Documentation ¶
Index ¶
- Constants
- Variables
- func Activate(sink io.Writer, targetFolder string) error
- func ApplyExternallyManaged(path string) (label string, err error)
- func AsUnifiedLines(value string) []string
- func AsVersion(incoming string) (uint64, string)
- func BinMicromamba() string
- func BugsCleanup()
- func Cleanup(daylimit int, ...) (err error)
- func CondaEnvironment() []string
- func CondaExecutionEnvironment(location string, inject []string, full bool) []string
- func CondaPaths(prefix string) []string
- func DiagnoseDirty(beforeLabel, afterLabel string, beforeHash, afterHash []byte, ...)
- func DigestFor(folder string, collect map[string]string) ([]byte, error)
- func DirhashDiff(history, future map[string]string, warning bool)
- func DoExtract(delay time.Duration) bool
- func DoFailMicromamba() bool
- func EnforceLongpathSupport() error
- func FindPath(environment string) pathlib.PathParts
- func FindPython(location string) (string, bool)
- func FindUv(location string) (string, bool)
- func GoldenMasterFilename(targetFolder string) string
- func GunzipWrite(context, filename string, blob []byte) (err error)
- func HasLongPathSupport() bool
- func HasMicroMamba() bool
- func HolotreePath(environment string) pathlib.PathParts
- func IsCacheable(text string) bool
- func IsSpecialCacheable(name, version string) bool
- func IsWindows() bool
- func LegacyEnvironment(recorder Recorder, force bool, skip SkipLayer, configuration string) error
- func LiveCapture(liveFolder string, command ...string) (string, int, error)
- func LiveExecution(sink io.Writer, liveFolder string, command ...string) (int, error)
- func LoadActivationEnvironment(targetFolder string) []string
- func LoadWantedDependencies(filename string) dependencies
- func LocalChannel() (string, bool)
- func LogUnifiedEnvironment(content []byte)
- func MakeRelativeMap(root string, entries map[string]string) map[string]string
- func MicromambaLink() string
- func MicromambaVersion() string
- func MustMicromamba() bool
- func PipVersion(python string) string
- func ReadConfig(filename string) (string, error)
- func RemoveCurrentTemp()
- func SideBySideViewOfDependencies(goldenfile, wantedfile string) (err error)
- func SplitLines(value string) []string
- func UnifyLine(value string) string
- func UvVersion(uv string) string
- func ValidLocation(value string) bool
- func ValidateLocations() bool
- type AnalyzerStrategy
- type Dependency
- func (it *Dependency) ChooseSpecific(right *Dependency) (*Dependency, error)
- func (it *Dependency) ExactlySame(right *Dependency) bool
- func (it *Dependency) Index(others []*Dependency) int
- func (it *Dependency) IsCacheable() bool
- func (it *Dependency) IsExact() bool
- func (it *Dependency) Match(name string) bool
- func (it *Dependency) Representation() string
- func (it *Dependency) SameAs(right *Dependency) bool
- type Environment
- func (it *Environment) AsLayers() [3]string
- func (it *Environment) AsPureConda() *Environment
- func (it *Environment) AsRequirementsText() string
- func (it *Environment) AsYaml() (string, error)
- func (it *Environment) CondaList() []interface{}
- func (it *Environment) Diagnostics(target *common.DiagnosticStatus, production bool)
- func (it *Environment) FingerprintLayers() [3]string
- func (it *Environment) FreezeDependencies(fixed dependencies) *Environment
- func (it *Environment) FromDependencies(fixed dependencies) (*Environment, bool)
- func (it *Environment) HasCondaDependency(name string) bool
- func (it *Environment) IsCacheable() bool
- func (it *Environment) Merge(right *Environment) (*Environment, error)
- func (it *Environment) PipList() []interface{}
- func (it *Environment) PipMap() map[interface{}]interface{}
- func (it *Environment) PushChannel(channel string)
- func (it *Environment) PushConda(dependency *Dependency) error
- func (it *Environment) PushPip(dependency *Dependency) error
- func (it *Environment) SaveAs(filename string) error
- func (it *Environment) SaveAsRequirements(filename string) error
- func (it *Environment) WithoutPostInstall() *Environment
- type InstallObserver
- type PlanAnalyzer
- type PlanWriter
- type Recorder
- type RepeatCache
- type SkipLayer
- type StrategyMap
- type SysconfigPaths
Constants ¶
View Source
const (
EXTERNALLY_MANAGED = "EXTERNALLY-MANAGED"
)
View Source
const (
Newline = "\n"
)
Variables ¶
View Source
var ( FileExtensions = []string{""} Shell = []string{"bash", "--noprofile", "--norc", "-i"} )
Functions ¶
func ApplyExternallyManaged ¶
func AsUnifiedLines ¶
func BinMicromamba ¶
func BinMicromamba() string
func BugsCleanup ¶
func BugsCleanup()
func CondaEnvironment ¶
func CondaEnvironment() []string
func CondaPaths ¶
func DiagnoseDirty ¶
func DirhashDiff ¶
func DoFailMicromamba ¶
func DoFailMicromamba() bool
func EnforceLongpathSupport ¶
func EnforceLongpathSupport() error
func FindPython ¶
func GoldenMasterFilename ¶
func GunzipWrite ¶
func HasLongPathSupport ¶
func HasLongPathSupport() bool
func HasMicroMamba ¶
func HasMicroMamba() bool
func HolotreePath ¶
func IsCacheable ¶
func IsSpecialCacheable ¶
func LegacyEnvironment ¶
func LiveExecution ¶
func LoadWantedDependencies ¶
func LoadWantedDependencies(filename string) dependencies
func LocalChannel ¶
func LogUnifiedEnvironment ¶
func LogUnifiedEnvironment(content []byte)
func MakeRelativeMap ¶
func MicromambaLink ¶
func MicromambaLink() string
func MicromambaVersion ¶
func MicromambaVersion() string
func MustMicromamba ¶
func MustMicromamba() bool
func PipVersion ¶
func ReadConfig ¶
func RemoveCurrentTemp ¶
func RemoveCurrentTemp()
func SplitLines ¶
func ValidLocation ¶
func ValidateLocations ¶
func ValidateLocations() bool
Types ¶
type AnalyzerStrategy ¶
type AnalyzerStrategy func(*PlanAnalyzer, string)
type Dependency ¶
func AsDependency ¶
func AsDependency(value string) *Dependency
func (*Dependency) ChooseSpecific ¶
func (it *Dependency) ChooseSpecific(right *Dependency) (*Dependency, error)
func (*Dependency) ExactlySame ¶
func (it *Dependency) ExactlySame(right *Dependency) bool
func (*Dependency) Index ¶
func (it *Dependency) Index(others []*Dependency) int
func (*Dependency) IsCacheable ¶
func (it *Dependency) IsCacheable() bool
func (*Dependency) IsExact ¶
func (it *Dependency) IsExact() bool
func (*Dependency) Match ¶
func (it *Dependency) Match(name string) bool
func (*Dependency) Representation ¶
func (it *Dependency) Representation() string
func (*Dependency) SameAs ¶
func (it *Dependency) SameAs(right *Dependency) bool
type Environment ¶
type Environment struct { Name string Prefix string Channels []string Conda []*Dependency Pip []*Dependency PostInstall []string }
func CondaYamlFrom ¶
func CondaYamlFrom(content []byte) (*Environment, error)
func ReadPackageCondaYaml ¶
func ReadPackageCondaYaml(filename string) (*Environment, error)
func ReadPackageYaml ¶
func ReadPackageYaml(filename string) (*Environment, error)
func SummonEnvironment ¶
func SummonEnvironment(filename string) *Environment
func (*Environment) AsLayers ¶
func (it *Environment) AsLayers() [3]string
func (*Environment) AsPureConda ¶
func (it *Environment) AsPureConda() *Environment
func (*Environment) AsRequirementsText ¶
func (it *Environment) AsRequirementsText() string
func (*Environment) AsYaml ¶
func (it *Environment) AsYaml() (string, error)
func (*Environment) CondaList ¶
func (it *Environment) CondaList() []interface{}
func (*Environment) Diagnostics ¶
func (it *Environment) Diagnostics(target *common.DiagnosticStatus, production bool)
func (*Environment) FingerprintLayers ¶
func (it *Environment) FingerprintLayers() [3]string
func (*Environment) FreezeDependencies ¶
func (it *Environment) FreezeDependencies(fixed dependencies) *Environment
func (*Environment) FromDependencies ¶
func (it *Environment) FromDependencies(fixed dependencies) (*Environment, bool)
func (*Environment) HasCondaDependency ¶
func (it *Environment) HasCondaDependency(name string) bool
func (*Environment) IsCacheable ¶
func (it *Environment) IsCacheable() bool
func (*Environment) Merge ¶
func (it *Environment) Merge(right *Environment) (*Environment, error)
func (*Environment) PipList ¶
func (it *Environment) PipList() []interface{}
func (*Environment) PipMap ¶
func (it *Environment) PipMap() map[interface{}]interface{}
func (*Environment) PushChannel ¶
func (it *Environment) PushChannel(channel string)
func (*Environment) PushConda ¶
func (it *Environment) PushConda(dependency *Dependency) error
func (*Environment) PushPip ¶
func (it *Environment) PushPip(dependency *Dependency) error
func (*Environment) SaveAs ¶
func (it *Environment) SaveAs(filename string) error
func (*Environment) SaveAsRequirements ¶
func (it *Environment) SaveAsRequirements(filename string) error
func (*Environment) WithoutPostInstall ¶
func (it *Environment) WithoutPostInstall() *Environment
type InstallObserver ¶
func (InstallObserver) HasFailures ¶
func (it InstallObserver) HasFailures(targetFolder string) bool
type PlanAnalyzer ¶
type PlanAnalyzer struct { Strategies StrategyMap Active AnalyzerStrategy Notes []string Pending []byte Repeats RepeatCache Realtime bool Details bool Started time.Time }
func NewPlanAnalyzer ¶
func NewPlanAnalyzer(realtime bool) *PlanAnalyzer
func (*PlanAnalyzer) Close ¶
func (it *PlanAnalyzer) Close()
func (*PlanAnalyzer) Observe ¶
func (it *PlanAnalyzer) Observe(event string)
type PlanWriter ¶
type PlanWriter struct {
// contains filtered or unexported fields
}
func NewPlanWriter ¶
func NewPlanWriter(filename string) *PlanWriter
func (*PlanWriter) AsText ¶
func (it *PlanWriter) AsText() string
func (*PlanWriter) Save ¶
func (it *PlanWriter) Save() error
type RepeatCache ¶
type StrategyMap ¶
type StrategyMap map[string]AnalyzerStrategy
type SysconfigPaths ¶
type SysconfigPaths struct { Stdlib string `json:"stdlib"` Purelib string `json:"purelib"` Platlib string `json:"platlib"` }
func FindSysconfigPaths ¶
func FindSysconfigPaths(path string) (paths *SysconfigPaths, err error)
Click to show internal directories.
Click to hide internal directories.