gcp

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeAuto   = "auto"
	ModeManual = "manual"
)

Variables

View Source
var (
	// CreateWifConfigOpts captures the options that affect creation of the workload identity configuration
	CreateWifConfigOpts = options{
		Mode:       ModeAuto,
		Name:       "",
		Project:    "",
		RolePrefix: "",
		TargetDir:  "",
	}
)
View Source
var (
	// DeleteWifConfigOpts captures the options that affect creation of the workload identity configuration
	DeleteWifConfigOpts = options{
		Mode:      ModeAuto,
		TargetDir: "",
	}
)
View Source
var GetWorkloadIdentityConfigurationOpts struct {
	// contains filtered or unexported fields
}
View Source
var ListWorkloadIdentityConfigurationOpts struct {
	// contains filtered or unexported fields
}
View Source
var (
	UpdateWifConfigOpts = options{
		Mode:      ModeAuto,
		TargetDir: "",
	}
)

Functions

func NewCreateCmd

func NewCreateCmd() *cobra.Command

NewCreateCmd implements the "create" subcommand

func NewCreateWorkloadIdentityConfiguration

func NewCreateWorkloadIdentityConfiguration() *cobra.Command

NewCreateWorkloadIdentityConfiguration provides the "gcp create wif-config" subcommand

func NewDeleteCmd

func NewDeleteCmd() *cobra.Command

NewDeleteCmd implements the "delete" subcommand

func NewDeleteWorkloadIdentityConfiguration

func NewDeleteWorkloadIdentityConfiguration() *cobra.Command

NewDeleteWorkloadIdentityConfiguration provides the "gcp delete wif-config" subcommand

func NewDescribeCmd

func NewDescribeCmd() *cobra.Command

NewDescribeCmd implements the "describe" subcommand

func NewDescribeWorkloadIdentityConfiguration

func NewDescribeWorkloadIdentityConfiguration() *cobra.Command

NewDescribeWorkloadIdentityConfiguration provides the "gcp describe wif-config" subcommand

func NewGcpCmd

func NewGcpCmd() *cobra.Command

NewGcpCmd implements the "gcp" subcommand for the credentials provisioning

func NewGetCmd

func NewGetCmd() *cobra.Command

NewGetCmd implements the "get" subcommand

func NewGetWorkloadIdentityConfiguration

func NewGetWorkloadIdentityConfiguration() *cobra.Command

func NewListCmd

func NewListCmd() *cobra.Command

NewListCmd implements the "list" subcommand

func NewListWorkloadIdentityConfiguration

func NewListWorkloadIdentityConfiguration() *cobra.Command

NewListWorkloadIdentityConfiguration provides the "gcp list wif-config" subcommand

func NewUpdateCmd

func NewUpdateCmd() *cobra.Command

NewUpdateCmd implements the "update" subcommand

func NewUpdateWorkloadIdentityConfiguration

func NewUpdateWorkloadIdentityConfiguration() *cobra.Command

NewUpdateWorkloadIdentityConfiguration provides the "gcp update wif-config" subcommand

Types

type GcpClientWifConfigShim added in v0.1.76

type GcpClientWifConfigShim interface {
	CreateServiceAccounts(ctx context.Context, log *log.Logger) error
	CreateWorkloadIdentityPool(ctx context.Context, log *log.Logger) error
	CreateWorkloadIdentityProvider(ctx context.Context, log *log.Logger) error
	GrantSupportAccess(ctx context.Context, log *log.Logger) error
}

func NewGcpClientWifConfigShim added in v0.1.76

func NewGcpClientWifConfigShim(spec GcpClientWifConfigShimSpec) GcpClientWifConfigShim

type GcpClientWifConfigShimSpec added in v0.1.76

type GcpClientWifConfigShimSpec struct {
	WifConfig *cmv1.WifConfig
	GcpClient gcp.GcpClient
}

Jump to

Keyboard shortcuts

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