iam_credentials

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Domain = "iamcredentials.googleapis.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(options ...iam_credentials_config.Option) *Client

func (*Client) SignBlob

func (c *Client) SignBlob(ctx context.Context, serviceAccountEmail string, payload []byte, options ...fetch_config.Option) (*sign_blob_response.Response, error)

SignBlob signs the given payload bytes on behalf of the specified service account using the IAM Credentials API. The runtime identity must have the iam.serviceAccountTokenCreator role on the target service account (which may be itself).

func (*Client) SignJwt

func (c *Client) SignJwt(ctx context.Context, serviceAccountEmail string, payload string, options ...fetch_config.Option) (*sign_jwt_response.Response, error)

SignJwt signs the given JWT claims payload (a serialized JSON Claims Set) on behalf of the specified service account using the IAM Credentials API. The runtime identity must have the iam.serviceAccountTokenCreator role on the target service account (which may be itself).

Directories

Path Synopsis
types

Jump to

Keyboard shortcuts

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