command

package
v0.0.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCrash

type AppCrash struct {
	CCClient        CloudControllerClient
	AnalyticsClient analytics.Client
	TimeStamp       time.Time
	UUID            string
	Version         string
	OSVersion       string
	Logger          *log.Logger
}

func (*AppCrash) HandleResponse

func (c *AppCrash) HandleResponse(body json.RawMessage) error

type AppCreate

type AppCreate struct {
	CCClient        CloudControllerClient
	AnalyticsClient analytics.Client
	TimeStamp       time.Time
	UUID            string
	Version         string
	OSVersion       string
	Logger          *log.Logger
}

func (*AppCreate) HandleResponse

func (c *AppCreate) HandleResponse(body json.RawMessage) error

type AppRestage

type AppRestage struct {
	CCClient        CloudControllerClient
	AnalyticsClient analytics.Client
	TimeStamp       time.Time
	UUID            string
	Version         string
	OSVersion       string
	Logger          *log.Logger
}

func (*AppRestage) HandleResponse

func (c *AppRestage) HandleResponse(body json.RawMessage) error

type CloudControllerClient

type CloudControllerClient interface {
	Fetch(path string, params url.Values, dest interface{}) error
}

type Command

type Command interface {
	HandleResponse(body json.RawMessage) error
}

func New

func New(
	event string,
	ccClient CloudControllerClient,
	analyticsClient analytics.Client,
	timeStamp time.Time,
	UUID string,
	version string,
	osVersion string,
	logger *log.Logger) (Command, bool)

type ServiceBind

type ServiceBind struct {
	CCClient        CloudControllerClient
	AnalyticsClient analytics.Client
	TimeStamp       time.Time
	UUID            string
	Version         string
	OSVersion       string
	Logger          *log.Logger
}

func (*ServiceBind) HandleResponse

func (c *ServiceBind) HandleResponse(body json.RawMessage) error

type ServiceCreate

type ServiceCreate struct {
	CCClient        CloudControllerClient
	AnalyticsClient analytics.Client
	TimeStamp       time.Time
	UUID            string
	Version         string
	OSVersion       string
	Logger          *log.Logger
}

func (*ServiceCreate) HandleResponse

func (c *ServiceCreate) HandleResponse(body json.RawMessage) error

type UserProvidedServiceCreate

type UserProvidedServiceCreate struct {
	CCClient        CloudControllerClient
	AnalyticsClient analytics.Client
	TimeStamp       time.Time
	UUID            string
	Version         string
	OSVersion       string
	Logger          *log.Logger
}

func (*UserProvidedServiceCreate) HandleResponse

func (c *UserProvidedServiceCreate) HandleResponse(body json.RawMessage) error

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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