app_helpers

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppReport

func AppReport(appName string)

func GetAppGuid

func GetAppGuid(appName string) string

func LastAppUsageEventGuid

func LastAppUsageEventGuid(testSetup *workflowhelpers.ReproducibleTestSuiteSetup) string

func UsageEventsInclude

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

Types

type AppDroplet

type AppDroplet struct {
	// contains filtered or unexported fields
}

func NewAppDroplet

func NewAppDroplet(appGuid string, config config.CatsConfig) *AppDroplet

func (*AppDroplet) DownloadTo

func (droplet *AppDroplet) DownloadTo(downloadPath string) (string, error)

func (*AppDroplet) UploadFrom

func (droplet *AppDroplet) UploadFrom(uploadPath string)

type AppUsageEvent

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

func UsageEventsAfterGuid

func UsageEventsAfterGuid(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