Documentation
¶
Index ¶
- func AzAcrExists(acrName string) bool
- func AzAksExists(aksName string, resourceGroup string) bool
- func AzAppExists(appName string) bool
- func CheckAzCliInstalled()
- func GetAzCliVersion() string
- func GetCurrentAzSubscriptionId() []string
- func HasGhCli() bool
- func InitiateAzureOIDCFlow(ctx context.Context, sc *SetUpCmd, s spinner.Spinner) error
- func IsLoggedInToAz() bool
- func IsLoggedInToGh() bool
- func IsSubscriptionIdValid(subscriptionId string) error
- func LogInToAz() error
- func LogInToGh() error
- type AzClient
- type GraphClient
- type GraphServiceClient
- type RoleAssignClient
- type SetUpCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AzAcrExists ¶
func AzAksExists ¶
func AzAppExists ¶
func CheckAzCliInstalled ¶
func CheckAzCliInstalled()
func GetAzCliVersion ¶ added in v0.0.23
func GetAzCliVersion() string
func GetCurrentAzSubscriptionId ¶
func GetCurrentAzSubscriptionId() []string
func InitiateAzureOIDCFlow ¶
func IsLoggedInToAz ¶
func IsLoggedInToAz() bool
func IsLoggedInToGh ¶
func IsLoggedInToGh() bool
func IsSubscriptionIdValid ¶
Types ¶
type AzClient ¶ added in v0.0.34
type AzClient struct { AzTenantClient azTenantClient GraphClient GraphClient RoleAssignClient RoleAssignClient }
type GraphClient ¶ added in v0.0.34
type GraphServiceClient ¶ added in v0.0.34
type GraphServiceClient struct {
Client *msgraph.GraphServiceClient
}
GraphServiceClient implements the GraphClient interface.
func (*GraphServiceClient) GetApplicationObjectId ¶ added in v0.0.34
type RoleAssignClient ¶ added in v0.0.34
type RoleAssignClient interface {
CreateByID(ctx context.Context, roleAssignmentID string, parameters armauthorization.RoleAssignmentCreateParameters, options *armauthorization.RoleAssignmentsClientCreateByIDOptions) (armauthorization.RoleAssignmentsClientCreateByIDResponse, error)
}
type SetUpCmd ¶
type SetUpCmd struct { AppName string SubscriptionID string ResourceGroupName string Provider string Repo string AzClient AzClient // contains filtered or unexported fields }
func (*SetUpCmd) CreateServicePrincipal ¶
func (*SetUpCmd) ServicePrincipalExists ¶
func (*SetUpCmd) ValidateSetUpConfig ¶
Click to show internal directories.
Click to hide internal directories.