grpc: google.golang.org/grpc/credentials/xds Index | Files

package xds

import "google.golang.org/grpc/credentials/xds"

Package xds provides a transport credentials implementation where the security configuration is pushed by a management server using xDS APIs.

Experimental

Notice: All APIs in this package are EXPERIMENTAL and may be removed in a later release.

Index

Package Files

xds.go

func NewClientCredentials Uses

func NewClientCredentials(opts ClientOptions) (credentials.TransportCredentials, error)

NewClientCredentials returns a new client-side transport credentials implementation which uses xDS APIs to fetch its security configuration.

func NewServerCredentials Uses

func NewServerCredentials(opts ServerOptions) (credentials.TransportCredentials, error)

NewServerCredentials returns a new server-side transport credentials implementation which uses xDS APIs to fetch its security configuration.

type ClientOptions Uses

type ClientOptions struct {
    // FallbackCreds specifies the fallback credentials to be used when either
    // the `xds` scheme is not used in the user's dial target or when the
    // management server does not return any security configuration. Attempts to
    // create client credentials without fallback credentials will fail.
    FallbackCreds credentials.TransportCredentials
}

ClientOptions contains parameters to configure a new client-side xDS credentials implementation.

type ServerOptions Uses

type ServerOptions struct {
    // FallbackCreds specifies the fallback credentials to be used when the
    // management server does not return any security configuration. Attempts to
    // create server credentials without fallback credentials will fail.
    FallbackCreds credentials.TransportCredentials
}

ServerOptions contains parameters to configure a new server-side xDS credentials implementation.

Package xds imports 10 packages (graph). Updated 2020-12-17. Refresh now. Tools for package owners.