api

package
v6.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2013 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const APP_EVENT_TIMESTAMP_FORMAT = "2006-01-02T15:04:05-07:00"
View Source
const MAX_INT64 int64 = 1<<63 - 1

Variables

This section is empty.

Functions

This section is empty.

Types

type AppEventsRepository

type AppEventsRepository interface {
	ListEvents(app cf.Application) (events []cf.Event, apiResponse net.ApiResponse)
}

type AppFileResource

type AppFileResource struct {
	Path string `json:"fn"`
	Sha1 string `json:"sha1"`
	Size int64  `json:"size"`
}

type AppFilesRepository

type AppFilesRepository interface {
	ListFiles(app cf.Application, path string) (files string, apiResponse net.ApiResponse)
}

type AppRouteEntity

type AppRouteEntity struct {
	Host   string
	Domain Resource
}

type AppRouteResource

type AppRouteResource struct {
	Resource
	Entity AppRouteEntity
}

type AppSummaryRepository

type AppSummaryRepository interface {
	GetSummariesInCurrentSpace() (apps []cf.Application, apiResponse net.ApiResponse)
	GetSummary(app cf.Application) (summary cf.AppSummary, apiResponse net.ApiResponse)
}

type ApplicationBitsRepository

type ApplicationBitsRepository interface {
	UploadApp(app cf.Application, dir string) (apiResponse net.ApiResponse)
}

type ApplicationEntity

type ApplicationEntity struct {
	Name            string
	State           string
	Instances       int
	Memory          int
	Routes          []AppRouteResource
	EnvironmentJson map[string]string `json:"environment_json"`
}

type ApplicationRepository

type ApplicationRepository interface {
	FindByName(name string) (app cf.Application, apiResponse net.ApiResponse)
	SetEnv(app cf.Application, envVars map[string]string) (apiResponse net.ApiResponse)
	Create(newApp cf.Application) (createdApp cf.Application, apiResponse net.ApiResponse)
	Delete(app cf.Application) (apiResponse net.ApiResponse)
	Rename(app cf.Application, newName string) (apiResponse net.ApiResponse)
	Scale(app cf.Application) (apiResponse net.ApiResponse)
	Start(app cf.Application) (updatedApp cf.Application, apiResponse net.ApiResponse)
	Stop(app cf.Application) (updatedApp cf.Application, apiResponse net.ApiResponse)
	GetInstances(app cf.Application) (instances []cf.ApplicationInstance, apiResponse net.ApiResponse)
}

type ApplicationResource

type ApplicationResource struct {
	Resource
	Entity ApplicationEntity
}

type ApplicationSummaries

type ApplicationSummaries struct {
	Apps []ApplicationSummary
}

type ApplicationSummary

type ApplicationSummary struct {
	Guid             string
	Name             string
	Routes           []RouteSummary
	RunningInstances int `json:"running_instances"`
	Memory           uint64
	Instances        int
	DiskQuota        uint64 `json:"disk_quota"`
	Urls             []string
	State            string
}

type AuthTokenEntity

type AuthTokenEntity struct {
	Label    string
	Provider string
}

type AuthTokenResource

type AuthTokenResource struct {
	Resource
	Entity AuthTokenEntity
}

type AuthenticationRepository

type AuthenticationRepository interface {
	Authenticate(email string, password string) (apiResponse net.ApiResponse)
	RefreshAuthToken() (updatedToken string, apiResponse net.ApiResponse)
}

type BuildpackBitsRepository

type BuildpackBitsRepository interface {
	UploadBuildpack(buildpack cf.Buildpack, dir string) (apiResponse net.ApiResponse)
}

type BuildpackEntity

type BuildpackEntity struct {
	Name     string `json:"name"`
	Position *int   `json:"position,omitempty"`
}

type BuildpackRepository

type BuildpackRepository interface {
	FindByName(name string) (buildpack cf.Buildpack, apiResponse net.ApiResponse)
	FindAll() (instances []cf.Buildpack, apiResponse net.ApiResponse)
	Create(newBuildpack cf.Buildpack) (createdBuildpack cf.Buildpack, apiResponse net.ApiResponse)
	Delete(buildpack cf.Buildpack) (apiResponse net.ApiResponse)
	Update(buildpack cf.Buildpack) (updatedBuildpack cf.Buildpack, apiResponse net.ApiResponse)
}

type BuildpackResource

type BuildpackResource struct {
	Resource
	Entity BuildpackEntity
}

type CCUserProvidedServiceInstanceRepository

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

func NewCCUserProvidedServiceInstanceRepository

func NewCCUserProvidedServiceInstanceRepository(config *configuration.Configuration, gateway net.Gateway) (repo CCUserProvidedServiceInstanceRepository)

func (CCUserProvidedServiceInstanceRepository) Create

func (repo CCUserProvidedServiceInstanceRepository) Create(serviceInstance cf.ServiceInstance) (apiResponse net.ApiResponse)

func (CCUserProvidedServiceInstanceRepository) Update

func (repo CCUserProvidedServiceInstanceRepository) Update(serviceInstance cf.ServiceInstance) (apiResponse net.ApiResponse)

type CloudControllerAppEventsRepository

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

func NewCloudControllerAppEventsRepository

func NewCloudControllerAppEventsRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerAppEventsRepository)

func (CloudControllerAppEventsRepository) ListEvents

func (repo CloudControllerAppEventsRepository) ListEvents(app cf.Application) (events []cf.Event, apiResponse net.ApiResponse)

type CloudControllerAppFilesRepository

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

func NewCloudControllerAppFilesRepository

func NewCloudControllerAppFilesRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerAppFilesRepository)

func (CloudControllerAppFilesRepository) ListFiles

