Documentation ¶
Index ¶
- Variables
- type AppFileResource
- type AppRouteEntity
- type AppRouteResource
- type ApplicationEntity
- type ApplicationResource
- type AuthTokenEntity
- type AuthTokenResource
- type BuildpackEntity
- type BuildpackResource
- type DomainEntity
- type DomainResource
- type EventResource
- type EventResourceNewV2
- type EventResourceOldV2
- type Metadata
- type OrganizationEntity
- type OrganizationResource
- type PaginatedApplicationResources
- type PaginatedAuthTokenResources
- type PaginatedQuotaResources
- type PaginatedSecurityGroupResources
- type PaginatedServiceInstanceResources
- type PaginatedServiceOfferingResources
- type PaginatedStackResources
- type QuotaResource
- type Resource
- type RouteEntity
- type RouteResource
- type SecurityGroup
- type SecurityGroupResource
- type ServiceBindingEntity
- type ServiceBindingResource
- type ServiceBrokerEntity
- type ServiceBrokerResource
- type ServiceInstanceEntity
- type ServiceInstanceResource
- type ServiceMigrateV1ToV2Response
- type ServiceOfferingEntity
- type ServiceOfferingResource
- type ServicePlanDescription
- type ServicePlanEntity
- type ServicePlanResource
- type SpaceEntity
- type SpaceResource
- type StackEntity
- type StackResource
- type UAAUserFields
- type UAAUserResource
- type UAAUserResourceEmail
- type UAAUserResourceName
- type UAAUserResources
- type UserEntity
- type UserResource
Constants ¶
This section is empty.
Variables ¶
View Source
var T goi18n.TranslateFunc
Functions ¶
This section is empty.
Types ¶
type AppFileResource ¶
type AppRouteEntity ¶
type AppRouteResource ¶
type AppRouteResource struct { Resource Entity AppRouteEntity }
func (AppRouteResource) ToFields ¶
func (resource AppRouteResource) ToFields() (route models.RouteSummary)
func (AppRouteResource) ToModel ¶
func (resource AppRouteResource) ToModel() (route models.RouteSummary)
type ApplicationEntity ¶
type ApplicationEntity struct { Name *string `json:"name,omitempty"` Command *string `json:"command,omitempty"` State *string `json:"state,omitempty"` SpaceGuid *string `json:"space_guid,omitempty"` Instances *int `json:"instances,omitempty"` Memory *uint64 `json:"memory,omitempty"` DiskQuota *uint64 `json:"disk_quota,omitempty"` StackGuid *string `json:"stack_guid,omitempty"` Stack *StackResource `json:"stack,omitempty"` Routes *[]AppRouteResource `json:"routes,omitempty"` Buildpack *string `json:"buildpack,omitempty"` EnvironmentJson *map[string]string `json:"environment_json,omitempty"` HealthCheckTimeout *int `json:"health_check_timeout,omitempty"` }
func NewApplicationEntityFromAppParams ¶
func NewApplicationEntityFromAppParams(app models.AppParams) ApplicationEntity
type ApplicationResource ¶
type ApplicationResource struct { Resource Entity ApplicationEntity }
func (ApplicationResource) ToFields ¶
func (resource ApplicationResource) ToFields() (app models.ApplicationFields)
func (ApplicationResource) ToModel ¶
func (resource ApplicationResource) ToModel() (app models.Application)
type AuthTokenEntity ¶
type AuthTokenResource ¶
type AuthTokenResource struct { Resource Entity AuthTokenEntity }
func (AuthTokenResource) ToFields ¶
func (resource AuthTokenResource) ToFields() (authToken models.ServiceAuthTokenFields)
type BuildpackEntity ¶
type BuildpackResource ¶
type BuildpackResource struct { Resource Entity BuildpackEntity }
func (BuildpackResource) ToFields ¶
func (resource BuildpackResource) ToFields() models.Buildpack
type DomainEntity ¶
type DomainResource ¶
type DomainResource struct { Resource Entity DomainEntity }
func (DomainResource) ToFields ¶
func (resource DomainResource) ToFields() models.DomainFields
type EventResource ¶
type EventResource interface {
ToFields() models.EventFields
}
type EventResourceNewV2 ¶
type EventResourceNewV2 struct { Resource Entity struct { Timestamp time.Time Type string ActorName string `json:"actor_name"` Metadata map[string]interface{} } }
func (EventResourceNewV2) ToFields ¶
func (resource EventResourceNewV2) ToFields() models.EventFields
type EventResourceOldV2 ¶
type EventResourceOldV2 struct { Resource Entity struct { Timestamp time.Time ExitDescription string `json:"exit_description"` ExitStatus int `json:"exit_status"` InstanceIndex int `json:"instance_index"` } }
func (EventResourceOldV2) ToFields ¶
func (resource EventResourceOldV2) ToFields() models.EventFields
type OrganizationEntity ¶
type OrganizationEntity struct { Name string QuotaDefinition QuotaResource `json:"quota_definition"` Spaces []SpaceResource Domains []DomainResource }
type OrganizationResource ¶
type OrganizationResource struct { Resource Entity OrganizationEntity }
func (OrganizationResource) ToFields ¶
func (resource OrganizationResource) ToFields() (fields models.OrganizationFields)
func (OrganizationResource) ToModel ¶
func (resource OrganizationResource) ToModel() (org models.Organization)
type PaginatedApplicationResources ¶
type PaginatedApplicationResources struct {
Resources []ApplicationResource
}
type PaginatedAuthTokenResources ¶
type PaginatedAuthTokenResources struct {
Resources []AuthTokenResource
}
type PaginatedQuotaResources ¶
type PaginatedQuotaResources struct {
Resources []QuotaResource
}
type PaginatedSecurityGroupResources ¶
type PaginatedSecurityGroupResources struct {
Resources []SecurityGroupResource
}
type PaginatedServiceInstanceResources ¶
type PaginatedServiceInstanceResources struct { TotalResults int `json:"total_results"` Resources []ServiceInstanceResource }
type PaginatedServiceOfferingResources ¶
type PaginatedServiceOfferingResources struct {
Resources []ServiceOfferingResource
}
type PaginatedStackResources ¶
type PaginatedStackResources struct {
Resources []StackResource
}
type QuotaResource ¶
type QuotaResource struct { Resource Entity models.QuotaFields }
func (QuotaResource) ToFields ¶
func (resource QuotaResource) ToFields() (quota models.QuotaFields)
type RouteEntity ¶
type RouteEntity struct { Host string Domain DomainResource Space SpaceResource Apps []ApplicationResource }
type RouteResource ¶
type RouteResource struct { Resource Entity RouteEntity }
func (RouteResource) ToFields ¶
func (resource RouteResource) ToFields() (fields models.Route)
func (RouteResource) ToModel ¶
func (resource RouteResource) ToModel() (route models.Route)
type SecurityGroup ¶
type SecurityGroup struct { models.SecurityGroupFields Spaces []SpaceResource }
type SecurityGroupResource ¶
type SecurityGroupResource struct { Resource Entity SecurityGroup }
func (SecurityGroupResource) ToFields ¶
func (resource SecurityGroupResource) ToFields() (fields models.SecurityGroupFields)
func (SecurityGroupResource) ToModel ¶
func (resource SecurityGroupResource) ToModel() (asg models.SecurityGroup)
type ServiceBindingEntity ¶
type ServiceBindingEntity struct {
AppGuid string `json:"app_guid"`
}
type ServiceBindingResource ¶
type ServiceBindingResource struct { Resource Entity ServiceBindingEntity }
func (ServiceBindingResource) ToFields ¶
func (resource ServiceBindingResource) ToFields() (fields models.ServiceBindingFields)
type ServiceBrokerEntity ¶
type ServiceBrokerResource ¶
type ServiceBrokerResource struct { Resource Entity ServiceBrokerEntity }
func (ServiceBrokerResource) ToFields ¶
func (resource ServiceBrokerResource) ToFields() (fields models.ServiceBroker)
type ServiceInstanceEntity ¶
type ServiceInstanceEntity struct { Name string ServiceBindings []ServiceBindingResource `json:"service_bindings"` ServicePlan ServicePlanResource `json:"service_plan"` }
type ServiceInstanceResource ¶
type ServiceInstanceResource struct { Resource Entity ServiceInstanceEntity }
func (ServiceInstanceResource) ToFields ¶
func (resource ServiceInstanceResource) ToFields() (fields models.ServiceInstanceFields)
func (ServiceInstanceResource) ToModel ¶
func (resource ServiceInstanceResource) ToModel() (instance models.ServiceInstance)
type ServiceMigrateV1ToV2Response ¶
type ServiceMigrateV1ToV2Response struct {
ChangedCount int `json:"changed_count"`
}
type ServiceOfferingEntity ¶
type ServiceOfferingResource ¶
type ServiceOfferingResource struct { Resource Entity ServiceOfferingEntity }
func (ServiceOfferingResource) ToFields ¶
func (resource ServiceOfferingResource) ToFields() (fields models.ServiceOfferingFields)
func (ServiceOfferingResource) ToModel ¶
func (resource ServiceOfferingResource) ToModel() (offering models.ServiceOffering)
type ServicePlanDescription ¶
type ServicePlanDescription struct { ServiceLabel string ServicePlanName string ServiceProvider string }
func (ServicePlanDescription) String ¶
func (planDesc ServicePlanDescription) String() string
type ServicePlanEntity ¶
type ServicePlanEntity struct { Name string ServiceOfferingGuid string `json:"service_guid"` ServiceOffering ServiceOfferingResource `json:"service"` }
type ServicePlanResource ¶
type ServicePlanResource struct { Resource Entity ServicePlanEntity }
func (ServicePlanResource) ToFields ¶
func (resource ServicePlanResource) ToFields() (fields models.ServicePlanFields)
type SpaceEntity ¶
type SpaceEntity struct { Name string Organization OrganizationResource Applications []ApplicationResource `json:"apps"` Domains []DomainResource ServiceInstances []ServiceInstanceResource `json:"service_instances"` SecurityGroups []SecurityGroupResource `json:"security_groups"` }
type SpaceResource ¶
type SpaceResource struct { Resource Entity SpaceEntity }
func (SpaceResource) ToFields ¶
func (resource SpaceResource) ToFields() (fields models.SpaceFields)
func (SpaceResource) ToModel ¶
func (resource SpaceResource) ToModel() (space models.Space)
type StackEntity ¶
type StackResource ¶
type StackResource struct { Resource Entity StackEntity }
func (StackResource) ToFields ¶
func (resource StackResource) ToFields() *models.Stack
type UAAUserFields ¶
type UAAUserFields struct {
Id string
}
type UAAUserResource ¶
type UAAUserResource struct { Username string `json:"userName"` Emails []UAAUserResourceEmail `json:"emails"` Password string `json:"password"` Name UAAUserResourceName `json:"name"` }
func NewUAAUserResource ¶
func NewUAAUserResource(username, password string) UAAUserResource
type UAAUserResourceEmail ¶
type UAAUserResourceEmail struct {
Value string `json:"value"`
}
type UAAUserResourceName ¶
type UAAUserResources ¶
type UserEntity ¶
type UserResource ¶
type UserResource struct { Resource Entity UserEntity }
func (UserResource) ToFields ¶
func (resource UserResource) ToFields() models.UserFields
Source Files ¶
Click to show internal directories.
Click to hide internal directories.