vault-plugin-auth-gcp: github.com/hashicorp/vault-plugin-auth-gcp/plugin Index | Files | Directories

package gcpauth

import "github.com/hashicorp/vault-plugin-auth-gcp/plugin"

Index

Package Files

authorizer_client_gcp.go authorizer_client_stubbed.go authorizer_gce.go backend.go cli.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 {
    *framework.Backend
    // 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.

Directories

PathSynopsis
cache

Package gcpauth imports 29 packages (graph) and is imported by 7 packages. Updated 2019-08-14. Refresh now. Tools for package owners.