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 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 SetUpCmd
- type SubLabel
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 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
Types ¶
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)
Click to show internal directories.
Click to hide internal directories.