cmdutils

package module
v0.0.0-...-3298871 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 7 Imported by: 0

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 Options

type Options struct {
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

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