Documentation
¶
Index ¶
- 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 FeatureFlagResource
- type Metadata
- type OrganizationEntity
- type OrganizationResource
- type PaginatedApplicationResources
- type PaginatedAuthTokenResources
- type PaginatedQuotaResources
- type PaginatedSecurityGroupResources
- type PaginatedServiceInstanceResources
- type PaginatedServiceOfferingResources
- type PaginatedSpaceQuotaResources
- 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 ServicePlanVisibilityResource
- type SpaceEntity
- type SpaceQuotaResource
- 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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppFileResource ¶
type AppFileResource struct {
Path string `json:"fn"`
Sha1 string `json:"sha1"`
Size int64 `json:"size"`
}
type AppRouteEntity ¶
type AppRouteEntity struct {
Host string
Domain struct {
Resource
Entity struct {
Name string
}
}
}
type AppRouteResource ¶
type AppRouteResource struct {
Resource
Entity AppRouteEntity
}
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 *int64 `json:"memory,omitempty"`
DiskQuota *int64 `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
}
type AuthTokenEntity ¶
type AuthTokenEntity struct {
Label string
Provider string
}
type AuthTokenResource ¶
type AuthTokenResource struct {
Resource
Entity AuthTokenEntity
}
type BuildpackEntity ¶
type BuildpackEntity struct {
Name string `json:"name"`
Position *int `json:"position,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Key string `json:"key,omitempty"`
Filename string `json:"filename,omitempty"`
Locked *bool `json:"locked,omitempty"`
}
type BuildpackResource ¶
type BuildpackResource struct {
Resource
Entity BuildpackEntity
}
type DomainEntity ¶
type DomainEntity struct {
Name string `json:"name"`
OwningOrganizationGuid string `json:"owning_organization_guid,omitempty"`
Wildcard bool `json:"wildcard"`
}
type DomainResource ¶
type DomainResource struct {
Resource
Entity DomainEntity
}
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{}
}
}
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"`
}
}
type FeatureFlagResource ¶
type FeatureFlagResource struct {
Entity models.FeatureFlag
}
type Metadata ¶
type Metadata struct {
Guid string `json:"guid"`
Url string `json:"url,omitempty"`
}
type OrganizationEntity ¶
type OrganizationEntity struct {
Name string
QuotaDefinition QuotaResource `json:"quota_definition"`
Spaces []SpaceResource
Domains []DomainResource
SpaceQuotas []SpaceQuotaResource `json:"space_quota_definitions"`
}
type OrganizationResource ¶
type OrganizationResource struct {
Resource
Entity OrganizationEntity
}
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 PaginatedSpaceQuotaResources ¶
type PaginatedSpaceQuotaResources struct {
Resources []SpaceQuotaResource
}
type PaginatedStackResources ¶
type PaginatedStackResources struct {
Resources []StackResource
}
type QuotaResource ¶
type QuotaResource struct {
Resource
Entity models.QuotaFields
}
type RouteEntity ¶
type RouteEntity struct {
Host string
Domain DomainResource
Space SpaceResource
Apps []ApplicationResource
}
type RouteResource ¶
type RouteResource struct {
Resource
Entity RouteEntity
}
type SecurityGroup ¶
type SecurityGroup struct {
models.SecurityGroupFields
Spaces []SpaceResource
}
type SecurityGroupResource ¶
type SecurityGroupResource struct {
Resource
Entity SecurityGroup
}
type ServiceBindingEntity ¶
type ServiceBindingEntity struct {
AppGuid string `json:"app_guid"`
}
type ServiceBindingResource ¶
type ServiceBindingResource struct {
Resource
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 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 {
Resource
Entity ServiceInstanceEntity
}
type ServiceMigrateV1ToV2Response ¶
type ServiceMigrateV1ToV2Response struct {
ChangedCount int `json:"changed_count"`
}
type ServiceOfferingEntity ¶
type ServiceOfferingEntity struct {
Label string `json:"label"`
Version string `json:"version"`
Description string `json:"description"`
DocumentationUrl string `json:"documentation_url"`
Provider string `json:"provider"`
BrokerGuid string `json:"service_broker_guid"`
ServicePlans []ServicePlanResource `json:"service_plans"`
}
type ServiceOfferingResource ¶
type ServiceOfferingResource struct {
Resource
Entity ServiceOfferingEntity
}
type ServicePlanDescription ¶
type ServicePlanDescription struct {
ServiceLabel string
ServicePlanName string
ServiceProvider string
}
type ServicePlanEntity ¶
type ServicePlanEntity struct {
Name string
Free bool
Public bool
Active bool
Description string `json:"description"`
ServiceOfferingGuid string `json:"service_guid"`
ServiceOffering ServiceOfferingResource `json:"service"`
}
type ServicePlanResource ¶
type ServicePlanResource struct {
Resource
Entity ServicePlanEntity
}
type ServicePlanVisibilityResource ¶
type ServicePlanVisibilityResource struct {
Resource
Entity models.ServicePlanVisibilityFields
}
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"`
SpaceQuotaGuid string `json:"space_quota_definition_guid"`
}
type SpaceQuotaResource ¶
type SpaceQuotaResource struct {
Resource
Entity models.SpaceQuota
}
type SpaceResource ¶
type SpaceResource struct {
Resource
Entity SpaceEntity
}
type StackEntity ¶
type StackEntity struct {
Name string
Description string
}
type StackResource ¶
type StackResource struct {
Resource
Entity StackEntity
}
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 UAAUserResourceName struct {
GivenName string `json:"givenName"`
FamilyName string `json:"familyName"`
}
type UAAUserResources ¶
type UAAUserResources struct {
Resources []struct {
Id string
Username string
}
}
type UserEntity ¶
type UserEntity struct {
Name string
Admin bool
}
type UserResource ¶
type UserResource struct {
Resource
Entity UserEntity
}
Source Files
¶
- applications.go
- auth_tokens.go
- buildpacks.go
- domains.go
- events.go
- feature_flags.go
- organizations.go
- quotas.go
- resources.go
- routes.go
- security_groups.go
- service_bindings.go
- service_brokers.go
- service_instances.go
- service_offerings.go
- service_plan_visibility.go
- service_plans.go
- space_quotas.go
- spaces.go
- stacks.go
- users.go
Click to show internal directories.
Click to hide internal directories.