github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/api/uaa/config.go (about) 1 package uaa 2 3 import "time" 4 5 //go:generate counterfeiter . Config 6 7 // Config allows the Client to be configured 8 type Config interface { 9 // BinaryName is the name of the application/process using the client. 10 BinaryName() string 11 12 // BinaryVersion is the version of the application/process using the client. 13 BinaryVersion() string 14 15 // DialTimeout is the DNS lookup timeout for the client. If not set, it is 16 // infinite. 17 DialTimeout() time.Duration 18 19 // UAAOAuthClient is the UAA client ID the client will use. 20 UAAOAuthClient() string 21 22 // UAAOAuthClientSecret is the UAA client secret the client will use. 23 UAAOAuthClientSecret() string 24 25 // UAAGrantType returns the grant type of the supplied UAA credentials. 26 UAAGrantType() string 27 28 // SetUAAEndpoint sets the UAA endpoint that is obtained from hitting 29 // <AuthorizationEndpoint>/login. 30 SetUAAEndpoint(uaaEndpoint string) 31 32 // SkipSSLValidation controls whether a client verifies the server's 33 // certificate chain and host name. If SkipSSLValidation is true, TLS accepts 34 // any certificate presented by the server and any host name in that 35 // certificate for *all* client requests going forward. 36 // 37 // In this mode, TLS is susceptible to man-in-the-middle attacks. This should 38 // be used only for testing. 39 SkipSSLValidation() bool 40 }