istio: Index | Files | Directories

package google

import ""


Package Files


type Plugin Uses

type Plugin struct {
    // contains filtered or unexported fields

Plugin supports token exchange with Google OAuth 2.0 authorization server.

func CreateTokenManagerPlugin Uses

func CreateTokenManagerPlugin(trustDomain, gcpProjectNumber, gkeClusterURL string, enableCache bool) (*Plugin, error)

CreateTokenManagerPlugin creates a plugin that fetches token from a Google OAuth 2.0 authorization server.

func (*Plugin) ClearCache Uses

func (p *Plugin) ClearCache()

ClearCache is only used for testing purposes.

func (*Plugin) DumpPluginStatus Uses

func (p *Plugin) DumpPluginStatus() ([]byte, error)

DumpTokenStatus dumps all token status in JSON

func (*Plugin) ExchangeToken Uses

func (p *Plugin) ExchangeToken(parameters stsservice.StsRequestParameters) ([]byte, error)

GenerateToken takes STS request parameters and fetches token, returns StsResponseParameters in JSON.

func (*Plugin) SetEndpoints Uses

func (p *Plugin) SetEndpoints(fTokenEndpoint, aTokenEndpoint string)

SetEndpoints changes the endpoints for testing purposes only.



Package google imports 14 packages (graph) and is imported by 2 packages. Updated 2020-03-25. Refresh now. Tools for package owners.