iam

package
v0.0.0-...-7b4a977 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents an IAM client.

func NewClient

func NewClient() *Client

NewClient returns a new IAM client.

func (*Client) GetAccessToken

func (c *Client) GetAccessToken(serviceAccount string) (*Credentials, error)

func (*Client) GetIDToken

func (c *Client) GetIDToken(serviceAccount string, audience string) (*Credentials, error)

type Credentials

type Credentials struct {
	Token   string
	Expires time.Time
}

Credentials represent the security Credentials response.

Jump to

Keyboard shortcuts

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