iap

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator jwt generator

func NewGenerator

func NewGenerator(credentialFile string, iapClientID string) (*Generator, error)

NewGenerator new renewer

func (*Generator) Enabled

func (g *Generator) Enabled() bool

Enabled privateKeyFile is exists

func (*Generator) Get

func (g *Generator) Get(ctx context.Context) (string, error)

Get access token

func (*Generator) GetToken

func (g *Generator) GetToken(ctx context.Context) (string, error)

GetToken with service account

func (*Generator) Run

func (g *Generator) Run(ctx context.Context)

Run refresh token regularly

Jump to

Keyboard shortcuts

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