checkpoint

package
v0.0.0-...-72504b9 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool returns a pointer to the bool value passed in.

func BoolValue

func BoolValue(v *bool) bool

BoolValue returns the value of the bool pointer passed in or false if the pointer is nil.

func Int

func Int(v int) *int

Int returns a pointer to the int value passed in.

func Int64

func Int64(v int64) *int64

Int64 returns a pointer to the int64 value passed in.

func Int64Value

func Int64Value(v *int64) int64

Int64Value returns the value of the int64 pointer passed in or 0 if the pointer is nil.

func IntValue

func IntValue(v *int) int

IntValue returns the value of the int pointer passed in or 0 if the pointer is nil.

func String

func String(v string) *string

String returns a pointer to the string value passed in.

func StringValue

func StringValue(v *string) string

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 NewConfig

func NewConfig() *Config

func (*Config) MergeIn

func (c *Config) MergeIn(cfgs ...*Config)

func (*Config) WithApiContext

func (c *Config) WithApiContext(context string) *Config

func (*Config) WithApiHost

func (c *Config) WithApiHost(host string) *Config

func (*Config) WithApiPort

func (c *Config) WithApiPort(port int) *Config

func (*Config) WithApiScheme

func (c *Config) WithApiScheme(scheme string) *Config

func (*Config) WithApiVersion

func (c *Config) WithApiVersion(version string) *Config

func (*Config) WithCredentials

func (c *Config) WithCredentials(creds *credentials.Credentials) *Config

func (*Config) WithCustomCABundle

func (c *Config) WithCustomCABundle(bundle *io.Reader) *Config

func (*Config) WithHTTPClient

func (c *Config) WithHTTPClient(client *http.Client) *Config

func (*Config) WithInsecure

func (c *Config) WithInsecure(insecure bool) *Config

func (*Config) WithSessionName

func (c *Config) WithSessionName(name string) *Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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