Documentation
¶
Index ¶
- func AddOrUpdateEnvPaths(addOrUpdateEnvPaths ...string) *errorwrapper.Wrapper
- func AddOrUpdateEnvPathsPtr(addOrUpdateEnvPaths *[]string) *errorwrapper.Wrapper
- func GetEnvSeparator() string
- func LinuxAddOrUpdate(isApplyEnvironmentSource bool, envPaths ...string) *errorwrapper.Wrapper
- func LinuxAddOrUpdatePtr(envPaths []string, isApplyEnvironmentSource bool) *errorwrapper.Wrapper
- func LinuxApplySourceEnvironment() *errorwrapper.Wrapper
- func LinuxRemovePtr(envPaths []string, isApplyEnvironmentSource bool) *errorwrapper.Wrapper
- func ReadEnvPaths() []string
- func ReadEnvPathsPtr() *[]string
- func RemoveEnvPaths(removeEnvPaths ...string) *errorwrapper.Wrapper
- func RemoveEnvPathsPtr(removeEnvPaths *[]string) *errorwrapper.Wrapper
- func SetEnv(variable, value string) *errorwrapper.Wrapper
- func SetEnvPath(compiledPath string) *errorwrapper.Wrapper
- type ExecutableEnvironmentPath
- func (it *ExecutableEnvironmentPath) GetCachedFileNamesCollection() *fileinfo.FileNamesCollection
- func (it *ExecutableEnvironmentPath) GetDirectories() []*string
- func (it *ExecutableEnvironmentPath) GetFileNamesCollection() *fileinfo.FileNamesCollection
- func (it *ExecutableEnvironmentPath) GetFilePathsContains(separator, contains string) *[]string
- func (it *ExecutableEnvironmentPath) Length() int
- type ExecutableEnvironmentPathCollection
- func (receiver *ExecutableEnvironmentPathCollection) AddPtr(exeEnvPath *ExecutableEnvironmentPath)
- func (receiver *ExecutableEnvironmentPathCollection) IsExists(exeEnvPath *ExecutableEnvironmentPath) bool
- func (receiver *ExecutableEnvironmentPathCollection) List() *[]*ExecutableEnvironmentPath
- func (receiver *ExecutableEnvironmentPathCollection) OnlyNamesCollection() *[]*ExecutableEnvironmentPath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOrUpdateEnvPaths ¶ added in v0.1.2
func AddOrUpdateEnvPaths(addOrUpdateEnvPaths ...string) *errorwrapper.Wrapper
func AddOrUpdateEnvPathsPtr ¶ added in v0.1.2
func AddOrUpdateEnvPathsPtr(addOrUpdateEnvPaths *[]string) *errorwrapper.Wrapper
func GetEnvSeparator ¶ added in v0.1.2
func GetEnvSeparator() string
func LinuxAddOrUpdate ¶ added in v0.1.2
func LinuxAddOrUpdate(isApplyEnvironmentSource bool, envPaths ...string) *errorwrapper.Wrapper
func LinuxAddOrUpdatePtr ¶ added in v0.1.2
func LinuxAddOrUpdatePtr(envPaths []string, isApplyEnvironmentSource bool) *errorwrapper.Wrapper
func LinuxApplySourceEnvironment ¶ added in v0.1.2
func LinuxApplySourceEnvironment() *errorwrapper.Wrapper
func LinuxRemovePtr ¶ added in v0.1.2
func LinuxRemovePtr(envPaths []string, isApplyEnvironmentSource bool) *errorwrapper.Wrapper
func ReadEnvPaths ¶ added in v0.1.2
func ReadEnvPaths() []string
func ReadEnvPathsPtr ¶ added in v0.1.2
func ReadEnvPathsPtr() *[]string
func RemoveEnvPaths ¶ added in v0.1.2
func RemoveEnvPaths(removeEnvPaths ...string) *errorwrapper.Wrapper
func RemoveEnvPathsPtr ¶ added in v0.1.2
func RemoveEnvPathsPtr(removeEnvPaths *[]string) *errorwrapper.Wrapper
func SetEnv ¶ added in v0.1.2
func SetEnv(variable, value string) *errorwrapper.Wrapper
func SetEnvPath ¶ added in v0.1.2
func SetEnvPath(compiledPath string) *errorwrapper.Wrapper
Types ¶
type ExecutableEnvironmentPath ¶
type ExecutableEnvironmentPath struct { Variable string Expanded string sync.Mutex // contains filtered or unexported fields }
func (*ExecutableEnvironmentPath) GetCachedFileNamesCollection ¶
func (it *ExecutableEnvironmentPath) GetCachedFileNamesCollection() *fileinfo.FileNamesCollection
GetCachedFileNamesCollection returns all pathsCollection paths on that env directory once, caches it and returns that in later function calls
func (*ExecutableEnvironmentPath) GetDirectories ¶
func (it *ExecutableEnvironmentPath) GetDirectories() []*string
GetDirectories
returns all directories paths on that env directory,
func (*ExecutableEnvironmentPath) GetFileNamesCollection ¶
func (it *ExecutableEnvironmentPath) GetFileNamesCollection() *fileinfo.FileNamesCollection
func (*ExecutableEnvironmentPath) GetFilePathsContains ¶
func (it *ExecutableEnvironmentPath) GetFilePathsContains( separator, contains string, ) *[]string
GetFilePathsContains
returns all pathsCollection paths on which contains the given string. If no path is found, returns empty array.
func (*ExecutableEnvironmentPath) Length ¶
func (it *ExecutableEnvironmentPath) Length() int
type ExecutableEnvironmentPathCollection ¶
type ExecutableEnvironmentPathCollection struct {
// contains filtered or unexported fields
}
func GetExecutableEnvironmentPathCollection ¶
func GetExecutableEnvironmentPathCollection() *ExecutableEnvironmentPathCollection
func NewExecutableEnvironmentPathCollection ¶
func NewExecutableEnvironmentPathCollection(capacity int) ExecutableEnvironmentPathCollection
func NewExecutableEnvironmentPathCollectionPtr ¶
func NewExecutableEnvironmentPathCollectionPtr(capacity int) *ExecutableEnvironmentPathCollection
func (*ExecutableEnvironmentPathCollection) AddPtr ¶
func (receiver *ExecutableEnvironmentPathCollection) AddPtr( exeEnvPath *ExecutableEnvironmentPath, )
func (*ExecutableEnvironmentPathCollection) IsExists ¶ added in v0.0.8
func (receiver *ExecutableEnvironmentPathCollection) IsExists( exeEnvPath *ExecutableEnvironmentPath, ) bool
func (*ExecutableEnvironmentPathCollection) List ¶
func (receiver *ExecutableEnvironmentPathCollection) List() *[]*ExecutableEnvironmentPath
func (*ExecutableEnvironmentPathCollection) OnlyNamesCollection ¶
func (receiver *ExecutableEnvironmentPathCollection) OnlyNamesCollection() *[]*ExecutableEnvironmentPath
Source Files
¶
- AddOrUpdateEnvPaths.go
- AddOrUpdateEnvPathsPtr.go
- ExecutableEnvironmentPath.go
- ExecutableEnvironmentPathCollection.go
- GetEnvSeparator.go
- GetExecutableEnvironmentPathCollection.go
- LinuxAddOrUpdate.go
- LinuxAddOrUpdatePtr.go
- LinuxApplySourceEnvironment.go
- LinuxRemovePtr.go
- ReadEnvPaths.go
- ReadEnvPathsPtr.go
- RemoveEnvPaths.go
- RemoveEnvPathsPtr.go
- SetEnv.go
- SetEnvPath.go
- compileEnvPathToLinuxRawEnvPathFormat.go
- consts.go
- funcs.go
- getLinuxRawEnvPathToHashset.go
- hashsetEnvPathToSingleString.go
- linuxCrudEnvPath.go
- linuxEnvAddOrUpdateAction.go
- linuxEnvRemoveAction.go
- vars.go
Click to show internal directories.
Click to hide internal directories.