Documentation ¶
Index ¶
- func EnsureDirectories(log *logrus.Logger, dirs ...string) (err error)
- func EnsureDirectory(log *logrus.Logger, dir string) error
- func IsExistDirectory(dir string) bool
- func IsExistFile(dir string) bool
- type Home
- func (h Home) Cache() string
- func (h Home) CacheArchives() string
- func (h Home) CachePlugins() string
- func (h Home) CacheRepositoryFile() string
- func (h Home) Config() string
- func (h Home) ConfigFile() string
- func (h Home) ContainsAnySpace() bool
- func (h Home) Mounts() string
- func (h Home) Plugins() string
- func (h Home) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDirectories ¶
EnsureDirectories 確保傳入資料夾路徑存在, 不存在會主動建立之
func EnsureDirectory ¶
EnsureDirectory 確保傳入資料夾路徑存在, 不存在會主動建立之
Types ¶
type Home ¶
type Home string
Home 代表此 app 寫 filesystem 的根目錄路徑
func (Home) CacheArchives ¶
CacheArchives 回傳 cache/archives 的目錄路徑
func (Home) CacheRepositoryFile ¶
CacheRepositoryFile 回傳 cache/plugins/repository.yaml 的檔案路徑
func (Home) ContainsAnySpace ¶
ContainsAnySpace 回傳 Home 根目錄是否包含空白
Click to show internal directories.
Click to hide internal directories.