func (repo CloudControllerAppFilesRepository) ListFiles(app cf.Application, path string) (files string, apiResponse net.ApiResponse)

type CloudControllerAppSummaryRepository

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

func NewCloudControllerAppSummaryRepository

func NewCloudControllerAppSummaryRepository(config *configuration.Configuration, gateway net.Gateway, appRepo ApplicationRepository) (repo CloudControllerAppSummaryRepository)

func (CloudControllerAppSummaryRepository) GetSummariesInCurrentSpace

func (repo CloudControllerAppSummaryRepository) GetSummariesInCurrentSpace() (apps []cf.Application, apiResponse net.ApiResponse)

func (CloudControllerAppSummaryRepository) GetSummary

func (repo CloudControllerAppSummaryRepository) GetSummary(app cf.Application) (summary cf.AppSummary, apiResponse net.ApiResponse)

type CloudControllerApplicationBitsRepository

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

func NewCloudControllerApplicationBitsRepository

func NewCloudControllerApplicationBitsRepository(config *configuration.Configuration, gateway net.Gateway, zipper cf.Zipper) (repo CloudControllerApplicationBitsRepository)

func (CloudControllerApplicationBitsRepository) UploadApp

func (repo CloudControllerApplicationBitsRepository) UploadApp(app cf.Application, appDir string) (apiResponse net.ApiResponse)

type CloudControllerApplicationRepository

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

func NewCloudControllerApplicationRepository

func NewCloudControllerApplicationRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerApplicationRepository)

func (CloudControllerApplicationRepository) Create

func (repo CloudControllerApplicationRepository) Create(newApp cf.Application) (createdApp cf.Application, apiResponse net.ApiResponse)

func (CloudControllerApplicationRepository) Delete

func (repo CloudControllerApplicationRepository) Delete(app cf.Application) (apiResponse net.ApiResponse)

func (CloudControllerApplicationRepository) FindByName

func (repo CloudControllerApplicationRepository) FindByName(name string) (app cf.Application, apiResponse net.ApiResponse)

func (CloudControllerApplicationRepository) GetInstances

func (repo CloudControllerApplicationRepository) GetInstances(app cf.Application) (instances []cf.ApplicationInstance, apiResponse net.ApiResponse)

func (CloudControllerApplicationRepository) Rename

func (repo CloudControllerApplicationRepository) Rename(app cf.Application, newName string) (apiResponse net.ApiResponse)

func (CloudControllerApplicationRepository) Scale

func (repo CloudControllerApplicationRepository) Scale(app cf.Application) (apiResponse net.ApiResponse)

func (CloudControllerApplicationRepository) SetEnv

func (repo CloudControllerApplicationRepository) SetEnv(app cf.Application, envVars map[string]string) (apiResponse net.ApiResponse)

func (CloudControllerApplicationRepository) Start

func (repo CloudControllerApplicationRepository) Start(app cf.Application) (updatedApp cf.Application, apiResponse net.ApiResponse)

func (CloudControllerApplicationRepository) Stop

func (repo CloudControllerApplicationRepository) Stop(app cf.Application) (updatedApp cf.Application, apiResponse net.ApiResponse)

type CloudControllerBuildpackBitsRepository

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

func NewCloudControllerBuildpackBitsRepository

func NewCloudControllerBuildpackBitsRepository(config *configuration.Configuration, gateway net.Gateway, zipper cf.Zipper) (repo CloudControllerBuildpackBitsRepository)

func (CloudControllerBuildpackBitsRepository) UploadBuildpack

func (repo CloudControllerBuildpackBitsRepository) UploadBuildpack(buildpack cf.Buildpack, dir string) (apiResponse net.ApiResponse)

type CloudControllerBuildpackRepository

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

func NewCloudControllerBuildpackRepository

func NewCloudControllerBuildpackRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerBuildpackRepository)

func (CloudControllerBuildpackRepository) Create

func (repo CloudControllerBuildpackRepository) Create(newBuildpack cf.Buildpack) (createdBuildpack cf.Buildpack, apiResponse net.ApiResponse)

func (CloudControllerBuildpackRepository) Delete

func (repo CloudControllerBuildpackRepository) Delete(buildpack cf.Buildpack) (apiResponse net.ApiResponse)

func (CloudControllerBuildpackRepository) FindAll

func (repo CloudControllerBuildpackRepository) FindAll() (buildpacks []cf.Buildpack, apiResponse net.ApiResponse)

func (CloudControllerBuildpackRepository) FindByName

func (repo CloudControllerBuildpackRepository) FindByName(name string) (buildpack cf.Buildpack, apiResponse net.ApiResponse)

func (CloudControllerBuildpackRepository) Update

func (repo CloudControllerBuildpackRepository) Update(buildpack cf.Buildpack) (updatedBuildpack cf.Buildpack, apiResponse net.ApiResponse)

type CloudControllerDomainRepository

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

func NewCloudControllerDomainRepository

func NewCloudControllerDomainRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerDomainRepository)

func (CloudControllerDomainRepository) Create

func (repo CloudControllerDomainRepository) Create(domainToCreate cf.Domain, owningOrg cf.Organization) (createdDomain cf.Domain, apiResponse net.ApiResponse)

func (CloudControllerDomainRepository) CreateSharedDomain

func (repo CloudControllerDomainRepository) CreateSharedDomain(domain cf.Domain) (apiResponse net.ApiResponse)

func (CloudControllerDomainRepository) Delete

func (repo CloudControllerDomainRepository) Delete(domain cf.Domain) (apiResponse net.ApiResponse)

func (CloudControllerDomainRepository) FindAllByOrg

func (repo CloudControllerDomainRepository) FindAllByOrg(org cf.Organization) (domains []cf.Domain, apiResponse net.ApiResponse)

