Documentation ¶
Index ¶
- Constants
- Variables
- func Cleanup(fs filesystem.FileLoader, logger util.Logger) ([]string, diff.Diffs, error)
- func Deployments(curr string, fs filesystem.FileLoader, fix bool, path string, deps []string) ([]string, diff.Diffs, error)
- func Full(ctx context.Context, prj *project.Project, logger util.Logger) ([]string, error)
- func Ignored(prj *project.Project, fs filesystem.FileLoader, logger util.Logger) ([]string, error)
- func Imports(self string, fix bool, targetPath string, fs filesystem.FileLoader, ...) ([]string, diff.Diffs, error)
- func LoadDepsMap(projects project.Projects, minVersions int, pSvc *project.Service) (map[string]map[string][]string, error)
- func OnDepsUpgrade(ctx context.Context, prj *project.Project, up string, o string, n string, ...) error
- func SetDepsMap(ctx context.Context, projects project.Projects, dep *Dependency, ...) (string, error)
- func SetDepsProject(ctx context.Context, prjs project.Projects, key string, pSvc *project.Service, ...) (string, error)
- func Size(ctx context.Context, prj *project.Project, fs filesystem.FileLoader, ...) (any, []string, error)
- type Dependencies
- type Dependency
- type ExecHelper
- type Pkg
- type Pkgs
- type SizeResult
- type SizeResultMap
- type SizeResults
Constants ¶
View Source
const OSWindows = "windows"
Variables ¶
View Source
var ScriptExtension = func() string { if runtime.GOOS == OSWindows { return "bat" } return "sh" }()
Functions ¶
func Cleanup ¶
func Cleanup(fs filesystem.FileLoader, logger util.Logger) ([]string, diff.Diffs, error)
func Deployments ¶
func Deployments(curr string, fs filesystem.FileLoader, fix bool, path string, deps []string) ([]string, diff.Diffs, error)
func Ignored ¶ added in v0.7.15
func Ignored(prj *project.Project, fs filesystem.FileLoader, logger util.Logger) ([]string, error)
func LoadDepsMap ¶
func OnDepsUpgrade ¶
func SetDepsMap ¶
func SetDepsProject ¶
Types ¶
type Dependencies ¶
type Dependencies []*Dependency
func LoadDeps ¶
func LoadDeps( ctx context.Context, key string, path string, includeUpdates bool, fs filesystem.FileLoader, showAll bool, logger util.Logger, ) (Dependencies, error)
func LoadDepsEasyMode ¶
func LoadDepsEasyMode(key string, fs filesystem.FileLoader) (Dependencies, error)
func (Dependencies) Get ¶
func (d Dependencies) Get(k string) *Dependency
type Dependency ¶
type Dependency struct { Key string `json:"key"` Version string `json:"version,omitempty"` Available string `json:"available,omitempty"` References []string `json:"references,omitempty"` }
func ParseDependency ¶
func ParseDependency(line string) *Dependency
func (*Dependency) AddRef ¶
func (d *Dependency) AddRef(r string)
func (*Dependency) String ¶
func (d *Dependency) String() string
type ExecHelper ¶ added in v1.5.33
type ExecHelper struct {
Logs []string `json:"logs,omitempty"`
}
func (*ExecHelper) AddLog ¶ added in v1.5.33
func (e *ExecHelper) AddLog(msg string, args ...any)
func (*ExecHelper) AddLogOutput ¶ added in v1.5.33
func (e *ExecHelper) AddLogOutput(key string, out string)
type Pkg ¶
type Pkgs ¶
type Pkgs []*Pkg
type SizeResult ¶ added in v1.5.33
type SizeResult struct { Name string `json:"name"` Type string `json:"type,omitempty"` Size int `json:"size"` }
func (*SizeResult) String ¶ added in v1.5.33
func (s *SizeResult) String() string
type SizeResultMap ¶ added in v1.5.33
type SizeResultMap map[string]SizeResults
func (SizeResultMap) Add ¶ added in v1.5.33
func (s SizeResultMap) Add(key string, v ...*SizeResult)
func (SizeResultMap) Flatten ¶ added in v1.5.33
func (s SizeResultMap) Flatten() SizeResultMap
func (SizeResultMap) Strings ¶ added in v1.5.33
func (s SizeResultMap) Strings() []string
func (SizeResultMap) TotalCount ¶ added in v1.5.33
func (s SizeResultMap) TotalCount() map[string]int
func (SizeResultMap) TotalSizes ¶ added in v1.5.33
func (s SizeResultMap) TotalSizes() map[string]int
func (SizeResultMap) TotalStrings ¶ added in v1.5.33
func (s SizeResultMap) TotalStrings() []string
type SizeResults ¶ added in v1.5.33
type SizeResults []*SizeResult
func (SizeResults) TotalSize ¶ added in v1.5.33
func (r SizeResults) TotalSize() int
Click to show internal directories.
Click to hide internal directories.