cmd

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadApplicationPackages

func DownloadApplicationPackages(currentDir string, cli plugin.CliConnection)

func GenerateAppManifests

func GenerateAppManifests(currentDir string, cli plugin.CliConnection, include_env_variables bool)

Types

type AppEntity

type AppEntity struct {
	Name                      string                  `json:"name"`
	Instances                 int                     `json:"instances"`
	State                     string                  `json:"state"`
	Memory                    int                     `json:"memory"`
	DiskQuota                 int                     `json:"disk_quota"`
	Buildpack                 string                  `json:"buildpack"`
	DetectedBuildPack         string                  `json:"detected_buildpack"`
	DetectedBuildPackGUID     string                  `json:"detected_buildpack_guid"`
	DetectedBuildPackFileName string                  `json:"detected_buildpack_filename"`
	SpaceName                 string                  `json:"space_name"`
	SpaceGUID                 string                  `json:"space_guid"`
	StartCommand              string                  `json:"detected_start_command"`
	Environment               map[string]string       `json:"environment_json"`
	Command                   string                  `json:"command"`
	HealthCheck               string                  `json:"health_check_type"`
	HealthCheckEndpoint       string                  `json:"health_check_http_endpoint"`
	Routes                    []string                `json:"routes"`
	RoutesUrl                 string                  `json:"routes_url"`
	Stack                     string                  `json:"stack"`
	StackGUID                 string                  `json:"stack_guid"`
	ServiceInstances          []ServiceInstanceEntity `json:"service_instances"`
	ServiceBindingsUrl        string                  `json:"service_bindings_url"`
	OrgGUID                   string                  `json:"org_guid"`
	OrgName                   string                  `json:"org_name"`
}

type AppMetadata

type AppMetadata struct {
	AppGUID     string `json:"guid"`
	CreateDate  string `json:"created_at"`
	UpdatedDate string `json:"updated_at"`
}

type AppPackageResource

type AppPackageResource struct {
	GUID string `json:"guid"`
}

type AppPackages

type AppPackages struct {
	Resources []AppPackageResource `json:"resources"`
}

type AppSearchResource

type AppSearchResource struct {
	Metadata AppMetadata `json:"metadata"`
	Entity   AppEntity   `json:"entity"`
}

AppSearchResource represents resources attribute of JSON response from Cloud Foundry API

type AppSearchResults

type AppSearchResults struct {
	TotalResults int                 `json:"total_results"`
	TotalPages   int                 `json:"total_pages"`
	NextUrl      string              `json:"next_url"`
	Resources    []AppSearchResource `json:"resources"`
}

AppSearchResults represents top level attributes of JSON response from Cloud Foundry API

func GatherData

func GatherData(cli plugin.CliConnection, include_env_variables bool) (map[string]string, map[string]SpaceSearchResource, AppSearchResults)

type BuildpackResources

type BuildpackResources struct {
	GUID     string `json:"guid"`
	Name     string `json:"name"`
	Stack    string `json:"stack"`
	State    string `json:"state"`
	Position int    `json:"position"`
	Filename string `json:"filename"`
	Enabled  bool   `json:"enabled"`
	Locked   bool   `json:"locked"`
}

type Buildpacks

type Buildpacks struct {
	Resources  []BuildpackResources `json:"resources"`
	Pagination BuildpacksPagination `json:"pagination"`
}

type BuildpacksPagination

type BuildpacksPagination struct {
	TotalPages int `json:"total_pages"`
}

type DomainResources

type DomainResources struct {
	GUID string `json:"guid"`
	Name string `json:"name"`
}

type Domains

type Domains struct {
	Resources  []DomainResources `json:"resources"`
	Pagination DomainsPagination `json:"pagination"`
}

type DomainsPagination

type DomainsPagination struct {
	TotalPages int `json:"total_pages"`
}

type MaintenanceInfo

type MaintenanceInfo struct {
	Version     string `json:"version"`
	Description string `json:"description"`
}

type OrgData

type OrgData struct {
	OrgGUID string `json:"guid"`
}

