Documentation
¶
Index ¶
- Variables
- func AbsPath(rel string) string
- func ArrString(something interface{}) []string
- func BuildDependencyFromString(defaultProvider string, dep string) map[string]interface{}
- func BuildStringFromDependency(dep map[string]interface{}) string
- func Contains(s interface{}, elem interface{}) bool
- func CopyFiles(files []string, destination string) error
- func DIRNAME() string
- func Dir(path string) (matches []string, err error)
- func ExecCommand(toRun string, args []string) error
- func FileExists(path string) bool
- func GetOrCreateRepo(path string) map[string]interface{}
- func GupmConfig() gupmEntryPointConfig
- func HOMEDIR(fallback string) string
- func HttpGet(url string) []byte
- func IsDirectory(path string) bool
- func OSNAME() string
- func Path(path string) string
- func ReadDir(path string) ([]os.FileInfo, error)
- func ReadJSON(path string, target interface{}) error
- func RecursiveFileWalkDir(source string) []string
- func RemoveFiles(files []string) error
- func RemoveIndex(s []map[string]interface{}, index int) []map[string]interface{}
- func RunCommand(toRun string, args []string) (string, error)
- func SaveLockDep(path string)
- func SaveRepo(path string, file map[string]interface{})
- func StringInSlice(a string, list []string) bool
- func StringToJSON(b string) map[string]interface{}
- func WriteFile(path string, file string) error
- func WriteJsonFile(path string, file map[string]interface{})
- type Dependency
- type FileStructure
- type GupmEntryPoint
- type Json
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyFileStructure = FileStructure{}
Functions ¶
func ExecCommand ¶
func FileExists ¶
func GetOrCreateRepo ¶
func GupmConfig ¶
func GupmConfig() gupmEntryPointConfig
func IsDirectory ¶
func RecursiveFileWalkDir ¶
func RemoveFiles ¶
func RemoveIndex ¶
func SaveLockDep ¶
func SaveLockDep(path string)
func StringInSlice ¶
func StringToJSON ¶
func WriteJsonFile ¶
Types ¶
type Dependency ¶
type FileStructure ¶
type FileStructure struct { Children map[string]FileStructure Name string Content []byte Filetype int }
func Tar ¶
func Tar(files []string) (FileStructure, error)
func Ungz ¶
func Ungz(r string) (FileStructure, error)
func Untar ¶
func Untar(r string) (FileStructure, error)
func Unzip ¶
func Unzip(r string) (FileStructure, error)
func (*FileStructure) SaveAt ¶
func (g *FileStructure) SaveAt(path string) error
func (*FileStructure) SaveSelfAt ¶
func (g *FileStructure) SaveSelfAt(path string) error
type GupmEntryPoint ¶
type GupmEntryPoint struct { Name string Version string WrapInstallFolder string Git gupmEntryPointGit Publish gupmEntryPointPublish Cli gupmEntryPointCliList Config gupmEntryPointConfigList Dependencies gupmEntryPointDependenciesList }
func ReadGupmJson ¶
func ReadGupmJson(path string) (*GupmEntryPoint, error)
Click to show internal directories.
Click to hide internal directories.