helper

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SPNameArgDoc is the documentation for accepting a service principal name as an
	// argument.
	SPNameArgDoc = `` /* 454-byte string literal not displayed */

)

Variables

View Source
var (
	// SPResourceName is a regex that matches a service principal resource name
	SPResourceName = regexp.MustCompile(`^iam/(organization|project)/.+/service-principal/.+$`)
)

Functions

func GetSPs

GetSPs retrieves the service principals in the organization or project. If project is unset or set to "-", the organization service principals will be retrieved.

func PredictSPResourceName

func PredictSPResourceName(ctx *cmd.Context, c *cmd.Command, client service_principals_service.ClientService) complete.PredictFunc

PredictSPResourceName is an argument prediction function that predicts a service-principal resource name.

func PredictSPResourceNameSuffix

func PredictSPResourceNameSuffix(ctx *cmd.Context, c *cmd.Command, client service_principals_service.ClientService) complete.PredictFunc

PredictSPResourceNameSuffix is an argument prediction function that predicts a service-principal resource name suffix.

func ResourceName

func ResourceName(spName, orgID, projectID string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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