config

package
v0.0.0-...-b9fdcee Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0, BSD-2-Clause, MIT Imports: 2 Imported by: 7

Documentation

Overview

Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause

Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause

Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfigFile = "config.yaml"

Functions

func Save

func Save(config *Config, configFile string) error

Types

type Config

type Config struct {
	ServerConfig          `yaml:"server"`
	DataStoreConfig       `yaml:"dataStore"`
	VirtualKeyStoreConfig `yaml:"virtualKeyStore"`
}

func GenerateTestConfig

func GenerateTestConfig() *Config

func Load

func Load(configFile string) (*Config, error)

type DataStoreConfig

type DataStoreConfig struct {
	StoreType        string `yaml:"type"`
	ConnectionString string `yaml:"connectionString"`
}

type HttpConfig

type HttpConfig struct {
	Enabled bool `yaml:"enabled"`
	Port    int  `yaml:"port"`
}

type HttpsConfig

type HttpsConfig struct {
	Enabled    bool   `yaml:"enabled"`
	Port       int    `yaml:"port"`
	CaCert     string `yaml:"caCert"`
	CaKey      string `yaml:"caKey"`
	ServerCert string `yaml:"serverCert"`
	ServerKey  string `yaml:"serverKey"`
}

type KeyStoreConfig

type KeyStoreConfig struct {
	StoreType        string `yaml:"type"`
	ConnectionString string `yaml:"connectionString"`
}

type ServerConfig

type ServerConfig struct {
	HttpConfig         `yaml:"http"`
	HttpsConfig        `yaml:"https"`
	RootInitPubKey     string `yaml:"rootInitPubKey"`
	RootInitPrivateKey string `yaml:"rootInitPriKey"`
}

type VirtualKeyStoreConfig

type VirtualKeyStoreConfig struct {
	KeyStoreCount     int              `yaml:"keyStoreCount"`
	KeyStoreThreshold int              `yaml:"keyStoreThreshold"`
	KeyStores         []KeyStoreConfig `yaml:"keyStores"`
}

Jump to

Keyboard shortcuts

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