Documentation
¶
Index ¶
- func BackupDeps(depsPath string) error
- func CalculateTotalDependencies(rootPath string, depsPath string, conf *Config, mode Mode, ...) (*Cache, *DependencyNode, error)
- func CleanDirectory(directory string) error
- func CleanDirectoryWithBackup(directory string, tempSuffix string) (string, error)
- func CleanTempDirectory(tempSuffix string) (string, error)
- func CleanTempDirectoryEx(directory string, tempSuffix string) (string, error)
- func CreateDirectoryIfNeeded(directory string) error
- func FindClosestConfigurationFiles(startPath string) ([]string, error)
- func HTTPGet(downloadURL *url.URL, targetFile string) (err error)
- func MakeSymlink(existingDirectory string, targetDirectory string) error
- func RepoNameToShortName(repo string) string
- func TempDirectory(tempSuffix string) (string, error)
- type ArtifactType
- type Cache
- type Config
- type DependencyInfo
- type DependencyNode
- func (n *DependencyNode) AddDependency(node *DependencyNode)
- func (n *DependencyNode) AddDependingOnThis(node *DependencyNode)
- func (n *DependencyNode) AddDevelopment(node *DependencyNode)
- func (n *DependencyNode) ArtifactType() ArtifactType
- func (n *DependencyNode) Dependencies() []*DependencyNode
- func (n *DependencyNode) LibraryName() string
- func (n *DependencyNode) Name() string
- func (n *DependencyNode) Print(indent int)
- func (n *DependencyNode) ShortName() string
- func (n *DependencyNode) String() string
- type Mode
- type Package
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupDeps ¶
func CleanDirectory ¶
func CleanTempDirectory ¶
func CleanTempDirectoryEx ¶
func CreateDirectoryIfNeeded ¶
func MakeSymlink ¶
func RepoNameToShortName ¶
func TempDirectory ¶
Types ¶
type ArtifactType ¶
type ArtifactType uint
const ( Library ArtifactType = iota ConsoleApplication Application Inherit )
func ToArtifactType ¶
func ToArtifactType(v string) ArtifactType
type Cache ¶
type Cache struct {
Nodes map[string]*DependencyNode
}
func (*Cache) AddNode ¶
func (c *Cache) AddNode(name string, node *DependencyNode)
func (*Cache) FindNode ¶
func (c *Cache) FindNode(name string) *DependencyNode
type Config ¶
type Config struct { DepsVersion string Version string Name string LibraryName string ArtifactType string Dependencies []Package Development []Package }
func ReadConfigFromDirectory ¶
func ReadConfigFromFilename ¶
type DependencyInfo ¶
type DependencyInfo struct { RootPath string PackageRootPath string RootNodes []*DependencyNode RootNode *DependencyNode }
func SetupDependencies ¶
type DependencyNode ¶
type DependencyNode struct {
// contains filtered or unexported fields
}
func (*DependencyNode) AddDependency ¶
func (n *DependencyNode) AddDependency(node *DependencyNode)
func (*DependencyNode) AddDependingOnThis ¶
func (n *DependencyNode) AddDependingOnThis(node *DependencyNode)
func (*DependencyNode) AddDevelopment ¶
func (n *DependencyNode) AddDevelopment(node *DependencyNode)
func (*DependencyNode) ArtifactType ¶
func (n *DependencyNode) ArtifactType() ArtifactType
func (*DependencyNode) Dependencies ¶
func (n *DependencyNode) Dependencies() []*DependencyNode
func (*DependencyNode) LibraryName ¶
func (n *DependencyNode) LibraryName() string
func (*DependencyNode) Name ¶
func (n *DependencyNode) Name() string
func (*DependencyNode) Print ¶
func (n *DependencyNode) Print(indent int)
func (*DependencyNode) ShortName ¶
func (n *DependencyNode) ShortName() string
func (*DependencyNode) String ¶
func (n *DependencyNode) String() string
Click to show internal directories.
Click to hide internal directories.