Documentation ¶
Overview ¶
Package xdserr to load test configuration updates
Index ¶
- func DumpConfig(ctx context.Context, adminURL string) (*adminv3.RoutesConfigDump, error)
- func NewGRPCClientConn(ctx context.Context, opts *Options, other ...grpc.DialOption) (*grpc.ClientConn, error)
- func RunEcho(ctx context.Context) (string, error)
- func WaitForHealthy(ctx context.Context, client *http.Client, routes []*config.Route) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpConfig ¶
DumpConfig acquires current config from admin endpoint
func NewGRPCClientConn ¶
func NewGRPCClientConn(ctx context.Context, opts *Options, other ...grpc.DialOption) (*grpc.ClientConn, error)
NewGRPCClientConn returns a new gRPC pomerium service client connection.
Types ¶
type Options ¶
type Options struct { // Address is the location of the service. e.g. "service.corp.example:8443" Address *url.URL // OverrideCertificateName overrides the server name used to verify the hostname on the // returned certificates from the server. gRPC internals also use it to override the virtual // hosting name if it is set. OverrideCertificateName string // CA specifies the base64 encoded TLS certificate authority to use. CA string // CAFile specifies the TLS certificate authority file to use. CAFile string // RequestTimeout specifies the timeout for individual RPC calls RequestTimeout time.Duration // ClientDNSRoundRobin enables or disables DNS resolver based load balancing ClientDNSRoundRobin bool // WithInsecure disables transport security for this ClientConn. // Note that transport security is required unless WithInsecure is set. WithInsecure bool // InsecureSkipVerify skips destination hostname and ca check InsecureSkipVerify bool // ServiceName specifies the service name for telemetry exposition ServiceName string // SignedJWTKey is the JWT key to use for signing a JWT attached to metadata. SignedJWTKey []byte }
Options contains options for connecting to a pomerium rpc service.
Click to show internal directories.
Click to hide internal directories.