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).
Click to show internal directories.
Click to hide internal directories.