istio: Index | Files | Directories

package tokenmanager

import ""


Package Files



const (
    // GoogleTokenExchange is the name of the google token exchange service.
    GoogleTokenExchange = "GoogleTokenExchange"

func CreateTokenManager Uses

func CreateTokenManager(tokenManagerType string, config Config) stsservice.TokenManager

CreateTokenManager creates a token manager with specified type and returns that token manager

type Config Uses

type Config struct {
    TrustDomain string

type GCPProjectInfo Uses

type GCPProjectInfo struct {
    Number string
    // contains filtered or unexported fields

GCPProjectInfo stores GCP project information, including project number, project ID, cluster location, cluster name

type Plugin Uses

type Plugin interface {
    ExchangeToken(parameters stsservice.StsRequestParameters) ([]byte, error)
    DumpPluginStatus() ([]byte, error)

Plugin provides common interfaces for specific token exchange services.

type TokenManager Uses

type TokenManager struct {
    // contains filtered or unexported fields

func (*TokenManager) DumpTokenStatus Uses

func (tm *TokenManager) DumpTokenStatus() ([]byte, error)

func (*TokenManager) GenerateToken Uses

func (tm *TokenManager) GenerateToken(parameters stsservice.StsRequestParameters) ([]byte, error)

func (*TokenManager) SetPlugin Uses

func (tm *TokenManager) SetPlugin(p Plugin)

SetPlugin sets token exchange plugin for testing purposes only.



Package tokenmanager imports 5 packages (graph) and is imported by 3 packages. Updated 2020-03-27. Refresh now. Tools for package owners.