workloadidentityproviders

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: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WIPNameArgDoc is the documentation for accepting a workload identity
	// provider name as an argument.
	WIPNameArgDoc = `` /* 197-byte string literal not displayed */

)

Variables

View Source
var (
	// WIPResourceName is a regex that matches a workload identity provider resource name
	WIPResourceName = regexp.MustCompile(`^iam/project/.+/service-principal/.+/workload-identity-provider/.+$`)
)

Functions

func NewCmdCreateAWS

func NewCmdCreateAWS(ctx *cmd.Context, runF func(*CreateAWSOpts) error) *cmd.Command

func NewCmdCreateCredFile

func NewCmdCreateCredFile(ctx *cmd.Context, runF func(*CreateCredFileOpts) error) *cmd.Command

func NewCmdCreateOIDC

func NewCmdCreateOIDC(ctx *cmd.Context, runF func(*CreateOIDCOpts) error) *cmd.Command

func NewCmdDelete

func NewCmdDelete(ctx *cmd.Context, runF func(*DeleteOpts) error) *cmd.Command

func NewCmdList

func NewCmdList(ctx *cmd.Context, runF func(*ListOpts) error) *cmd.Command

func NewCmdRead

func NewCmdRead(ctx *cmd.Context, runF func(*ReadOpts) error) *cmd.Command

func NewCmdWIPs

func NewCmdWIPs(ctx *cmd.Context) *cmd.Command

Types

type CreateAWSOpts

type CreateAWSOpts struct {
	Ctx     context.Context
	Profile *profile.Profile
	Output  *format.Outputter
	IO      iostreams.IOStreams

	Name              string
	SP                string
	AccountID         string
	ConditionalAccess string
	Description       string
	Client            service_principals_service.ClientService
}

type CreateCredFileOpts

type CreateCredFileOpts struct {
	IO iostreams.IOStreams

	WIP        string
	OutputFile string

	// Only one of these can be set
	AWS          bool
	Azure        bool
	GCP          bool
	SourceEnvVar string
	SourceURL    string
	SourceFile   string

	// AWS options
	IMDSv1 bool

	// Azure options
	AzureResource string
	AzureClientID string

	// JSON Options
	CredentialJSONPointer string

	// Headers to sent to SourceURL
	SourceURLHeaders map[string]string
}

func (*CreateCredFileOpts) Validate

func (c *CreateCredFileOpts) Validate() error

type CreateOIDCOpts

type CreateOIDCOpts struct {
	Ctx     context.Context
	Profile *profile.Profile
	Output  *format.Outputter
	IO      iostreams.IOStreams

	Name              string
	SP                string
	IssuerURI         string
	AllowedAudiences  []string
	ConditionalAccess string
	Description       string
	Client            service_principals_service.ClientService
}

type DeleteOpts

type DeleteOpts struct {
	Ctx     context.Context
	IO      iostreams.IOStreams
	Profile *profile.Profile

	Name   string
	Client service_principals_service.ClientService
}

type ListOpts

type ListOpts struct {
	Ctx     context.Context
	Profile *profile.Profile
	IO      iostreams.IOStreams
	Output  *format.Outputter

	SP     string
	Client service_principals_service.ClientService
}

type ReadOpts

type ReadOpts struct {
	Ctx     context.Context
	Profile *profile.Profile
	IO      iostreams.IOStreams
	Output  *format.Outputter

	WIP    string
	Client service_principals_service.ClientService
}

Jump to

Keyboard shortcuts

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