consul

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "consul"

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(ctx context.Context, m configmap.Mapper) (place.Backend, error)

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

func (*Backend) CacheKeyName

func (b *Backend) CacheKeyName(pattern string) string

func (*Backend) List

func (b *Backend) List(ctx context.Context, backendName string, pattern string) (place.Printable, error)

func (*Backend) Name

func (b *Backend) Name() string

type Options

type Options struct {
	Address            string `config:"address"`
	Schema             string `config:"scheme"`
	Datacenter         string `config:"datacenter"`
	TokenFile          string `config:"token_file"`
	Token              string `config:"token"`
	Namespace          string `config:"namespace"`
	AuthBasicUsername  string `config:"auth_basic_username"`
	AuthBasicPassword  string `config:"auth_basic_password"`
	HTTPTLSServerName  string `config:"http_tls_server_name"`
	HTTPCAFile         string `config:"http_ca_file"`
	HTTPCAPath         string `config:"http_ca_path"`
	HTTPClientCert     string `config:"http_client_cert"`
	HTTPClientKey      string `config:"http_client_key"`
	HTTPSSLEnvName     bool   `config:"http_ssl_env_name"`
	InsecureSkipVerify bool   `config:"insecure_skip_verify"`
}

Options defines the configuration for this backend

Jump to

Keyboard shortcuts

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