func (CloudControllerDomainRepository) FindByName

func (repo CloudControllerDomainRepository) FindByName(name string) (domain cf.Domain, apiResponse net.ApiResponse)

func (CloudControllerDomainRepository) FindByNameInCurrentSpace

func (repo CloudControllerDomainRepository) FindByNameInCurrentSpace(name string) (domain cf.Domain, apiResponse net.ApiResponse)

func (CloudControllerDomainRepository) FindByNameInOrg

func (repo CloudControllerDomainRepository) FindByNameInOrg(name string, org cf.Organization) (domain cf.Domain, apiResponse net.ApiResponse)

func (CloudControllerDomainRepository) FindDefaultAppDomain

func (repo CloudControllerDomainRepository) FindDefaultAppDomain() (domain cf.Domain, apiResponse net.ApiResponse)

func (CloudControllerDomainRepository) Map

func (repo CloudControllerDomainRepository) Map(domain cf.Domain, space cf.Space) (apiResponse net.ApiResponse)

func (CloudControllerDomainRepository) Unmap

func (repo CloudControllerDomainRepository) Unmap(domain cf.Domain, space cf.Space) (apiResponse net.ApiResponse)

type CloudControllerOrganizationRepository

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

func NewCloudControllerOrganizationRepository

func NewCloudControllerOrganizationRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerOrganizationRepository)

func (CloudControllerOrganizationRepository) Create

func (repo CloudControllerOrganizationRepository) Create(name string) (apiResponse net.ApiResponse)

func (CloudControllerOrganizationRepository) Delete

func (repo CloudControllerOrganizationRepository) Delete(org cf.Organization) (apiResponse net.ApiResponse)

func (CloudControllerOrganizationRepository) FindAll

func (repo CloudControllerOrganizationRepository) FindAll() (orgs []cf.Organization, apiResponse net.ApiResponse)

func (CloudControllerOrganizationRepository) FindByName

func (repo CloudControllerOrganizationRepository) FindByName(name string) (org cf.Organization, apiResponse net.ApiResponse)

func (CloudControllerOrganizationRepository) Rename

func (repo CloudControllerOrganizationRepository) Rename(org cf.Organization, name string) (apiResponse net.ApiResponse)

type CloudControllerPasswordRepository

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

func NewCloudControllerPasswordRepository

func NewCloudControllerPasswordRepository(config *configuration.Configuration, gateway net.Gateway, endpointRepo EndpointRepository) (repo CloudControllerPasswordRepository)

func (CloudControllerPasswordRepository) GetScore

func (repo CloudControllerPasswordRepository) GetScore(password string) (score string, apiResponse net.ApiResponse)

func (CloudControllerPasswordRepository) UpdatePassword

func (repo CloudControllerPasswordRepository) UpdatePassword(old string, new string) (apiResponse net.ApiResponse)

type CloudControllerQuotaRepository

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

func NewCloudControllerQuotaRepository

func NewCloudControllerQuotaRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerQuotaRepository)

func (CloudControllerQuotaRepository) FindAll

func (repo CloudControllerQuotaRepository) FindAll() (quotas []cf.Quota, apiResponse net.ApiResponse)

func (CloudControllerQuotaRepository) FindByName

func (repo CloudControllerQuotaRepository) FindByName(name string) (quota cf.Quota, apiResponse net.ApiResponse)

func (CloudControllerQuotaRepository) Update

func (repo CloudControllerQuotaRepository) Update(org cf.Organization, quota cf.Quota) (apiResponse net.ApiResponse)

type CloudControllerRouteRepository

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

func NewCloudControllerRouteRepository

func NewCloudControllerRouteRepository(config *configuration.Configuration, gateway net.Gateway, domainRepo DomainRepository) (repo CloudControllerRouteRepository)

func (CloudControllerRouteRepository) Bind

func (repo CloudControllerRouteRepository) Bind(route cf.Route, app cf.Application) (apiResponse net.ApiResponse)

func (CloudControllerRouteRepository) Create

func (repo CloudControllerRouteRepository) Create(newRoute cf.Route, domain cf.Domain) (createdRoute cf.Route, apiResponse net.ApiResponse)

func (CloudControllerRouteRepository) CreateInSpace

func (repo CloudControllerRouteRepository) CreateInSpace(newRoute cf.Route, domain cf.Domain, space cf.Space) (createdRoute cf.Route, apiResponse net.ApiResponse)

func (CloudControllerRouteRepository) Delete

func (repo CloudControllerRouteRepository) Delete(route cf.Route) (apiResponse net.ApiResponse)

func (CloudControllerRouteRepository) FindAll

func (repo CloudControllerRouteRepository) FindAll() (routes []cf.Route, apiResponse net.ApiResponse)

func (CloudControllerRouteRepository) FindByHost

func (repo CloudControllerRouteRepository) FindByHost(host string) (route cf.Route, apiResponse net.ApiResponse)

func (CloudControllerRouteRepository) FindByHostAndDomain

func (repo CloudControllerRouteRepository) FindByHostAndDomain(host, domainName string) (route cf.Route, apiResponse net.ApiResponse)

func (CloudControllerRouteRepository) Unbind

func (repo CloudControllerRouteRepository) Unbind(route cf.Route, app cf.Application) (apiResponse net.ApiResponse)

type CloudControllerServiceAuthTokenRepository

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

func NewCloudControllerServiceAuthTokenRepository

func NewCloudControllerServiceAuthTokenRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerServiceAuthTokenRepository)

func (CloudControllerServiceAuthTokenRepository) Create

func (repo CloudControllerServiceAuthTokenRepository) Create(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)

func (CloudControllerServiceAuthTokenRepository) Delete

func (repo CloudControllerServiceAuthTokenRepository) Delete(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)

