config

package
v0.0.0-...-850ae45 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DefaultVMName            string
	PCFDevHome               string
	OVADir                   string
	OVAPath                  string
	PartialOVAPath           string
	VMDir                    string
	HTTPProxy                string
	HTTPSProxy               string
	NoProxy                  string
	MinMemory                uint64
	MaxMemory                uint64
	TotalMemory              uint64
	FreeMemory               uint64
	DefaultMemory            uint64
	SpringCloudDefaultMemory uint64
	SpringCloudMinMemory     uint64
	SpringCloudMaxMemory     uint64
	DefaultCPUs              func() (int, error)
	ExpectedMD5              string
	InsecurePrivateKey       []byte
	PrivateKeyPath           string
	Version                  *Version
}

func New

func New(defaultVMName string, expectedMD5 string, insecurePrivateKey []byte, system System, version *Version) (*Config, error)

type NetworkConfig

type NetworkConfig struct {
	VMIP      string
	VMDomain  string
	Interface *network.Interface
}

type ProvisionConfig

type ProvisionConfig struct {
	Domain     string   `json:"domain"`
	IP         string   `json:"ip"`
	Services   string   `json:"services"`
	Registries []string `json:"registries"`
	Provider   string   `json:"provider"`
}

type System

type System interface {
	TotalMemory() (uint64, error)
	FreeMemory() (uint64, error)
	PhysicalCores() (int, error)
}

type VMConfig

type VMConfig struct {
	Name     string
	OVAPath  string
	Domain   string
	IP       string
	Memory   uint64
	CPUs     int
	SSHPort  string
	Provider string
}

type Version

type Version struct {
	BuildVersion    string
	BuildSHA        string
	OVABuildVersion string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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