domain

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeleteActionFromInvalidActionOrNotActionError

func GetDeleteActionFromInvalidActionOrNotActionError(invalidActionErrMesg string) ([]string, error)

func GetInvalidActionFromInvalidActionOrNotActionError added in v0.15.0

func GetInvalidActionFromInvalidActionOrNotActionError(invalidActionErrMesg string) ([]string, error)

func GetScopePermissionsFromAuthError

func GetScopePermissionsFromAuthError(authErrMesg string) (map[string][]string, error)

Types

type MPFConfig

type MPFConfig struct {
	ResourceGroup  ResourceGroup
	SubscriptionID string
	TenantID       string
	SP             ServicePrincipal
	Role           Role
}

type MPFResult

type MPFResult struct {
	// The map from which the minimum permissions will be calculated
	RequiredPermissions map[string][]string
	// IterationCount is the number of iterations MPF took to discover all permissions.
	// A value of 0 means all required permissions were provided upfront via initialPermissions.
	IterationCount int
}

func GetMPFResult

func GetMPFResult(requiredPermissions map[string][]string) MPFResult

func GetMPFResultWithIterationCount added in v0.16.0

func GetMPFResultWithIterationCount(requiredPermissions map[string][]string, iterationCount int) MPFResult

type PermissionErrorDetails added in v0.13.0

type PermissionErrorDetails struct {
	MissingPermissions string
	Scope              string
}

type ResourceGroup

type ResourceGroup struct {
	ResourceGroupName       string
	ResourceGroupResourceID string
	Location                string
}

type Role

type Role struct {
	RoleDefinitionID          string
	RoleDefinitionName        string
	RoleDefinitionDescription string
	RoleDefinitionResourceID  string
}

type ServicePrincipal

type ServicePrincipal struct {
	SPClientID     string
	SPObjectID     string
	SPClientSecret string
}

Jump to

Keyboard shortcuts

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