func (CloudControllerServiceAuthTokenRepository) FindAll

func (repo CloudControllerServiceAuthTokenRepository) FindAll() (authTokens []cf.ServiceAuthToken, apiResponse net.ApiResponse)

func (CloudControllerServiceAuthTokenRepository) FindByLabelAndProvider

func (repo CloudControllerServiceAuthTokenRepository) FindByLabelAndProvider(label, provider string) (authToken cf.ServiceAuthToken, apiResponse net.ApiResponse)

func (CloudControllerServiceAuthTokenRepository) Update

func (repo CloudControllerServiceAuthTokenRepository) Update(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)

type CloudControllerServiceBindingRepository

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

func NewCloudControllerServiceBindingRepository

func NewCloudControllerServiceBindingRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerServiceBindingRepository)

func (CloudControllerServiceBindingRepository) Create

func (repo CloudControllerServiceBindingRepository) Create(instance cf.ServiceInstance, app cf.Application) (apiResponse net.ApiResponse)

func (CloudControllerServiceBindingRepository) Delete

func (repo CloudControllerServiceBindingRepository) Delete(instance cf.ServiceInstance, app cf.Application) (found bool, apiResponse net.ApiResponse)

type CloudControllerServiceBrokerRepository

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

func NewCloudControllerServiceBrokerRepository

func NewCloudControllerServiceBrokerRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerServiceBrokerRepository)

func (CloudControllerServiceBrokerRepository) Create

func (repo CloudControllerServiceBrokerRepository) Create(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)

func (CloudControllerServiceBrokerRepository) Delete

func (repo CloudControllerServiceBrokerRepository) Delete(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)

func (CloudControllerServiceBrokerRepository) FindAll

func (repo CloudControllerServiceBrokerRepository) FindAll() (serviceBrokers []cf.ServiceBroker, apiResponse net.ApiResponse)

func (CloudControllerServiceBrokerRepository) FindByName

func (repo CloudControllerServiceBrokerRepository) FindByName(name string) (serviceBroker cf.ServiceBroker, apiResponse net.ApiResponse)

func (CloudControllerServiceBrokerRepository) Rename

func (repo CloudControllerServiceBrokerRepository) Rename(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)

func (CloudControllerServiceBrokerRepository) Update

func (repo CloudControllerServiceBrokerRepository) Update(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)

type CloudControllerServiceRepository

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

func NewCloudControllerServiceRepository

func NewCloudControllerServiceRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerServiceRepository)

func (CloudControllerServiceRepository) CreateServiceInstance

func (repo CloudControllerServiceRepository) CreateServiceInstance(name string, plan cf.ServicePlan) (identicalAlreadyExists bool, apiResponse net.ApiResponse)

func (CloudControllerServiceRepository) DeleteService

func (repo CloudControllerServiceRepository) DeleteService(instance cf.ServiceInstance) (apiResponse net.ApiResponse)

func (CloudControllerServiceRepository) FindInstanceByName

func (repo CloudControllerServiceRepository) FindInstanceByName(name string) (instance cf.ServiceInstance, apiResponse net.ApiResponse)

func (CloudControllerServiceRepository) GetServiceOfferings

func (repo CloudControllerServiceRepository) GetServiceOfferings() (offerings []cf.ServiceOffering, apiResponse net.ApiResponse)

func (CloudControllerServiceRepository) RenameService

func (repo CloudControllerServiceRepository) RenameService(instance cf.ServiceInstance, newName string) (apiResponse net.ApiResponse)

type CloudControllerServiceSummaryRepository

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

func NewCloudControllerServiceSummaryRepository

func NewCloudControllerServiceSummaryRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerServiceSummaryRepository)

func (CloudControllerServiceSummaryRepository) GetSummariesInCurrentSpace

func (repo CloudControllerServiceSummaryRepository) GetSummariesInCurrentSpace() (instances []cf.ServiceInstance, apiResponse net.ApiResponse)

type CloudControllerSpaceRepository

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

func NewCloudControllerSpaceRepository

func NewCloudControllerSpaceRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerSpaceRepository)

func (CloudControllerSpaceRepository) Create

func (repo CloudControllerSpaceRepository) Create(name string) (apiResponse net.ApiResponse)

func (CloudControllerSpaceRepository) Delete

func (repo CloudControllerSpaceRepository) Delete(space cf.Space) (apiResponse net.ApiResponse)

func (CloudControllerSpaceRepository) FindAll

func (repo CloudControllerSpaceRepository) FindAll() (spaces []cf.Space, apiResponse net.ApiResponse)

func (CloudControllerSpaceRepository) FindByName

func (repo CloudControllerSpaceRepository) FindByName(name string) (space cf.Space, apiResponse net.ApiResponse)

func (CloudControllerSpaceRepository) FindByNameInOrg

func (repo CloudControllerSpaceRepository) FindByNameInOrg(name string, org cf.Organization) (space cf.Space, apiResponse net.ApiResponse)

func (CloudControllerSpaceRepository) Rename

func (repo CloudControllerSpaceRepository) Rename(space cf.Space, newName string) (apiResponse net.ApiResponse)

type CloudControllerStackRepository

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

func NewCloudControllerStackRepository

func NewCloudControllerStackRepository(config *configuration.Configuration, gateway net.Gateway) (repo CloudControllerStackRepository)

func (CloudControllerStackRepository) FindAll

func (repo CloudControllerStackRepository) FindAll() (stacks []cf.Stack, apiResponse net.ApiResponse)

func (CloudControllerStackRepository) FindByName

func (repo CloudControllerStackRepository) FindByName(name string) (stack cf.Stack, apiResponse net.ApiResponse)

type CloudControllerUserRepository

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

func NewCloudControllerUserRepository

