gcp

package
v0.0.0-...-2d29ae5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package gcp abstracts interacting with certain aspects of Google Cloud Platform, such as creating service account keys and access tokens.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountWarehouse

type AccountWarehouse struct {
	// contains filtered or unexported fields
}

AccountWarehouse is used to create Google Cloud Platform Service Account keys and access tokens associated with a specific identity.

func NewAccountWarehouse

func NewAccountWarehouse(client *http.Client, opts *AccountWarehouseOptions) (*AccountWarehouse, error)

NewAccountWarehouse creates a new AccountWarehouse using the provided client and options.

func (*AccountWarehouse) GetAccessToken

func (wh *AccountWarehouse) GetAccessToken(ctx context.Context, id string) (string, error)

GetAccessToken returns an access token for the service account uniquely associated with id.

func (*AccountWarehouse) GetAccountKey

func (wh *AccountWarehouse) GetAccountKey(ctx context.Context, id string) ([]byte, error)

GetAccountKey returns a service account key associated with id.

type AccountWarehouseOptions

type AccountWarehouseOptions struct {
	Project     string
	DefaultRole string
	Scopes      []string
}

AccountWarehouseOptions is used with NewWarehouse to configure a new warehouse.

Directories

Path Synopsis
internal
appengine
Package appengine provides common functionality for applications running on Google Cloud Platform's appengine.
Package appengine provides common functionality for applications running on Google Cloud Platform's appengine.
The key-vendor daemon returns Google Cloud Platform service account keys for external GA4GH identities.
The key-vendor daemon returns Google Cloud Platform service account keys for external GA4GH identities.
This package provides a single-host reverse proxy that rewrites bearer tokens in Authorization headers to be Google Cloud Platform access tokens.
This package provides a single-host reverse proxy that rewrites bearer tokens in Authorization headers to be Google Cloud Platform access tokens.

Jump to

Keyboard shortcuts

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