MCPcopy Index your code
hub / github.com/cloudfoundry/cli / GetPackages

Method GetPackages

api/cloudcontroller/ccv3/package.go:48–62  ·  view source on GitHub ↗

GetPackages returns the list of packages.

(query ...Query)

Source from the content-addressed store, hash-verified

46
47// GetPackages returns the list of packages.
48func (client *Client) GetPackages(query ...Query) ([]resources.Package, Warnings, error) {
49 var packages []resources.Package
50
51 _, warnings, err := client.MakeListRequest(RequestParams{
52 RequestName: internal.GetPackagesRequest,
53 Query: query,
54 ResponseBody: resources.Package{},
55 AppendToList: func(item interface{}) error {
56 packages = append(packages, item.(resources.Package))
57 return nil
58 },
59 })
60
61 return packages, warnings, err
62}
63
64// UploadBitsPackage uploads the newResources and a list of existing resources
65// to the cloud controller. An updated package is returned. The function will

Callers

nothing calls this directly

Calls 1

MakeListRequestMethod · 0.65

Tested by

no test coverage detected