vault-plugin-auth-gcp: Index | Files | Directories

package gcpauth

import ""


Package Files

aliasing.go authorizer_client_gcp.go authorizer_client_stubbed.go authorizer_gce.go backend.go cli.go gcp_config.go gcp_role.go helpers.go login_util.go path_config.go path_login.go path_role.go

func AuthorizeGCE Uses

func AuthorizeGCE(ctx context.Context, i *AuthorizeGCEInput) error

func Factory Uses

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

Factory returns a new backend as logical.Backend.

func ServiceAccountLoginJwt Uses

func ServiceAccountLoginJwt(
    iamClient *iam.Service, exp time.Time, aud, project, serviceAccount string) (*iam.SignJwtResponse, error)

type AuthorizeGCEInput Uses

type AuthorizeGCEInput struct {
    // contains filtered or unexported fields

type CLIHandler Uses

type CLIHandler struct{}

func (*CLIHandler) Auth Uses

func (h *CLIHandler) Auth(c *api.Client, m map[string]string) (*api.Secret, error)

func (*CLIHandler) Help Uses

func (h *CLIHandler) Help() string

type GcpAuthBackend Uses

type GcpAuthBackend struct {
    // contains filtered or unexported fields

func Backend Uses

func Backend() *GcpAuthBackend

func (*GcpAuthBackend) CRMClient Uses

func (b *GcpAuthBackend) CRMClient(s logical.Storage) (*cloudresourcemanager.Service, error)

CRMClient returns a new Cloud Resource Manager client. The client is cached.

func (*GcpAuthBackend) ClearCaches Uses

func (b *GcpAuthBackend) ClearCaches()

ClearCaches deletes all cached clients and credentials.

func (*GcpAuthBackend) ComputeClient Uses

func (b *GcpAuthBackend) ComputeClient(s logical.Storage) (*compute.Service, error)

ComputeClient returns a new Compute client. The client is cached.

func (*GcpAuthBackend) IAMClient Uses

func (b *GcpAuthBackend) IAMClient(s logical.Storage) (*iam.Service, error)

IAMClient returns a new IAM client. The client is cached.



Package gcpauth imports 32 packages (graph) and is imported by 11 packages. Updated 2020-08-03. Refresh now. Tools for package owners.