Documentation ¶
Index ¶
- func AuthorizeGCE(ctx context.Context, i *AuthorizeGCEInput) error
- func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)
- type AuthorizeGCEInput
- type CLIHandler
- type GcpAuthBackend
- func (b *GcpAuthBackend) CRMClient(ctx context.Context, s logical.Storage) (*cloudresourcemanager.Service, error)
- func (b *GcpAuthBackend) ClearCaches()
- func (b *GcpAuthBackend) ComputeClient(ctx context.Context, s logical.Storage) (*compute.Service, error)
- func (b *GcpAuthBackend) GetExternalAccountConfig(c *gcpConfig, ts *PluginIdentityTokenSupplier) *gcputil.ExternalAccountConfig
- func (b *GcpAuthBackend) IAMClient(ctx context.Context, s logical.Storage) (*iam.Service, error)
- type PluginIdentityTokenSupplier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeGCE ¶
func AuthorizeGCE(ctx context.Context, i *AuthorizeGCEInput) error
Types ¶
type AuthorizeGCEInput ¶
type AuthorizeGCEInput struct {
// contains filtered or unexported fields
}
type CLIHandler ¶
type CLIHandler struct{}
func (*CLIHandler) Help ¶
func (h *CLIHandler) Help() string
type GcpAuthBackend ¶
func Backend ¶
func Backend() *GcpAuthBackend
func (*GcpAuthBackend) CRMClient ¶
func (b *GcpAuthBackend) CRMClient(ctx context.Context, s logical.Storage) (*cloudresourcemanager.Service, error)
CRMClient returns a new Cloud Resource Manager client. The client is cached.
func (*GcpAuthBackend) ClearCaches ¶
func (b *GcpAuthBackend) ClearCaches()
ClearCaches deletes all cached clients and credentials.
func (*GcpAuthBackend) ComputeClient ¶
func (b *GcpAuthBackend) ComputeClient(ctx context.Context, s logical.Storage) (*compute.Service, error)
ComputeClient returns a new Compute client. The client is cached.
func (*GcpAuthBackend) GetExternalAccountConfig ¶ added in v0.18.0
func (b *GcpAuthBackend) GetExternalAccountConfig(c *gcpConfig, ts *PluginIdentityTokenSupplier) *gcputil.ExternalAccountConfig
func (*GcpAuthBackend) IAMClient ¶
IAMClient returns a new IAM client. This client talks to the IAM endpoint, for all things that are not signing JWTs. The SignJWT method in the IAM client has been deprecated, but other methods are still valid and supported.
See: https://pkg.go.dev/google.golang.org/api@v0.45.0/iam/v1 and: https://cloud.google.com/iam/docs/migrating-to-credentials-api#iam-sign-jwt-go
The client is cached.
type PluginIdentityTokenSupplier ¶ added in v0.18.0
type PluginIdentityTokenSupplier struct {
// contains filtered or unexported fields
}
func (*PluginIdentityTokenSupplier) SubjectToken ¶ added in v0.18.0
func (p *PluginIdentityTokenSupplier) SubjectToken(ctx context.Context, opts externalaccount.SupplierOptions) (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.