azuread

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ClientID         string
	DisplayName      string
	ObjectID         string
	TenantID         string
	RoleAssignment   RoleAssignment
	ServicePrincipal ServicePrincipal
}

App struct defines an Azure AD Application and its permissions

func (*App) CreateAzureADApp

func (aadApp *App) CreateAzureADApp() (graphrbac.Application, error)

CreateAzureADApp creates an Azure AD Application

func (*App) CreateServicePrincipal

func (aadApp *App) CreateServicePrincipal() (graphrbac.ServicePrincipal, error)

CreateServicePrincipal generates a service princiapl for an AzureIdentityTerminator resource

func (*App) DeleteAzureApp

func (aadApp *App) DeleteAzureApp() (autorest.Response, error)

DeleteAzureApp deletes the requested Azure AD application

func (*App) DeleteRoleAssignment

func (aadApp *App) DeleteRoleAssignment() (authorization.RoleAssignment, error)

type RoleAssignment

type RoleAssignment struct {
	Name              string
	NodeResourceGroup string
	ObjectID          string
}

type ServicePrincipal

type ServicePrincipal struct {
	ClientSecret           string
	ClientSecretExpiration date.Time
	Duration               string
	ObjectID               string
	Tags                   []string
}

Jump to

Keyboard shortcuts

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