app_helpers

package
v0.0.0-...-d65a876 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppReport

func AppReport(appName string, timeout time.Duration)

func DisableDiego

func DisableDiego(appName string)

func DisableDiegoAndCheckResponse

func DisableDiegoAndCheckResponse(appName, expectedSubstring string)

func EnableDiego

func EnableDiego(appName string)

func GetAppGuid

func GetAppGuid(appName string) string

func LastAppUsageEventGuid

func LastAppUsageEventGuid(testSetup *workflowhelpers.ReproducibleTestSuiteSetup) string

func SetBackend

func SetBackend(appName string)

func UsageEventsInclude

func UsageEventsInclude(events []AppUsageEvent, event AppUsageEvent) bool

Types

type AppUsageEvent

type AppUsageEvent struct {
	Entity   `json:"entity"`
	Metadata `json:"metadata"`
}

func UsageEventsAfterGuid

func UsageEventsAfterGuid(testSetup *workflowhelpers.ReproducibleTestSuiteSetup, guid string) []AppUsageEvent

Returns all app usage events that occured since the given app usage event guid

type AppUsageEvents

type AppUsageEvents struct {
	Resources []AppUsageEvent `struct:"resources"`
	NextUrl   string          `json:"next_url"`
}

type Entity

type Entity struct {
	AppName       string `json:"app_name"`
	AppGuid       string `json:"app_guid"`
	State         string `json:"state"`
	BuildpackName string `json:"buildpack_name"`
	BuildpackGuid string `json:"buildpack_guid"`
	ParentAppName string `json:"parent_app_name"`
	ParentAppGuid string `json:"parent_app_guid"`
	ProcessType   string `json:"process_type"`
	TaskGuid      string `json:"task_guid"`
}

type Metadata

type Metadata struct {
	Guid string `json:"guid"`
}

Jump to

Keyboard shortcuts

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