config

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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