istio: istio.io/istio/security/pkg/credential Index | Files

package credential

import "istio.io/istio/security/pkg/credential"

Index

Package Files

token.go

type GcpTokenFetcher Uses

type GcpTokenFetcher struct {
    // aud is the unique URI agreed upon by both the instance and the system verifying the instance's identity.
    // For more info: https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    Aud string
}

GcpTokenFetcher implements the token fetcher in GCP.

func (*GcpTokenFetcher) FetchServiceAccount Uses

func (fetcher *GcpTokenFetcher) FetchServiceAccount() (string, error)

FetchServiceAccount fetches the GCE VM identity jwt token from its metadata server. Note: this function only works in a GCE VM environment.

func (*GcpTokenFetcher) FetchToken Uses

func (fetcher *GcpTokenFetcher) FetchToken() (string, error)

FetchToken fetches the GCE VM identity jwt token from its metadata server. Note: this function only works in a GCE VM environment.

type TokenFetcher Uses

type TokenFetcher interface {
    FetchToken() (string, error)
    FetchServiceAccount() (string, error)
}

TokenFetcher defines the interface to fetch token.

Package credential imports 1 packages (graph) and is imported by 1 packages. Updated 2018-02-12. Refresh now. Tools for package owners.