client

package
v0.0.0-...-562eb29 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterClient

func NewClusterClient(host string, config *Config) cc.IClient

func NewGenesisCluster

func NewGenesisCluster(host string, config *Config) gc.IClient

func NewRegistryClient

func NewRegistryClient(host string, config *Config) rc.IClient

Types

type Client

type Client struct {
	Genesis  gc.IClient
	Cluster  cc.IClient
	Registry rc.IClient
}

type Config

type Config struct {
	Token   string
	TLS     *TLSConfig
	Headers map[string]string
}

type TLSConfig

type TLSConfig struct {
	// Server should be accessed without verifying the TLS certificate. For testing only.
	Insecure bool

	// Override for the server name passed to the server for SNI and used to verify certificates..
	ServerName string

	// Server requires TLS client certificate authentication
	CertFile string
	// Server requires TLS client certificate authentication
	KeyFile string
	// Trusted root certificates for server
	CAFile string

	// Bytes of the PEM-encoded server trusted root certificates. Supersedes CAFile.
	CAData []byte
	// Bytes of the PEM-encoded client certificate. Supersedes CertFile.
	CertData []byte
	// Bytes of the PEM-encoded client key. Supersedes KeyFile.
	KeyData []byte
}

TLSConfig contains settings to enable transport layer security

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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