config

package
v0.0.0-...-4d94a0f Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDefinition

type AppDefinition struct {
	ManifestPath  string `json:"manifestPath"`
	AppNamePrefix string `json:"appNamePrefix"`
	AppCount      int    `json:"appCount"`
}

type Config

type Config interface {
	NumBatches() int
	MaxInFlight() int
	MaxPollingErrors() int
	// Tolerance() float64
	AppPayload() string
	Prefix() string
	Domain() string
	UseTLS() bool
	SkipVerifyCertificate() bool
	// ConfigFile() string
	OutputFile() string
	Timeout() time.Duration
	TotalAppCount() int
	MaxAllowedFailures() int
	AppTypes() []AppDefinition
}

func NewConfig

func NewConfig(
	logger lager.Logger,
	cfClient cli.CFClient,
	numBatches, maxInFlight, maxPollingErrors int,
	tolerance float64,
	appPayload, prefix, domain, configFile, outputFile string,
	timeout time.Duration,
	useTLS, skipVerifyCertificate bool,
) (Config, error)

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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