providers

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AzAcrExists

func AzAcrExists(acrName string) bool

func AzAksExists

func AzAksExists(aksName string, resourceGroup string) bool

func AzAppExists

func AzAppExists(appName string) bool

func CheckAzCliInstalled

func CheckAzCliInstalled()

func GetAzCliVersion added in v0.0.23

func GetAzCliVersion() string

func HasGhCli

func HasGhCli() bool

func InitiateAzureOIDCFlow

func InitiateAzureOIDCFlow(ctx context.Context, sc *SetUpCmd, s spinner.Spinner) error

func IsLoggedInToAz

func IsLoggedInToAz() bool

func IsLoggedInToGh

func IsLoggedInToGh() bool

func IsSubscriptionIdValid

func IsSubscriptionIdValid(subscriptionId string) error

func LogInToAz

func LogInToAz() error

func LogInToGh

func LogInToGh() error

Types

type AzClient added in v0.0.34

type AzClient struct {
	AzTenantClient azTenantClient
}

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 (sc *SetUpCmd) CreateServicePrincipal() error

func (*SetUpCmd) ServicePrincipalExists

func (sc *SetUpCmd) ServicePrincipalExists() bool

func (*SetUpCmd) ValidateSetUpConfig

func (sc *SetUpCmd) ValidateSetUpConfig() error

type SubLabel added in v0.0.36

type SubLabel struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

func GetAzSubscriptionLabels added in v0.0.36

func GetAzSubscriptionLabels() ([]SubLabel, error)

func GetCurrentAzSubscriptionLabel added in v0.0.36

func GetCurrentAzSubscriptionLabel() (SubLabel, error)

Directories

Path Synopsis
Package mock_providers is a generated GoMock package.
Package mock_providers is a generated GoMock package.

Jump to

Keyboard shortcuts

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