domain

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 7 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 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
}

func GetMPFResult

func GetMPFResult(requiredPermissions map[string][]string) 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