role

package
v0.0.0-...-028f1de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Use powershell to get role info
	PowershellCmd = "powershell"
	QueryFileName = "roleInfo.xml"
)
View Source
const (
	// GathererName captures name of Role gatherer
	GathererName = "ACS:WindowsRole"
	// SchemaVersionOfRoleGatherer represents schema version of Role gatherer
	SchemaVersionOfRoleGatherer = "1.0"
	RoleCountLimit              = 500
	RoleCountLimitExceeded      = "Role Count Limit Exceeded"
)

Variables

This section is empty.

Functions

func LogError

func LogError(err error)

LogError is a wrapper on log.Error for easy testability

Types

type Feature

type Feature struct {
	Feature     []Feature
	DisplayName string `xml:"DisplayName,attr"`
	Installed   string `xml:"Installed,attr"`
	Id          string `xml:"Id,attr"`
	Default     string `xml:"Default,attr"`
}

type Result

type Result struct {
	Role    []Role
	Feature []Feature
}

type Role

type Role struct {
	RoleService []RoleService
	DisplayName string `xml:"DisplayName,attr"`
	Installed   string `xml:"Installed,attr"`
	Id          string `xml:"Id,attr"`
	Default     string `xml:"Default,attr"`
}

type RoleService

type RoleService struct {
	RoleService []RoleService
	DisplayName string `xml:"DisplayName,attr"`
	Installed   string `xml:"Installed,attr"`
	Id          string `xml:"Id,attr"`
	Default     string `xml:"Default,attr"`
}

type T

type T struct{}

func Gatherer

func Gatherer() *T

Gatherer returns new Role gatherer

func (*T) Name

func (t *T) Name() string

Name returns name of Process gatherer

func (*T) Run

func (t *T) Run(configuration model.Config) (items []model.Item, err error)

Run executes Role gatherer and returns list of inventory.Item comprising of role data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL