config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

DEPRECATION NOTICE

The code in this subdirectory ("config") is likely to be deprecated soon. It's being left here as a reference for what Spinnaker YAML config files "look like". It will likely be ported into a separate library specific to the handling of Spinnaker configuration file processing (which isn't as simple as just loading a single YAML file).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(dest interface{}, services ...string) error

Load settings from yaml file.

Types

type Front50

type Front50 struct {
	Service
	StorageBucket string `json:"storage_bucket,omitempty" mapstructure:"storage_bucket"`
	StoragePrefix string `json:"rootFolder,omitempty" mapstructure:"rootFolder"`
	S3            struct {
		Enabled bool `json:"enabled,omitempty" mapstructure:"enabled"`
	} `json:"s3,omitempty" mapstructure:"s3"`
	GCS struct {
		Enabled bool `json:"enabled,omitempty" mapstructure:"enabled"`
	} `json:"gcs,omitempty" mapstructure:"gcs"`
}

Front50 service settings.

type Service

type Service struct {
	Enabled bool   `json:"enabled,omitempty" mapstructure:"enabled"`
	BaseURL string `json:"baseUrl,omitempty" mapstructure:"baseUrl"`
}

Service such as Fiat, Orca, Deck, Gate, etc.

type Services

type Services struct {
	Fiat    Service `json:"fiat,omitempty" mapstructure:"fiat"`
	Front50 Front50 `json:"front50,omitempty" mapstructure:"front50"`
}

Services within Spinnaker.

type Settings

type Settings struct {
	Services Services `json:"services,omitempty" mapstructure:"services"`
}

Settings mirrors Spinnaker's yaml files.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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