config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = ""

Version of cfseeker gets set here

Functions

This section is empty.

Types

type BOSHConfig

type BOSHConfig struct {
	APIAddress        string   `yaml:"api_address"`
	Username          string   `yaml:"username"`
	Password          string   `yaml:"password"`
	ClientID          string   `yaml:"client_id"`
	ClientSecret      string   `yaml:"client_secret"`
	SkipSSLValidation bool     `yaml:"skip_ssl_validation"`
	Deployments       []string `yaml:"deployments"`
	SkipBOSH          bool     `yaml:"skip_bosh"`
}

BOSHConfig contains location, auth, and tracking info for your BOSH.

type BasicAuthConfig added in v0.2.0

type BasicAuthConfig struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

BasicAuthConfig lets you set up basic auth for your API

type CFConfig

type CFConfig struct {
	APIAddress        string `yaml:"api_address"`
	ClientID          string `yaml:"client_id"`
	ClientSecret      string `yaml:"client_secret"`
	SkipSSLValidation bool   `yaml:"skip_ssl_validation"`
}

CFConfig contains location and authorization info about a target Cloud Foundry

type Config

type Config struct {
	CF          CFConfig     `yaml:"cf"`
	BOSH        BOSHConfig   `yaml:"bosh"`
	Server      ServerConfig `yaml:"server"`
	HTTPTimeout int          `yaml:"http_timeout"`
}

Config contains all the information needed for the seeker backend to operate

func (*Config) SkipBOSH added in v1.1.0

func (c *Config) SkipBOSH()

SkipBOSH sets the seeker config to not connect to BOSH

type ServerConfig added in v0.2.0

type ServerConfig struct {
	BasicAuth BasicAuthConfig `yaml:"basic_auth"`
	Port      int             `yaml:"port"`
	NoAuth    bool            `yaml:"no_auth"`
	CacheTTL  int             `yaml:"cache_ttl"` //in seconds
}

ServerConfig has the info needed specifically for running in server mode

Jump to

Keyboard shortcuts

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