config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

******************************************************************************

  • Copyright 2018 Dell Inc.
  • Copyright (c) 2019 Intel Corporation *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. ******************************************************************************

******************************************************************************

  • Copyright 2018 Dell Inc.
  • Copyright (c) 2019 Intel Corporation *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. ******************************************************************************

******************************************************************************

  • Copyright 2018 Dell Inc.
  • Copyright (c) 2019 Intel Corporation *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. ******************************************************************************

Index

Constants

This section is empty.

Variables

View Source
var LoggingClient logger.LoggingClient
View Source
var Registry registry.Client

Functions

func ImportConfiguration

func ImportConfiguration(root string, profile string, overwrite bool) error

Import configuration files using the specified path to the cmd directory where service configuration files reside. Also, profile indicates the preferred deployment target (such as "docker")

func ImportProperties

func ImportProperties(root string) error

Import properties files for support of legacy Java services.

func Init

func Init() bool

func Retry

func Retry(useProfile string, timeout int, wait *sync.WaitGroup, ch chan error)

The purpose of Retry is different here than in other services. In this case, we use a retry in order to initialize the RegistryClient that will be used to write configuration information. Other services use Retry to read their information. Config-seed writes information.

Types

type ConfigurationStruct

type ConfigurationStruct struct {
	ConfigPath                   string
	GlobalPrefix                 string
	IsReset                      bool
	FailLimit                    int
	FailWaitTime                 int
	AcceptablePropertyExtensions []string
	YamlExtensions               []string
	TomlExtensions               []string
	EnableRemoteLogging          bool
	LoggingFile                  string
	LoggingRemoteURL             string
	LoggingLevel                 string
	Registry                     config.RegistryInfo
}
var Configuration *ConfigurationStruct

Global variables

Jump to

Keyboard shortcuts

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