Documentation
¶
Overview ¶
Package azure contains the Azure API calls
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session holds the active session login credentials and related settings.
func NewSession ¶
NewSession returns default credentials using the information from the OS environment. TODO: extract the users principal id somehow. Current solution is to extract it with: `az ad signed-in-user show | jq .id`
func (*Session) ActiveRoleAssignment ¶
func (s *Session) ActiveRoleAssignment(subscriptionName, roleDisplayName, justifiction string, duration time.Duration) error
ActiveRoleAssignment will schedule a RoleAssignment for the given roleDisplayName scoped to the subscription.
func (*Session) RolesForSubscription ¶
RolesForSubscription lists the available roles that have RoleEligibilitySchedules for the given subscription name.
func (*Session) Subscriptions ¶
Subscription returns all enabled subscriptions.
Click to show internal directories.
Click to hide internal directories.