bootstrap

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WatcherTypeKube   = "kube"
	WatcherTypeConsul = "consul"
	WatcherTypeFile   = "file"
	WatcherTypeVault  = "vault"
)

Variables

Functions

This section is empty.

Types

type CoPilotOptions

type CoPilotOptions struct {
	// Address is the address of the Consul server
	Address string

	// Datacenter to use. If not provided, the default agent datacenter is used.
	ServerCA string

	// Scheme is the URI scheme for the Consul server
	ClientCert string

	// Username to use for HTTP Basic Authentication
	ClientKey string
}

type ConsulOptions

type ConsulOptions struct {
	// Address is the address of the Consul server
	Address string

	// Datacenter to use. If not provided, the default agent datacenter is used.
	Datacenter string

	// Scheme is the URI scheme for the Consul server
	Scheme string

	// Username to use for HTTP Basic Authentication
	Username string

	// Password to use for HTTP Basic Authentication
	Password string

	// Token is used to provide a per-request ACL token
	// which overrides the agent's default token.
	Token string

	// RootPath is used as the root for all keys stored
	// in consul by gloo
	RootPath string
}

func (ConsulOptions) ToConsulConfig

func (o ConsulOptions) ToConsulConfig() *api.Config

type FileOptions

type FileOptions struct {
	ConfigDir string
	SecretDir string
	FilesDir  string
}

type KubeOptions

type KubeOptions struct {
	KubeConfig string
	MasterURL  string
	Namespace  string // where to watch for storage
}

type Options

type Options struct {
	// general options for storage backends
	ConfigStorageOptions StorageOptions
	SecretStorageOptions StorageOptions
	FileStorageOptions   StorageOptions
	// options for platforms
	KubeOptions    KubeOptions
	ConsulOptions  ConsulOptions
	CoPilotOptions CoPilotOptions
	FileOptions    FileOptions
	VaultOptions   VaultOptions
}

type StorageOptions

type StorageOptions struct {
	Type          string
	SyncFrequency time.Duration
}

type VaultOptions

type VaultOptions struct {
	VaultAddr      string
	VaultToken     string
	VaultTokenFile string
	Retries        int
	RootPath       string
}

type XdsOptions

type XdsOptions struct {
	Port int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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