type OrgSearchResource

type OrgSearchResource struct {
	GUID string `json:"guid"`
	Name string `json:"name"`
}

OrgSearchResource represents resources attribute of JSON response from Cloud Foundry API

type OrgSearchResults

type OrgSearchResults struct {
	TotalResults int                 `json:"total_results"`
	TotalPages   int                 `json:"total_pages"`
	Resources    []OrgSearchResource `json:"resources"`
}

OrgSearchResults represents top level attributes of JSON response from Cloud Foundry API

type PackageDownloadStatus added in v1.5.0

type PackageDownloadStatus struct {
	Downloaded bool
	Message    string
}

type RelationshipsOrg

type RelationshipsOrg struct {
	OrgData OrgData `json:"data"`
}

type Route

type Route struct {
	Entity RouteEntity `json:"entity"`
}

type RouteEntity

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

type RouteResource

type RouteResource struct {
	Entity RouteResourceEntity `json:"entity"`
}

type RouteResourceEntity

type RouteResourceEntity struct {
	Host       string `json:"host"`
	DomainGuid string `json:"domain_guid"`
}

type Routes

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

type ServiceData added in v1.4.0

type ServiceData struct {
	Service ServiceDataEntity `json:"entity"`
}

type ServiceDataEntity added in v1.4.0

type ServiceDataEntity struct {
	Label             string `json:"label"`
	Description       string `json:"description"`
	ServiceBrokerName string `json:"service_broker_name"`
}

type ServiceEntity

type ServiceEntity struct {
	ServiceInstanceUrl string `json:"service_instance_url"`
}

type ServiceInstance

type ServiceInstance struct {
	Entity ServiceInstanceEntity `json:"entity"`
}

type ServiceInstanceEntity

type ServiceInstanceEntity struct {
	Name                       string                `json:"name"`
	Type                       string                `json:"type"`
	MaintenanceInfo            MaintenanceInfo       `json:"maintenance_info"`
	ServicePlanUrl             string                `json:"service_plan_url"`
	ServiceInstanceKeysUrl     string                `json:"service_keys_url"`
	ServiceInstancePlanDetails ServicePlanEntityData `json:"service_plan_details"`
}

type ServicePlanEntity

type ServicePlanEntity struct {
	ServicePlanEntityData ServicePlanEntityData `json:"entity"`
}

type ServicePlanEntityData

type ServicePlanEntityData struct {
	Name              string `json:"name"`
	Free              bool   `json:"free"`
	Description       string `json:"description"`
	Active            bool   `json:"active"`
	Bindable          bool   `json:"bindable"`
	ServiceURL        string `json:"service_url"`
	Label             string `json:"label"`
	ServiceBrokerName string `json:"service_broker_name"`
}

type ServiceResource

type ServiceResource struct {
	Entity ServiceEntity `json:"entity"`
}

type Services

type Services struct {
	Resources []ServiceResource `json:"resources"`
}

type SpaceRelationship

type SpaceRelationship struct {
	RelationshipsOrg RelationshipsOrg `json:"organization"`
}

type SpaceSearchResource

type SpaceSearchResource struct {
	Name          string            `json:"name"`
	SpaceGUID     string            `json:"guid"`
	Relationships SpaceRelationship `json:"relationships"`
}

SpaceSearchResource represents resources attribute of JSON response from Cloud Foundry API

type SpaceSearchResults

type SpaceSearchResults struct {
	TotalResults int                   `json:"total_results"`
	TotalPages   int                   `json:"total_pages"`
	Resources    []SpaceSearchResource `json:"resources"`
}

SpaceSearchResults represents top level attributes of JSON response from Cloud Foundry API

type StackResource

type StackResource struct {
	GUID        string `json:"guid"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Default     bool   `json:"default"`
}

type Stacks

type Stacks struct {
	Resources  []StackResource  `json:"resources"`
	Pagination StacksPagination `json:"pagination"`
}

type StacksPagination

type StacksPagination struct {
	TotalPages int `json:"total_pages"`
}

Jump to

Keyboard shortcuts

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