func NewCloudControllerUserRepository(config *configuration.Configuration, uaaGateway net.Gateway, ccGateway net.Gateway, endpointRepo EndpointRepository) (repo CloudControllerUserRepository)

func (CloudControllerUserRepository) Create

func (repo CloudControllerUserRepository) Create(user cf.User) (apiResponse net.ApiResponse)

func (CloudControllerUserRepository) Delete

func (repo CloudControllerUserRepository) Delete(user cf.User) (apiResponse net.ApiResponse)

func (CloudControllerUserRepository) FindAllInOrgByRole

func (repo CloudControllerUserRepository) FindAllInOrgByRole(org cf.Organization) (usersByRole map[string][]cf.User, apiResponse net.ApiResponse)

func (CloudControllerUserRepository) FindAllInSpaceByRole

func (repo CloudControllerUserRepository) FindAllInSpaceByRole(space cf.Space) (usersByRole map[string][]cf.User, apiResponse net.ApiResponse)

func (CloudControllerUserRepository) FindByUsername

func (repo CloudControllerUserRepository) FindByUsername(username string) (user cf.User, apiResponse net.ApiResponse)

func (CloudControllerUserRepository) SetOrgRole

func (repo CloudControllerUserRepository) SetOrgRole(user cf.User, org cf.Organization, role string) (apiResponse net.ApiResponse)

func (CloudControllerUserRepository) SetSpaceRole

func (repo CloudControllerUserRepository) SetSpaceRole(user cf.User, space cf.Space, role string) (apiResponse net.ApiResponse)

func (CloudControllerUserRepository) UnsetOrgRole

func (repo CloudControllerUserRepository) UnsetOrgRole(user cf.User, org cf.Organization, role string) (apiResponse net.ApiResponse)

func (CloudControllerUserRepository) UnsetSpaceRole

func (repo CloudControllerUserRepository) UnsetSpaceRole(user cf.User, space cf.Space, role string) (apiResponse net.ApiResponse)

type DomainEntity

type DomainEntity struct {
	Name                   string
	OwningOrganizationGuid string `json:"owning_organization_guid"`
	Spaces                 []Resource
}

type DomainRepository

type DomainRepository interface {
	FindDefaultAppDomain() (domain cf.Domain, apiResponse net.ApiResponse)
	FindAllByOrg(org cf.Organization) (domains []cf.Domain, apiResponse net.ApiResponse)
	FindByName(name string) (domain cf.Domain, apiResponse net.ApiResponse)
	FindByNameInCurrentSpace(name string) (domain cf.Domain, apiResponse net.ApiResponse)
	FindByNameInOrg(name string, owningOrg cf.Organization) (domain cf.Domain, apiResponse net.ApiResponse)
	Create(domainToCreate cf.Domain, owningOrg cf.Organization) (createdDomain cf.Domain, apiResponse net.ApiResponse)
	CreateSharedDomain(domainToShare cf.Domain) (apiResponse net.ApiResponse)
	Delete(domain cf.Domain) (apiResponse net.ApiResponse)
	Map(domain cf.Domain, space cf.Space) (apiResponse net.ApiResponse)
	Unmap(domain cf.Domain, space cf.Space) (apiResponse net.ApiResponse)
}

type DomainResource

type DomainResource struct {
	Resource
	Entity DomainEntity
}

type DomainSummary

type DomainSummary struct {
	Guid string
	Name string
}

type EndpointRepository

type EndpointRepository interface {
	UpdateEndpoint(endpoint string) (finalEndpoint string, apiResponse net.ApiResponse)
	GetEndpoint(name cf.EndpointType) (endpoint string, apiResponse net.ApiResponse)
}

type Entity

type Entity struct {
	Name string
}

type EventEntity

type EventEntity struct {
	Timestamp       time.Time
	ExitDescription string `json:"exit_description"`
	ExitStatus      int    `json:"exit_status"`
	InstanceIndex   int    `json:"instance_index"`
}

type EventResource

type EventResource struct {
	Resource
	Entity EventEntity
}

type InstanceApiResponse

type InstanceApiResponse struct {
	State string
	Since float64
}

type InstanceStatsApiResponse

type InstanceStatsApiResponse struct {
	Stats struct {
		DiskQuota uint64 `json:"disk_quota"`
		MemQuota  uint64 `json:"mem_quota"`
		Usage     struct {
			Cpu  float64
			Disk uint64
			Mem  uint64
		}
	}
}

type InstancesApiResponse

type InstancesApiResponse map[string]InstanceApiResponse

type Item

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

type LoggregatorLogsRepository

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

func NewLoggregatorLogsRepository

func NewLoggregatorLogsRepository(config *configuration.Configuration, endpointRepo EndpointRepository) (repo LoggregatorLogsRepository)

func (LoggregatorLogsRepository) RecentLogsFor

func (repo LoggregatorLogsRepository) RecentLogsFor(app cf.Application, onConnect func(), logChan chan *logmessage.Message) (err error)

func (LoggregatorLogsRepository) TailLogsFor

func (repo LoggregatorLogsRepository) TailLogsFor(app cf.Application, onConnect func(), logChan chan *logmessage.Message, stopLoggingChan chan bool, printTimeBuffer time.Duration) error

type LogsRepository

type LogsRepository interface {
	RecentLogsFor(app cf.Application, onConnect func(), logChan chan *logmessage.Message) (err error)
	TailLogsFor(app cf.Application, onConnect func(), logChan chan *logmessage.Message, stopLoggingChan chan bool, printInterval time.Duration) (err error)
}

type Metadata

type Metadata struct {
	Guid string
	Url  string
}

type OrganizationEntity

type OrganizationEntity struct {
	Name    string
	Spaces  []Resource
	Domains []Resource
}

type OrganizationRepository

