actors

package
v6.16.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanAccess

type PlanAccess int
const (
	PlanAccessError PlanAccess = iota
	All
	Limited
	None
)

type PushActor

type PushActor interface {
	UploadApp(appGuid string, zipFile *os.File, presentFiles []resources.AppFileResource) error
	ProcessPath(dirOrZipFile string, f func(string)) error
	GatherFiles(localFiles []models.AppFileFields, appDir string, uploadDir string) ([]resources.AppFileResource, bool, error)
}

func NewPushActor

func NewPushActor(appBitsRepo application_bits.ApplicationBitsRepository, zipper app_files.Zipper, appfiles app_files.AppFiles) PushActor

type PushActorImpl

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

func (PushActorImpl) GatherFiles

func (actor PushActorImpl) GatherFiles(localFiles []models.AppFileFields, appDir string, uploadDir string) ([]resources.AppFileResource, bool, error)

func (PushActorImpl) ProcessPath

func (actor PushActorImpl) ProcessPath(dirOrZipFile string, f func(string)) error

ProcessPath takes in a director of app files or a zip file which contains the app files. If given a zip file, it will extract the zip to a temporary location, call the provided callback with that location, and then clean up the location after the callback has been executed.

This was done so that the caller of ProcessPath wouldn't need to know if it was a zip file or an app dir that it was given, and the caller would not be responsible for cleaning up the temporary directory ProcessPath creates when given a zip.

func (PushActorImpl) UploadApp

func (actor PushActorImpl) UploadApp(appGuid string, zipFile *os.File, presentFiles []resources.AppFileResource) error

type RouteActor

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

func NewRouteActor

func NewRouteActor(ui terminal.UI, routeRepo api.RouteRepository) RouteActor

func (RouteActor) BindRoute

func (routeActor RouteActor) BindRoute(app models.Application, route models.Route)

func (RouteActor) FindOrCreateRoute

func (routeActor RouteActor) FindOrCreateRoute(hostname string, domain models.DomainFields, path string) (route models.Route)

func (RouteActor) UnbindAll

func (routeActor RouteActor) UnbindAll(app models.Application)

type ServiceAccess

type ServiceAccess int
const (
	ServiceAccessError ServiceAccess = iota
	AllPlansArePublic
	AllPlansArePrivate
	AllPlansAreLimited
	SomePlansArePublicSomeAreLimited
	SomePlansArePublicSomeArePrivate
	SomePlansAreLimitedSomeArePrivate
	SomePlansArePublicSomeAreLimitedSomeArePrivate
)

type ServiceActor

type ServiceActor interface {
	FilterBrokers(brokerFlag string, serviceFlag string, orgFlag string) ([]models.ServiceBroker, error)
}

type ServiceHandler

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

func (ServiceHandler) FilterBrokers

func (actor ServiceHandler) FilterBrokers(brokerFlag string, serviceFlag string, orgFlag string) ([]models.ServiceBroker, error)

type ServicePlanActor

type ServicePlanActor interface {
	FindServiceAccess(string, string) (ServiceAccess, error)
	UpdateAllPlansForService(string, bool) (bool, error)
	UpdateOrgForService(string, string, bool) (bool, error)
	UpdateSinglePlanForService(string, string, bool) (PlanAccess, error)
	UpdatePlanAndOrgForService(string, string, string, bool) (PlanAccess, error)
}

type ServicePlanHandler

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

func (ServicePlanHandler) FindServiceAccess

func (actor ServicePlanHandler) FindServiceAccess(serviceName string, orgName string) (ServiceAccess, error)

func (ServicePlanHandler) UpdateAllPlansForService

func (actor ServicePlanHandler) UpdateAllPlansForService(serviceName string, setPlanVisibility bool) (bool, error)

func (ServicePlanHandler) UpdateOrgForService

func (actor ServicePlanHandler) UpdateOrgForService(serviceName string, orgName string, setPlanVisibility bool) (bool, error)

func (ServicePlanHandler) UpdatePlanAndOrgForService

func (actor ServicePlanHandler) UpdatePlanAndOrgForService(serviceName, planName, orgName string, setPlanVisibility bool) (PlanAccess, error)

func (ServicePlanHandler) UpdateSinglePlanForService

func (actor ServicePlanHandler) UpdateSinglePlanForService(serviceName string, planName string, setPlanVisibility bool) (PlanAccess, error)

Directories

Path Synopsis
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
fakes
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