Closed lukasjarosch closed 1 year ago
NewFile
NewYamlFile
Inventory.discoverFiles
fs.go
Inventory.matchesExtension
Inventory.loadClassFiles
Inventory.loadSecretFiles
Inventory.loadTargetFiles
loadTargetFiles
Inventory.replaceVariables
variable.go
inv.classFiles
Inventory.replaceSecret
secret.go
Inventory.Load
NewInventory
Skipper Refactoring
NewFile
toNewYamlFile
Inventory.discoverFiles
can be moved and generalized tofs.go
Inventory.matchesExtension
is only used beInventory.discoverFiles
and may even be obsolete?Inventory.loadClassFiles
,Inventory.loadSecretFiles
andInventory.loadTargetFiles
are >90% similarloadTargetFiles
has wildcard class handling which could be moved to somewhere elseInventory.replaceVariables
has nothing to do with the Inventory itself and should be moved tovariable.go
inv.classFiles
Inventory.replaceSecret
has nothing to do with the inventory. It does not even have a dependency to it.secret.go
Inventory.Load
really required? We could also make it private and call it inNewInventory