Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSummary ¶
type Application ¶
type Application struct {
GUID string `json:"guid,omitempty"`
Name string `json:"name,omitempty"`
State constant.ApplicationState `json:"state,omitempty"`
Metadata *Metadata `json:"metadata,omitempty"`
Relationships resources.Relationships `json:"relationships,omitempty"`
Lifecycle Lifecycle `json:"lifecycle,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type CFObjects ¶
type CFObjects struct {
Info Info `json:"info"`
Orgs map[string]resources.Organization `json:"orgs"`
OrgQuotas map[string]Quota `json:"org_quotas"`
Spaces map[string]resources.Space `json:"spaces"`
SpaceQuotas map[string]Quota `json:"space_quotas"`
Apps map[string]Application `json:"apps"`
Droplets map[string]resources.Droplet `json:"droplets"`
Processes map[string]resources.Process `json:"process"`
Tasks map[string]Task `json:"tasks"`
Routes map[string]resources.Route `json:"routes"`
RoutesBindings map[string]resources.RouteBinding `json:"route_bindings"`
Segments map[string]resources.IsolationSegment `json:"segments"`
ServiceInstances map[string]resources.ServiceInstance `json:"service_instances"`
SecurityGroups map[string]resources.SecurityGroup `json:"security_groups"`
Stacks map[string]resources.Stack `json:"stacks"`
Buildpacks map[string]resources.Buildpack `json:"buildpacks"`
BuildpacksByName map[string]resources.Buildpack `json:"builpacks_by_name"`
Domains map[string]resources.Domain `json:"domains"`
ServiceBrokers map[string]resources.ServiceBroker `json:"service_brokers"`
ServiceOfferings map[string]resources.ServiceOffering `json:"service_offerings"`
ServicePlans map[string]resources.ServicePlan `json:"service_plans"`
ServiceBindings map[string]resources.ServiceCredentialBinding `json:"service_bindings"`
AppProcesses map[string][]resources.Process `json:"app_processes"`
ProcessActualLRPs map[string][]*models.ActualLRP `json:"process_actual_lrps"`
Events map[string]Event `json:"events"`
Users map[string]resources.User `json:"users"`
ServiceRouteBindings map[string]resources.RouteBinding `json:"service_route_bindings"`
Took float64
Error error
}
func NewCFObjects ¶
func NewCFObjects() *CFObjects
type Event ¶
type Event struct {
GUID string `json:"guid,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
Type string `json:"type,omitempty"`
Actor EventActor `json:"actor,omitempty"`
Target EventTarget `json:"target,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
Space EventSpace `json:"space,omitempty"`
Org EventOrg `json:"organization,omitempty"`
}
type EventActor ¶
type EventSpace ¶
type EventSpace struct {
GUID string `json:"guid,omitempty"`
}
type EventTarget ¶
type Lifecycle ¶
type Lifecycle struct {
Type constant.AppLifecycleType `json:"type,omitempty"`
Data struct {
Buildpacks []string `json:"buildpacks,omitempty"`
Stack string `json:"stack,omitempty"`
} `json:"data"`
}
type Metadata ¶
type Metadata struct {
Labels map[string]types.NullString `json:"labels,omitempty"`
Annotations map[string]types.NullString `json:"annotations,omitempty"`
}
type Quota ¶
type Quota struct {
GUID string `json:"guid,omitempty"`
Name string `json:"name"`
Apps QuotaApp `json:"apps"`
Services QuotaService `json:"services"`
Routes resources.RouteLimit `json:"routes"`
Domains QuotaDomain `json:"domains"`
}
type QuotaDomain ¶
type QuotaService ¶
type SpaceSummary ¶
type SpaceSummary struct {
GUID string `json:"guid,omitempty"`
Name string `json:"name,omitempty"`
Apps []AppSummary `json:"apps,omitempty"`
}
type Task ¶
type Task struct {
GUID string `json:"guid,omitempty"`
State constant.TaskState `json:"state,omitempty"`
Relationships resources.Relationships `json:"relationships,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
MemoryInMb int64 `json:"memory_in_mb,omitempty"`
DiskInMb int64 `json:"disk_in_mb,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.