role

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Overview

Package role contains a role gatherer.

Index

Constants

View Source
const (
	// GathererName captures name of Role gatherer
	GathererName = "AWS:WindowsRole"
	// SchemaVersionOfRoleGatherer represents schema version of Role gatherer
	SchemaVersionOfRoleGatherer = "1.0"
)
View Source
const (
	QueryFileName = "roleInfo.xml"
)

Variables

View Source
var (
	// Use powershell to get role info
	PowershellCmd = appconfig.PowerShellPluginCommandName
)

Functions

func LogError

func LogError(log log.T, 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(context context.T) *T

Gatherer returns new Role gatherer

func (*T) Name

func (t *T) Name() string

Name returns name of Process gatherer

func (*T) RequestStop

func (t *T) RequestStop() error

RequestStop stops the execution of Role gatherer.

func (*T) Run

func (t *T) Run(context context.T, 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