vault: github.com/hashicorp/vault/command/agent/config Index | Files

package config

import "github.com/hashicorp/vault/command/agent/config"

Index

Package Files

config.go

type AutoAuth Uses

type AutoAuth struct {
    Method *Method `hcl:"-"`
    Sinks  []*Sink `hcl:"sinks"`

    // NOTE: This is unsupported outside of testing and may disappear at any
    // time.
    EnableReauthOnNewCredentials bool `hcl:"enable_reauth_on_new_credentials"`
}

type Cache Uses

type Cache struct {
    UseAutoAuthToken bool `hcl:"use_auto_auth_token"`
}

type Config Uses

type Config struct {
    AutoAuth      *AutoAuth   `hcl:"auto_auth"`
    ExitAfterAuth bool        `hcl:"exit_after_auth"`
    PidFile       string      `hcl:"pid_file"`
    Listeners     []*Listener `hcl:"listeners"`
    Cache         *Cache      `hcl:"cache"`
    Vault         *Vault      `hcl:"vault"`
}

Config is the configuration for the vault server.

func LoadConfig Uses

func LoadConfig(path string) (*Config, error)

LoadConfig loads the configuration at the given path, regardless if its a file or directory.

type Listener Uses

type Listener struct {
    Type   string
    Config map[string]interface{}
}

type Method Uses

type Method struct {
    Type       string
    MountPath  string        `hcl:"mount_path"`
    WrapTTLRaw interface{}   `hcl:"wrap_ttl"`
    WrapTTL    time.Duration `hcl:"-"`
    Namespace  string        `hcl:"namespace"`
    Config     map[string]interface{}
}

type Sink Uses

type Sink struct {
    Type       string
    WrapTTLRaw interface{}   `hcl:"wrap_ttl"`
    WrapTTL    time.Duration `hcl:"-"`
    DHType     string        `hcl:"dh_type"`
    DHPath     string        `hcl:"dh_path"`
    AAD        string        `hcl:"aad"`
    AADEnvVar  string        `hcl:"aad_env_var"`
    Config     map[string]interface{}
}

type Vault Uses

type Vault struct {
    Address          string      `hcl:"address"`
    CACert           string      `hcl:"ca_cert"`
    CAPath           string      `hcl:"ca_path"`
    TLSSkipVerify    bool        `hcl:"-"`
    TLSSkipVerifyRaw interface{} `hcl:"tls_skip_verify"`
    ClientCert       string      `hcl:"client_cert"`
    ClientKey        string      `hcl:"client_key"`
}

Package config imports 12 packages (graph) and is imported by 5 packages. Updated 2019-09-21. Refresh now. Tools for package owners.