config

package
v0.0.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBehindProxy added in v0.0.15

func IsBehindProxy() bool

Types

type Config

type Config struct {
	BoshDirectorIP         string
	CFRouterIP             string
	HostIP                 string
	CFDevHome              string
	StateDir               string
	StateBosh              string
	StateLinuxkit          string
	CacheDir               string
	BinaryDir              string
	VpnKitStateDir         string
	LogDir                 string
	Dependencies           resource.Catalog
	CFDevDSocketPath       string
	CFDevDInstallationPath string
	CliVersion             *Version
	BuildVersion           string
	AnalyticsKey           string
	ServicesDir            string
	DaemonDir              string
	CFDomain               string
}

func NewConfig

func NewConfig() (Config, error)

func (*Config) BuildProxyConfig added in v0.0.15

func (c *Config) BuildProxyConfig() ProxyConfig

type ProxyConfig added in v0.0.15

type ProxyConfig struct {
	Http    string `json:"http,omitempty"`
	Https   string `json:"https,omitempty"`
	NoProxy string `json:"exclude,omitempty"`
}

type Version added in v0.0.15

type Version struct {
	Major    int
	Minor    int
	Build    int
	Original string
}

func NewSemver added in v0.0.15

func NewSemver(v string) (*Version, error)

Jump to

Keyboard shortcuts

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