client

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) error

New returns a client verifier

Types

type Config

type Config struct {
	// Authorizer is the name of the verifier to use
	Authorizer string
	// Interval is the pause between failed attempts
	Interval time.Duration
	// KubeAPI is the url for the kubernetes api
	KubeAPI string
	// KubeConfigPath is the location to write the bootstrap token config
	KubeConfigPath string
	// NodeURL is the url for the node authozier service
	NodeURL string
	// Timeout is the time will are willing to wait
	Timeout time.Duration
	// TLSCertPath is the path to the server TLS certificate
	TLSCertPath string
	// TLSClientCAPath is the path to a certificate authority
	TLSClientCAPath string
	// TLSPrivateKeyPath is the path to the private key
	TLSPrivateKeyPath string
	// Verbose indicate verbose logging
	Verbose bool
}

Config is the configuration for the service

func (*Config) IsValid

func (c *Config) IsValid() error

IsValid validates the client configuration

Jump to

Keyboard shortcuts

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