type OrganizationRepository interface {
	FindAll() (orgs []cf.Organization, apiResponse net.ApiResponse)
	FindByName(name string) (org cf.Organization, apiResponse net.ApiResponse)
	Create(name string) (apiResponse net.ApiResponse)
	Rename(org cf.Organization, name string) (apiResponse net.ApiResponse)
	Delete(org cf.Organization) (apiResponse net.ApiResponse)
}

type OrganizationResource

type OrganizationResource struct {
	Resource
	Entity OrganizationEntity
}

type PaginatedApplicationResources

type PaginatedApplicationResources struct {
	Resources []ApplicationResource
}

type PaginatedAuthTokenResources

type PaginatedAuthTokenResources struct {
	Resources []AuthTokenResource
}

type PaginatedBuildpackResources

type PaginatedBuildpackResources struct {
	Resources []BuildpackResource
}

type PaginatedDomainResources

type PaginatedDomainResources struct {
	Resources []DomainResource
}

type PaginatedEventResources

type PaginatedEventResources struct {
	Resources []EventResource
	NextURL   string `json:"next_url"`
}

type PaginatedOrganizationResources

type PaginatedOrganizationResources struct {
	Resources []OrganizationResource
}

type PaginatedQuotaResources

type PaginatedQuotaResources struct {
	Resources []QuotaResource
}

type PaginatedResources

type PaginatedResources struct {
	Resources []Resource
}

type PaginatedRouteResources

type PaginatedRouteResources struct {
	Resources []RouteResource `json:"resources"`
}

type PaginatedServiceBrokerResources

type PaginatedServiceBrokerResources struct {
	ServiceBrokers []ServiceBrokerResource `json:"resources"`
}

type PaginatedServiceInstanceResources

type PaginatedServiceInstanceResources struct {
	Resources []ServiceInstanceResource
}

type PaginatedServiceOfferingResources

type PaginatedServiceOfferingResources struct {
	Resources []ServiceOfferingResource
}

type PaginatedSpaceResources

type PaginatedSpaceResources struct {
	Resources []SpaceResource
}

type PaginatedStackResources

type PaginatedStackResources struct {
	Resources []StackResource
}

type PaginatedUserResources

type PaginatedUserResources struct {
	NextUrl   string `json:"next_url"`
	Resources []UserResource
}

type PasswordRepository

type PasswordRepository interface {
	GetScore(password string) (string, net.ApiResponse)
	UpdatePassword(old string, new string) net.ApiResponse
}

type PriorityQueue

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

func NewPriorityMessageQueue

func NewPriorityMessageQueue(printTimeBuffer time.Duration) *PriorityQueue

func (PriorityQueue) Len

func (pq PriorityQueue) Len() int

func (PriorityQueue) Less

func (pq PriorityQueue) Less(i, j int) bool

func (*PriorityQueue) NextTimestamp

func (pq *PriorityQueue) NextTimestamp() int64

func (*PriorityQueue) Pop

func (pq *PriorityQueue) Pop() interface{}

func (*PriorityQueue) PopMessage

func (pq *PriorityQueue) PopMessage() *logmessage.Message

func (*PriorityQueue) Push

func (pq *PriorityQueue) Push(x interface{})

func (*PriorityQueue) PushMessage

func (pq *PriorityQueue) PushMessage(message *logmessage.Message)

func (PriorityQueue) Swap

func (pq PriorityQueue) Swap(i, j int)

type QuotaEntity

type QuotaEntity struct {
	Name        string
	MemoryLimit uint64 `json:"memory_limit"`
}

type QuotaRepository

type QuotaRepository interface {
	FindAll() (quotas []cf.Quota, apiResponse net.ApiResponse)
	FindByName(name string) (quota cf.Quota, apiResponse net.ApiResponse)
	Update(org cf.Organization, quota cf.Quota) (apiResponse net.ApiResponse)
}

type QuotaResource

type QuotaResource struct {
	Resource
	Entity QuotaEntity
}

type RemoteEndpointRepository

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

func (RemoteEndpointRepository) GetEndpoint

func (repo RemoteEndpointRepository) GetEndpoint(name cf.EndpointType) (endpoint string, apiResponse net.ApiResponse)

func (RemoteEndpointRepository) UpdateEndpoint

func (repo RemoteEndpointRepository) UpdateEndpoint(endpoint string) (finalEndpoint string, apiResponse net.ApiResponse)

type RepositoryLocator

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

func NewRepositoryLocator

func NewRepositoryLocator(config *configuration.Configuration, configRepo configuration.ConfigurationRepository, gatewaysByName map[string]net.Gateway) (loc RepositoryLocator)

func (RepositoryLocator) GetAppEventsRepository

func (locator RepositoryLocator) GetAppEventsRepository() AppEventsRepository

func (RepositoryLocator) GetAppFilesRepository

func (locator RepositoryLocator) GetAppFilesRepository() AppFilesRepository

func (RepositoryLocator) GetAppSummaryRepository

func (locator RepositoryLocator) GetAppSummaryRepository() AppSummaryRepository

func (RepositoryLocator) GetApplicationBitsRepository

func (locator RepositoryLocator) GetApplicationBitsRepository() ApplicationBitsRepository

func (RepositoryLocator) GetApplicationRepository

func (locator RepositoryLocator) GetApplicationRepository() ApplicationRepository

func (RepositoryLocator) GetAuthenticationRepository

func (locator RepositoryLocator) GetAuthenticationRepository() AuthenticationRepository

func (RepositoryLocator) GetBuildpackBitsRepository

func (locator RepositoryLocator) GetBuildpackBitsRepository() BuildpackBitsRepository

func (RepositoryLocator) GetBuildpackRepository

