Documentation
¶
Index ¶
- Constants
- func CreateADClientSecretCredential(ctx context.Context, params map[string]string) (*azidentity.ClientSecretCredential, error)
- func CreateRoleAssignment(ctx context.Context, params map[string]string, binding IAMRoleAssignment) error
- func DeleteRoleAssignment(ctx context.Context, params map[string]string, binding IAMRoleAssignment) error
- func GetPrincipalIdByName(ctx context.Context, params map[string]string, ...) string
- func GetPrincipalNameById(ctx context.Context, params map[string]string, ...) string
- func GetRoleIdByName(ctx context.Context, params map[string]string, roleName string) (*string, error)
- type AccessProviderFeedbackHandler
- type AccessProviderFeedbackMap
- type IAMRoleAssignment
- type IamClient
Constants ¶
View Source
const ( AzSubscriptionId = "azure-subscription-id" DataUsageWindow = "data-usage-window" )
Variables ¶
This section is empty.
Functions ¶
func CreateADClientSecretCredential ¶
func CreateADClientSecretCredential(ctx context.Context, params map[string]string) (*azidentity.ClientSecretCredential, error)
func CreateRoleAssignment ¶
func DeleteRoleAssignment ¶
func GetPrincipalIdByName ¶
func GetPrincipalIdByName(ctx context.Context, params map[string]string, principalType armauthorization.PrincipalType, name string) string
func GetPrincipalNameById ¶
func GetPrincipalNameById(ctx context.Context, params map[string]string, principalType armauthorization.PrincipalType, id string) string
Types ¶
type AccessProviderFeedbackHandler ¶ added in v0.3.0
type AccessProviderFeedbackMap ¶ added in v0.3.0
type AccessProviderFeedbackMap map[string]sync_to_target.AccessProviderSyncFeedback
type IAMRoleAssignment ¶
type IAMRoleAssignment struct {
PrincipalId string `json:"principalId"`
PrincipalType armauthorization.PrincipalType `json:"principalType"`
RoleName string `json:"roleName"`
RoleDefinitionID string `json:"roleDefinitionId"`
Scope string `json:"scope"`
}
func GetRoleAssignments ¶
type IamClient ¶ added in v0.3.0
type IamClient struct {
// contains filtered or unexported fields
}
func NewIamClient ¶ added in v0.3.0
func (*IamClient) GetPrincipalIdByName ¶ added in v0.3.0
func (c *IamClient) GetPrincipalIdByName(principalType armauthorization.PrincipalType, name string) string
func (*IamClient) GetPrincipalNameById ¶ added in v0.3.0
func (c *IamClient) GetPrincipalNameById(principalType armauthorization.PrincipalType, id string) string
Click to show internal directories.
Click to hide internal directories.