options

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcProxyAgentOptions

type GrpcProxyAgentOptions struct {
	// Configuration for authenticating with the proxy-server
	AgentCert string
	AgentKey  string
	CaCert    string

	// Configuration for connecting to the proxy-server
	ProxyServerHost string
	ProxyServerPort int
	AlpnProtos      []string

	// Ports for the health and admin server
	HealthServerPort int
	AdminServerPort  int
	// Enables pprof at host:adminPort/debug/pprof.
	EnableProfiling bool
	// If EnableProfiling is true, this enables the lock contention
	// profiling at host:adminPort/debug/pprof/block.
	EnableContentionProfiling bool

	AgentID          string
	AgentIdentifiers string
	SyncInterval     time.Duration
	ProbeInterval    time.Duration
	SyncIntervalCap  time.Duration

	// file contains service account authorization token for enabling proxy-server token based authorization
	ServiceAccountTokenPath string
}

func NewGrpcProxyAgentOptions

func NewGrpcProxyAgentOptions() *GrpcProxyAgentOptions

func (*GrpcProxyAgentOptions) ClientSetConfig

func (o *GrpcProxyAgentOptions) ClientSetConfig(dialOptions ...grpc.DialOption) *agent.ClientSetConfig

func (*GrpcProxyAgentOptions) Flags

func (o *GrpcProxyAgentOptions) Flags() *pflag.FlagSet

func (*GrpcProxyAgentOptions) Print

func (o *GrpcProxyAgentOptions) Print()

func (*GrpcProxyAgentOptions) Validate

func (o *GrpcProxyAgentOptions) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL