options

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ServiceAccountName flag sets the service account name
	ServiceAccountName = option{
		Flag:        "service-account-name",
		Description: "Name of the service account",
	}
	// ServiceAccountNamespace flag sets the service account namespace
	ServiceAccountNamespace = option{
		Flag:        "service-account-namespace",
		Description: "Namespace of the service account",
	}
	// ServiceAccountIssuerURL flag sets the service account issuer URL
	ServiceAccountIssuerURL = option{
		Flag:        "service-account-issuer-url",
		Description: "URL of the issuer",
	}
	// ServiceAccountTokenExpiration flag sets the service account token expiration
	ServiceAccountTokenExpiration = option{
		Flag:        "service-account-token-expiration",
		Description: "Expiration time of the service account token. Must be between 1 hour and 24 hours",
	}
	// AADApplicationName flag sets the AAD application name
	AADApplicationName = option{
		Flag:        "aad-application-name",
		Description: "Name of the AAD application, If not specified, the namespace, the name of the service account and the hash of the issuer URL will be used",
	}
	// AADApplicationClientID flag sets the AAD application client ID
	AADApplicationClientID = option{
		Flag:        "aad-application-client-id",
		Description: "Client ID of the AAD application. If not specified, it will be fetched using the AAD application name",
	}
	// AADApplicationObjectID flag sets the AAD application object ID
	AADApplicationObjectID = option{
		Flag:        "aad-application-object-id",
		Description: "Object ID of the AAD application. If not specified, it will be fetched using the AAD application name",
	}
	// ServicePrincipalName flag sets the service principal name
	ServicePrincipalName = option{
		Flag:        "service-principal-name",
		Description: "Name of the service principal that backs the AAD application. If this is not specified, the name of the AAD application will be used",
	}
	// ServicePrincipalObjectID flag sets the service principal object ID
	ServicePrincipalObjectID = option{
		Flag:        "service-principal-object-id",
		Description: "Object ID of the service principal that backs the AAD application. If not specified, it will be fetched using the service principal name",
	}
	// AzureScope flag sets the Azure scope
	AzureScope = option{
		Flag:        "azure-scope",
		Description: "Scope at which the role assignment or definition applies to",
	}
	// AzureRole flag sets the Azure role
	AzureRole = option{
		Flag:        "azure-role",
		Description: "Role of the AAD application (see all available roles at https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles)",
	}
	// RoleAssignmentID flag sets the Azure role assignment ID
	RoleAssignmentID = option{
		Flag:        "role-assignment-id",
		Description: "Azure role assignment ID",
	}
)

Functions

func FlagIsRequiredError

func FlagIsRequiredError(name string) error

FlagIsRequiredError is returned when a required flag is not set

func OneOfFlagsIsRequiredError

func OneOfFlagsIsRequiredError(names ...string) error

OneOfFlagsIsRequiredError is returned when at least one of the flags is required

Types

This section is empty.

Jump to

Keyboard shortcuts

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