Documentation ¶
Index ¶
- Constants
- func GetGraphURI(env string) (string, error)
- type AppClient
- func (c *AppClient) AddApplicationPassword(ctx context.Context, applicationObjectID string, displayName string, ...) (PasswordCredentialResult, error)
- func (c AppClient) AddGroupMember(ctx context.Context, groupObjectID string, memberObjectID string) error
- func (c *AppClient) AddToUserAgent(extension string) error
- func (c *AppClient) CreateApplication(ctx context.Context, displayName string) (ApplicationResult, error)
- func (c *AppClient) CreateServicePrincipal(ctx context.Context, appID string, startDate time.Time, endDate time.Time) (string, string, error)
- func (c *AppClient) DeleteApplication(ctx context.Context, applicationObjectID string, permanentlyDelete bool) error
- func (c *AppClient) DeleteServicePrincipal(ctx context.Context, spObjectID string, permanentlyDelete bool) error
- func (c *AppClient) GetApplication(ctx context.Context, applicationObjectID string) (ApplicationResult, error)
- func (c AppClient) GetGroup(ctx context.Context, groupID string) (Group, error)
- func (c *AppClient) GetPreparer(prepareDecorators ...autorest.PrepareDecorator) autorest.Preparer
- func (c *AppClient) ListApplications(ctx context.Context, filter string) ([]ApplicationResult, error)
- func (c AppClient) ListGroups(ctx context.Context, filter string) ([]Group, error)
- func (c *AppClient) RemoveApplicationPassword(ctx context.Context, applicationObjectID string, keyID string) error
- func (c AppClient) RemoveGroupMember(ctx context.Context, groupObjectID, memberObjectID string) error
- func (c *AppClient) SendRequest(ctx context.Context, preparer autorest.Preparer, ...) error
- type ApplicationResult
- type ApplicationsClient
- type AzureProvider
- type Group
- type GroupsClient
- type PasswordCredential
- type PasswordCredentialResult
- type PasswordGenerator
- type Passwords
- type ServicePrincipal
- type ServicePrincipalClient
Constants ¶
View Source
const (
PasswordLength = 36
)
Variables ¶
This section is empty.
Functions ¶
func GetGraphURI ¶ added in v0.11.3
Types ¶
type AppClient ¶
type AppClient struct {
// contains filtered or unexported fields
}
func (*AppClient) AddApplicationPassword ¶
func (AppClient) AddGroupMember ¶
func (*AppClient) AddToUserAgent ¶
func (*AppClient) CreateApplication ¶
func (c *AppClient) CreateApplication(ctx context.Context, displayName string) (ApplicationResult, error)
CreateApplication create a new Azure application object.
func (*AppClient) CreateServicePrincipal ¶
func (*AppClient) DeleteApplication ¶
func (c *AppClient) DeleteApplication(ctx context.Context, applicationObjectID string, permanentlyDelete bool) error
DeleteApplication deletes an Azure application object. This will in turn remove the service principal (but not the role assignments).
func (*AppClient) DeleteServicePrincipal ¶ added in v0.14.0
func (*AppClient) GetApplication ¶
func (*AppClient) GetPreparer ¶
func (c *AppClient) GetPreparer(prepareDecorators ...autorest.PrepareDecorator) autorest.Preparer
func (*AppClient) ListApplications ¶
func (AppClient) ListGroups ¶
func (*AppClient) RemoveApplicationPassword ¶
func (AppClient) RemoveGroupMember ¶
func (*AppClient) SendRequest ¶
type ApplicationResult ¶
type ApplicationResult struct { autorest.Response `json:"-"` AppID *string `json:"appId,omitempty"` ID *string `json:"id,omitempty"` PasswordCredentials []*PasswordCredential `json:"passwordCredentials,omitempty"` }
type ApplicationsClient ¶
type ApplicationsClient interface { GetApplication(ctx context.Context, applicationObjectID string) (ApplicationResult, error) CreateApplication(ctx context.Context, displayName string) (ApplicationResult, error) DeleteApplication(ctx context.Context, applicationObjectID string, permanentlyDelete bool) error ListApplications(ctx context.Context, filter string) ([]ApplicationResult, error) AddApplicationPassword(ctx context.Context, applicationObjectID string, displayName string, endDateTime time.Time) (PasswordCredentialResult, error) RemoveApplicationPassword(ctx context.Context, applicationObjectID string, keyID string) error }
type AzureProvider ¶
type AzureProvider interface { ApplicationsClient GroupsClient ServicePrincipalClient CreateRoleAssignment( ctx context.Context, scope string, roleAssignmentName string, parameters authorization.RoleAssignmentCreateParameters) (authorization.RoleAssignment, error) DeleteRoleAssignmentByID(ctx context.Context, roleID string) (authorization.RoleAssignment, error) ListRoleDefinitions(ctx context.Context, scope string, filter string) ([]authorization.RoleDefinition, error) GetRoleDefinitionByID(ctx context.Context, roleID string) (authorization.RoleDefinition, error) }
AzureProvider is an interface to access underlying Azure Client objects and supporting services. Where practical the original function signature is preserved. Client provides higher level operations atop AzureProvider.
type GroupsClient ¶
type GroupsClient interface { AddGroupMember(ctx context.Context, groupObjectID string, memberObjectID string) error RemoveGroupMember(ctx context.Context, groupObjectID, memberObjectID string) error GetGroup(ctx context.Context, objectID string) (result Group, err error) ListGroups(ctx context.Context, filter string) (result []Group, err error) }
type PasswordCredential ¶
type PasswordCredentialResult ¶
type PasswordCredentialResult struct { autorest.Response `json:"-"` PasswordCredential }
type PasswordGenerator ¶
type Passwords ¶
type Passwords struct { PolicyGenerator PasswordGenerator PolicyName string }
type ServicePrincipal ¶
type ServicePrincipalClient ¶
type ServicePrincipalClient interface { // CreateServicePrincipal in Azure. The password returned is the actual password that the appID was created with CreateServicePrincipal(ctx context.Context, appID string, startDate time.Time, endDate time.Time) (id string, password string, err error) DeleteServicePrincipal(ctx context.Context, spObjectID string, permanentlyDelete bool) error }
Click to show internal directories.
Click to hide internal directories.