options

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	ClusterDomainName string `json:"clusterDomainName"`
	KITTClusterEnv    string `json:"kittClusterEnv"`
	Kube2iamAccount   string `json:"kube2iamAccount"`
}

func (*Cluster) DefaultAndValdiate

func (c *Cluster) DefaultAndValdiate() []error

type Location

type Location struct {
	Account voyager.Account `json:"account"`
	Region  voyager.Region  `json:"region"`
	EnvType voyager.EnvType `json:"envType"`
}

func (Location) ClusterLocation

func (l Location) ClusterLocation() voyager.ClusterLocation

ClusterLocation generates a ClusterLocation based on the Location's coordinates

func (*Location) DefaultAndValidate

func (l *Location) DefaultAndValidate() []error

type ServerConfig

type ServerConfig struct {

	// TLSCert is the location of the tls cert file
	TLSCert string `json:"tlsCert"`

	// TLSKey is the location of the tls key file
	TLSKey string `json:"tlsKey"`

	// ClientRootCAs is the concatenated list of CAs for client cert validation
	ClientRootCAs string `json:"clientRootCAs"`

	// ServerAddr is the Address to serve on. Defaults to port 443
	ServerAddr string `json:"serverAddr"`

	// DisableTLS indicates whether to disable TLS;
	// should be used only for local testing and integration tests
	DisableTLS bool `json:"disableTls"`
}

ServerConfig contains options for running HTTP servers

func (*ServerConfig) DefaultAndValidate

func (conf *ServerConfig) DefaultAndValidate() []error

Jump to

Keyboard shortcuts

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