func (locator RepositoryLocator) GetBuildpackRepository() BuildpackRepository

func (RepositoryLocator) GetDomainRepository

func (locator RepositoryLocator) GetDomainRepository() DomainRepository

func (RepositoryLocator) GetEndpointRepository

func (locator RepositoryLocator) GetEndpointRepository() EndpointRepository

func (RepositoryLocator) GetLogsRepository

func (locator RepositoryLocator) GetLogsRepository() LogsRepository

func (RepositoryLocator) GetOrganizationRepository

func (locator RepositoryLocator) GetOrganizationRepository() OrganizationRepository

func (RepositoryLocator) GetPasswordRepository

func (locator RepositoryLocator) GetPasswordRepository() PasswordRepository

func (RepositoryLocator) GetQuotaRepository

func (locator RepositoryLocator) GetQuotaRepository() QuotaRepository

func (RepositoryLocator) GetRouteRepository

func (locator RepositoryLocator) GetRouteRepository() RouteRepository

func (RepositoryLocator) GetServiceAuthTokenRepository

func (locator RepositoryLocator) GetServiceAuthTokenRepository() ServiceAuthTokenRepository

func (RepositoryLocator) GetServiceBindingRepository

func (locator RepositoryLocator) GetServiceBindingRepository() ServiceBindingRepository

func (RepositoryLocator) GetServiceBrokerRepository

func (locator RepositoryLocator) GetServiceBrokerRepository() ServiceBrokerRepository

func (RepositoryLocator) GetServiceRepository

func (locator RepositoryLocator) GetServiceRepository() ServiceRepository

func (RepositoryLocator) GetServiceSummaryRepository

func (locator RepositoryLocator) GetServiceSummaryRepository() ServiceSummaryRepository

func (RepositoryLocator) GetSpaceRepository

func (locator RepositoryLocator) GetSpaceRepository() SpaceRepository

func (RepositoryLocator) GetStackRepository

func (locator RepositoryLocator) GetStackRepository() StackRepository

func (RepositoryLocator) GetUserProvidedServiceInstanceRepository

func (locator RepositoryLocator) GetUserProvidedServiceInstanceRepository() UserProvidedServiceInstanceRepository

func (RepositoryLocator) GetUserRepository

func (locator RepositoryLocator) GetUserRepository() UserRepository

type Resource

type Resource struct {
	Metadata Metadata
	Entity   Entity
}

type RouteEntity

type RouteEntity struct {
	Host   string
	Domain DomainResource
	Space  SpaceResource
	Apps   []Resource
}

type RouteRepository

type RouteRepository interface {
	FindAll() (routes []cf.Route, apiResponse net.ApiResponse)
	FindByHost(host string) (route cf.Route, apiResponse net.ApiResponse)
	FindByHostAndDomain(host, domain string) (route cf.Route, apiResponse net.ApiResponse)
	Create(newRoute cf.Route, domain cf.Domain) (createdRoute cf.Route, apiResponse net.ApiResponse)
	CreateInSpace(newRoute cf.Route, domain cf.Domain, space cf.Space) (createdRoute cf.Route, apiResponse net.ApiResponse)
	Bind(route cf.Route, app cf.Application) (apiResponse net.ApiResponse)
	Unbind(route cf.Route, app cf.Application) (apiResponse net.ApiResponse)
	Delete(route cf.Route) (apiResponse net.ApiResponse)
}

type RouteResource

type RouteResource struct {
	Resource
	Entity RouteEntity
}

type RouteSummary

type RouteSummary struct {
	Guid   string
	Host   string
	Domain DomainSummary
}

type ScoreResponse

type ScoreResponse struct {
	Score         int
	RequiredScore int
}

type ServiceAuthTokenRepository

type ServiceAuthTokenRepository interface {
	FindAll() (authTokens []cf.ServiceAuthToken, apiResponse net.ApiResponse)
	FindByLabelAndProvider(label, provider string) (authToken cf.ServiceAuthToken, apiResponse net.ApiResponse)
	Create(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)
	Update(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)
	Delete(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)
}

type ServiceBindingEntity

type ServiceBindingEntity struct {
	AppGuid string `json:"app_guid"`
}

type ServiceBindingRepository

type ServiceBindingRepository interface {
	Create(instance cf.ServiceInstance, app cf.Application) (apiResponse net.ApiResponse)
	Delete(instance cf.ServiceInstance, app cf.Application) (found bool, apiResponse net.ApiResponse)
}

type ServiceBindingResource

type ServiceBindingResource struct {
	Metadata Metadata
	Entity   ServiceBindingEntity
}

type ServiceBrokerEntity

type ServiceBrokerEntity struct {
	Guid     string
	Name     string
	Password string `json:"auth_password"`
	Username string `json:"auth_username"`
	Url      string `json:"broker_url"`
}

type ServiceBrokerRepository

