Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindOptions ¶
func BindOptions(opts *RawOptions, cmd *cobra.Command) error
func GetAzureTokenCredentials ¶
func GetAzureTokenCredentials() (azcore.TokenCredential, error)
GetAzureTokenCredentials returns an Azure TokenCredential. If running in GitHub Actions, it uses AzureCLICredential. Otherwise, it uses DefaultAzureCredential. This allows for the azure-cli to update the token expiry of the workload identity token used in the GitHub action as it currently does not refresh: https://github.com/Azure/azure-cli/issues/28708
func RolloutClouds ¶
func RolloutClouds() sets.Set[RolloutCloud]
Types ¶
type RawOptions ¶
type RawOptions struct {
Cloud string
}
RawOptions holds input values.
func DefaultOptions ¶
func DefaultOptions() *RawOptions
func (*RawOptions) Validate ¶
func (o *RawOptions) Validate() (*ValidatedOptions, error)
type RolloutCloud ¶
type RolloutCloud string
const ( RolloutCloudDev RolloutCloud = "dev" RolloutCloudPublic RolloutCloud = "public" RolloutCloudFairfax RolloutCloud = "ff" RolloutCloudMooncake RolloutCloud = "mc" )
type ValidatedOptions ¶
type ValidatedOptions struct {
// contains filtered or unexported fields
}
func (*ValidatedOptions) Complete ¶
func (o *ValidatedOptions) Complete() (*Options, error)
Click to show internal directories.
Click to hide internal directories.