Documentation
¶
Index ¶
- Constants
- Variables
- func NewCreateCmd() *cobra.Command
- func NewCreateWorkloadIdentityConfiguration() *cobra.Command
- func NewDeleteCmd() *cobra.Command
- func NewDeleteWorkloadIdentityConfiguration() *cobra.Command
- func NewDescribeCmd() *cobra.Command
- func NewDescribeWorkloadIdentityConfiguration() *cobra.Command
- func NewGcpCmd() *cobra.Command
- func NewGetCmd() *cobra.Command
- func NewGetWorkloadIdentityConfiguration() *cobra.Command
- func NewListCmd() *cobra.Command
- func NewListWorkloadIdentityConfiguration() *cobra.Command
- func NewUpdateCmd() *cobra.Command
- func NewUpdateWorkloadIdentityConfiguration() *cobra.Command
- func NewVerifyCmd() *cobra.Command
- func NewVerifyWorkloadIdentityConfiguration() *cobra.Command
- type GcpClientWifConfigShim
- type GcpClientWifConfigShimSpec
Constants ¶
const ( ModeAuto = "auto" ModeManual = "manual" )
Variables ¶
var ( // CreateWifConfigOpts captures the options that affect creation of the workload identity configuration CreateWifConfigOpts = options{ Mode: ModeAuto, Name: "", Project: "", RolePrefix: "", TargetDir: "", OpenshiftVersion: "", } )
var ( // DeleteWifConfigOpts captures the options that affect creation of the workload identity configuration DeleteWifConfigOpts = options{ Mode: ModeAuto, TargetDir: "", } )
var GetWorkloadIdentityConfigurationOpts struct { // contains filtered or unexported fields }
var ListWorkloadIdentityConfigurationOpts struct { // contains filtered or unexported fields }
var Modes = []string{ModeAuto, ModeManual}
var ( UpdateWifConfigOpts = options{ Mode: ModeAuto, TargetDir: "", OpenshiftVersion: "", } )
Functions ¶
func NewCreateCmd ¶
NewCreateCmd implements the "create" subcommand
func NewCreateWorkloadIdentityConfiguration ¶
NewCreateWorkloadIdentityConfiguration provides the "gcp create wif-config" subcommand
func NewDeleteCmd ¶
NewDeleteCmd implements the "delete" subcommand
func NewDeleteWorkloadIdentityConfiguration ¶
NewDeleteWorkloadIdentityConfiguration provides the "gcp delete wif-config" subcommand
func NewDescribeCmd ¶
NewDescribeCmd implements the "describe" subcommand
func NewDescribeWorkloadIdentityConfiguration ¶
NewDescribeWorkloadIdentityConfiguration provides the "gcp describe wif-config" subcommand
func NewListWorkloadIdentityConfiguration ¶
NewListWorkloadIdentityConfiguration provides the "gcp list wif-config" subcommand
func NewUpdateCmd ¶
NewUpdateCmd implements the "update" subcommand
func NewUpdateWorkloadIdentityConfiguration ¶
NewUpdateWorkloadIdentityConfiguration provides the "gcp update wif-config" subcommand
func NewVerifyCmd ¶ added in v1.0.3
NewVerifyCmd implements the "verify" subcommand
func NewVerifyWorkloadIdentityConfiguration ¶ added in v1.0.3
NewVerifyWorkloadIdentityConfiguration provides the "gcp verify 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 }
All operations that modify cloud resources should be logged to the user. For this reason, all methods of this interface take a logger as a parameter.
func NewGcpClientWifConfigShim ¶ added in v0.1.76
func NewGcpClientWifConfigShim(spec GcpClientWifConfigShimSpec) GcpClientWifConfigShim