type ServiceBrokerRepository interface {
	FindAll() (serviceBrokers []cf.ServiceBroker, apiResponse net.ApiResponse)
	FindByName(name string) (serviceBroker cf.ServiceBroker, apiResponse net.ApiResponse)
	Create(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
	Update(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
	Rename(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
	Delete(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
}

type ServiceBrokerResource

type ServiceBrokerResource struct {
	Resource
	Entity ServiceBrokerEntity
}

type ServiceInstanceEntity

type ServiceInstanceEntity struct {
	Name            string
	ServiceBindings []ServiceBindingResource `json:"service_bindings"`
	ServicePlan     ServicePlanResource      `json:"service_plan"`
}

type ServiceInstanceResource

type ServiceInstanceResource struct {
	Metadata Metadata
	Entity   ServiceInstanceEntity
}

type ServiceInstanceSummary

type ServiceInstanceSummary struct {
	Name        string
	ServicePlan ServicePlanSummary `json:"service_plan"`
}

type ServiceInstanceSummaryApp

type ServiceInstanceSummaryApp struct {
	Name         string
	ServiceNames []string `json:"service_names"`
}

type ServiceInstancesSummaries

type ServiceInstancesSummaries struct {
	Apps             []ServiceInstanceSummaryApp
	ServiceInstances []ServiceInstanceSummary `json:"services"`
}

type ServiceOfferingEntity

type ServiceOfferingEntity struct {
	Label            string
	Version          string
	Description      string
	DocumentationUrl string `json:"documentation_url"`
	Provider         string
	ServicePlans     []ServicePlanResource `json:"service_plans"`
}

type ServiceOfferingResource

type ServiceOfferingResource struct {
	Metadata Metadata
	Entity   ServiceOfferingEntity
}

type ServiceOfferingSummary

type ServiceOfferingSummary struct {
	Label    string
	Provider string
	Version  string
}

type ServicePlanEntity

type ServicePlanEntity struct {
	Name            string
	ServiceOffering ServiceOfferingResource `json:"service"`
}

type ServicePlanResource

type ServicePlanResource struct {
	Metadata Metadata
	Entity   ServicePlanEntity
}

type ServicePlanSummary

type ServicePlanSummary struct {
	Name            string
	Guid            string
	ServiceOffering ServiceOfferingSummary `json:"service"`
}

type ServiceRepository

type ServiceRepository interface {
	GetServiceOfferings() (offerings []cf.ServiceOffering, apiResponse net.ApiResponse)
	FindInstanceByName(name string) (instance cf.ServiceInstance, apiResponse net.ApiResponse)
	CreateServiceInstance(name string, plan cf.ServicePlan) (identicalAlreadyExists bool, apiResponse net.ApiResponse)
	RenameService(instance cf.ServiceInstance, newName string) (apiResponse net.ApiResponse)
	DeleteService(instance cf.ServiceInstance) (apiResponse net.ApiResponse)
}

type ServiceSummaryRepository

type ServiceSummaryRepository interface {
	GetSummariesInCurrentSpace() (instances []cf.ServiceInstance, apiResponse net.ApiResponse)
}

type SpaceEntity

type SpaceEntity struct {
	Name             string
	Organization     Resource
	Applications     []Resource `json:"apps"`
	Domains          []Resource
	ServiceInstances []Resource `json:"service_instances"`
}

type SpaceRepository

type SpaceRepository interface {
	FindAll() (spaces []cf.Space, apiResponse net.ApiResponse)
	FindByName(name string) (space cf.Space, apiResponse net.ApiResponse)
	FindByNameInOrg(name string, org cf.Organization) (space cf.Space, apiResponse net.ApiResponse)
	Create(name string) (apiResponse net.ApiResponse)
	Rename(space cf.Space, newName string) (apiResponse net.ApiResponse)
	Delete(space cf.Space) (apiResponse net.ApiResponse)
}

type SpaceResource

type SpaceResource struct {
	Metadata Metadata
	Entity   SpaceEntity
}

type StackEntity

type StackEntity struct {
	Name        string
	Description string
}

type StackRepository

type StackRepository interface {
	FindByName(name string) (stack cf.Stack, apiResponse net.ApiResponse)
	FindAll() (stacks []cf.Stack, apiResponse net.ApiResponse)
}

type StackResource

type StackResource struct {
	Resource
	Entity StackEntity
}

type StatsApiResponse

type StatsApiResponse map[string]InstanceStatsApiResponse

type UAAAuthenticationRepository

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

func NewUAAAuthenticationRepository

func NewUAAAuthenticationRepository(gateway net.Gateway, configRepo configuration.ConfigurationRepository) (uaa UAAAuthenticationRepository)

func (UAAAuthenticationRepository) Authenticate

func (uaa UAAAuthenticationRepository) Authenticate(email string, password string) (apiResponse net.ApiResponse)

func (UAAAuthenticationRepository) RefreshAuthToken

func (uaa UAAAuthenticationRepository) RefreshAuthToken() (updatedToken string, apiResponse net.ApiResponse)

type UploadProgressEntity

type UploadProgressEntity struct {
	Status string
}

type UploadProgressResponse

type UploadProgressResponse struct {
	Metadata Metadata
	Entity   UploadProgressEntity
}

type UserEntity

type UserEntity struct {
	Entity
	Admin bool
}

type UserProvidedServiceInstanceRepository

type UserProvidedServiceInstanceRepository interface {
	Create(serviceInstance cf.ServiceInstance) (apiResponse net.ApiResponse)
	Update(serviceInstance cf.ServiceInstance) (apiResponse net.ApiResponse)
}

type UserRepository

type UserRepository interface {
	FindByUsername(username string) (user cf.User, apiResponse net.ApiResponse)
	FindAllInOrgByRole(org cf.Organization) (usersByRole map[string][]cf.User, apiResponse net.ApiResponse)
	FindAllInSpaceByRole(space cf.Space) (usersByRole map[string][]cf.User, apiResponse net.ApiResponse)
	Create(user cf.User) (apiResponse net.ApiResponse)
	Delete(user cf.User) (apiResponse net.ApiResponse)
	SetOrgRole(user cf.User, org cf.Organization, role string) (apiResponse net.ApiResponse)
	UnsetOrgRole(user cf.User, org cf.Organization, role string) (apiResponse net.ApiResponse)
	SetSpaceRole(user cf.User, org cf.Space, role string) (apiResponse net.ApiResponse)
	UnsetSpaceRole(user cf.User, org cf.Space, role string) (apiResponse net.ApiResponse)
}

type UserResource

type UserResource struct {
	Resource
	Entity UserEntity
}

Jump to

Keyboard shortcuts

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