move load restrictions

This commit is contained in:
Jeffrey Regan
2019-11-01 17:20:50 -07:00
committed by jregan
parent 79c5f8a977
commit a45eca7e22
18 changed files with 243 additions and 139 deletions

View File

@@ -20,7 +20,7 @@ type Options struct {
// Restrictions on what can be loaded from the file system.
// See type definition.
LoadRestrictions loadRestrictions
LoadRestrictions types.LoadRestrictions
// Create an inventory object for pruning.
DoPrune bool
@@ -33,7 +33,7 @@ type Options struct {
func MakeDefaultOptions() *Options {
return &Options{
DoLegacyResourceSort: true,
LoadRestrictions: rootOnly,
LoadRestrictions: types.LoadRestrictionsRootOnly,
DoPrune: false,
PluginConfig: pgmconfig.DefaultPluginConfig(),
}