Documentation ¶
Overview ¶
package processor is used to process the library files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LibArchetype ¶
type LibArchetype struct { Name string `json:"name"` PolicyAssignments []string `json:"policy_assignments"` PolicyDefinitions []string `json:"policy_definitions"` PolicySetDefinitions []string `json:"policy_set_definitions"` RoleDefinitions []string `json:"role_definitions"` }
LibArchetype represents an archetype definition file, it used to construct the Archetype struct and is then added to the AlzLib struct.
type ProcessorClient ¶
type ProcessorClient struct {
// contains filtered or unexported fields
}
ProcessorClient is the client that is used to process the library files.
func NewProcessorClient ¶
func NewProcessorClient(fs fs.FS) *ProcessorClient
func (*ProcessorClient) Process ¶
func (client *ProcessorClient) Process(res *Result) error
type Result ¶
type Result struct { PolicyDefinitions map[string]*armpolicy.Definition PolicySetDefinitions map[string]*armpolicy.SetDefinition PolicyAssignments map[string]*armpolicy.Assignment RoleDefinitions map[string]*armauthorization.RoleDefinition LibArchetypes map[string]*LibArchetype }
Result is the structure that gets built by scanning the library files.
Click to show internal directories.
Click to hide internal directories.