Documentation
¶
Index ¶
- func Bool(v bool) *bool
- func BoolValue(v *bool) bool
- func Int(v int) *int
- func Int64(v int64) *int64
- func Int64Value(v *int64) int64
- func IntValue(v *int) int
- func String(v string) *string
- func StringValue(v *string) string
- type Config
- func (c *Config) MergeIn(cfgs ...*Config)
- func (c *Config) WithApiContext(context string) *Config
- func (c *Config) WithApiHost(host string) *Config
- func (c *Config) WithApiPort(port int) *Config
- func (c *Config) WithApiScheme(scheme string) *Config
- func (c *Config) WithApiVersion(version string) *Config
- func (c *Config) WithCredentials(creds *credentials.Credentials) *Config
- func (c *Config) WithCustomCABundle(bundle *io.Reader) *Config
- func (c *Config) WithHTTPClient(client *http.Client) *Config
- func (c *Config) WithInsecure(insecure bool) *Config
- func (c *Config) WithSessionName(name string) *Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolValue ¶
BoolValue returns the value of the bool pointer passed in or false if the pointer is nil.
func Int64Value ¶
Int64Value returns the value of the int64 pointer passed in or 0 if the pointer is nil.
func StringValue ¶
StringValue returns the value of the string pointer passed in or "" if the pointer is nil.
Types ¶
type Config ¶
type Config struct { Credentials *credentials.Credentials // The name of the session to easily identify it SessionName *string // The HTTP client to use when sending requests. Defaults to // `http.DefaultClient`. @see defaults package HTTPClient *http.Client ApiScheme *string ApiHost *string ApiPort *int ApiContext *string ApiVersion *string FingerprintFile *string CheckFingerprint *bool // ssl settings CustomCABundle *io.Reader Insecure *bool }
func (*Config) WithApiContext ¶
func (*Config) WithApiHost ¶
func (*Config) WithApiPort ¶
func (*Config) WithApiScheme ¶
func (*Config) WithApiVersion ¶
func (*Config) WithCredentials ¶
func (c *Config) WithCredentials(creds *credentials.Credentials) *Config
func (*Config) WithInsecure ¶
func (*Config) WithSessionName ¶
Click to show internal directories.
Click to hide internal directories.