models

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSummary

type AppSummary struct {
	GUID              string `json:"guid,omitempty"`
	RunningInstances  int    `json:"running_instances,omitempty"`
	DetectedBuildpack string `json:"detected_buildpack,omitempty"`
	Buildpack         string `json:"buildpack,omitempty"`
	StackID           string `json:"stack_guid,omitempty"`
}

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"`
	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"`
	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"`
	SpaceSummaries       map[string]SpaceSummary                       `json:"space_summaries"`
	AppSummaries         map[string]AppSummary                         `json:"app_summaries"`
	AppProcesses         map[string][]resources.Process                `json:"app_processes"`
	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 EventActor struct {
	GUID string `json:"guid,omitempty"`
	Type string `json:"type,omitempty"`
	Name string `json:"name,omitempty"`
}

type EventOrg

type EventOrg struct {
	GUID string `json:"guid,omitempty"`
}

type EventSpace

type EventSpace struct {
	GUID string `json:"guid,omitempty"`
}

type EventTarget

type EventTarget struct {
	GUID string `json:"guid,omitempty"`
	Type string `json:"type,omitempty"`
	Name string `json:"name,omitempty"`
}

type Info

type Info struct {
	Name string `json:"name"`
}

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 QuotaApp

type QuotaApp struct {
	TotalMemory       *types.NullInt `json:"total_memory_in_mb,omitempty"`
	InstanceMemory    *types.NullInt `json:"per_process_memory_in_mb,omitempty"`
	TotalAppInstances *types.NullInt `json:"total_instances,omitempty"`
	PerAppTasks       *types.NullInt `json:"per_app_tasks,omitempty"`
}

type QuotaDomain

type QuotaDomain struct {
	TotalDomains *types.NullInt `json:"total_domains,omitempty"`
}

type QuotaService

type QuotaService struct {
	TotalServiceInstances *types.NullInt `json:"total_service_instances,omitempty"`
	TotalServiceKeys      *types.NullInt `json:"total_service_keys,omitempty"`
	PaidServicePlans      *bool          `json:"paid_services_allowed,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

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