appinstances

package
v6.36.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 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 CloudControllerAppInstancesRepository

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

func NewCloudControllerAppInstancesRepository

func NewCloudControllerAppInstancesRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerAppInstancesRepository)

func (CloudControllerAppInstancesRepository) DeleteInstance

func (repo CloudControllerAppInstancesRepository) DeleteInstance(appGUID string, instance int) error

func (CloudControllerAppInstancesRepository) GetInstances

func (repo CloudControllerAppInstancesRepository) GetInstances(appGUID string) (instances []models.AppInstanceFields, err error)

type InstanceAPIResponse

type InstanceAPIResponse struct {
	State   string
	Since   float64
	Details string
}

type InstanceStatsAPIResponse

type InstanceStatsAPIResponse struct {
	Stats struct {
		DiskQuota int64 `json:"disk_quota"`
		MemQuota  int64 `json:"mem_quota"`
		Usage     struct {
			CPU  float64
			Disk int64
			Mem  int64
		}
	}
}

type InstancesAPIResponse

type InstancesAPIResponse map[string]InstanceAPIResponse

type Repository

type Repository interface {
	GetInstances(appGUID string) (instances []models.AppInstanceFields, apiErr error)
	DeleteInstance(appGUID string, instance int) error
}

type StatsAPIResponse

type StatsAPIResponse map[string]InstanceStatsAPIResponse

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