{"modulePath":"github.com/cloudfoundry/stack-auditor","version":"v0.1.7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package resources\n\n## Types\n\n```go\ntype App struct {\n\tOrg   string `json:\"org\"`\n\tSpace string `json:\"space\"`\n\tName  string `json:\"name\"`\n\tStack string `json:\"stack\"`\n\tState string `json:\"state\"`\n}\n```\n\n```go\nfunc (a App) String() string\n```\n\n```go\ntype Apps []App\n```\n\n```go\nfunc (a Apps) CSV() (string, error)\n```\n\n```go\nfunc (a Apps) Len() int\n```\n\n```go\nfunc (a Apps) Less(i, j int) bool\n```\n\n```go\nfunc (a Apps) String() string\n```\n\n```go\nfunc (a Apps) Swap(i, j int)\n```\n\n```go\ntype BuildPack struct {\n\tMetadata struct {\n\t\tGUID string `json:\"guid\"`\n\t\tURL  string `json:\"url\"`\n\t} `json:\"metadata\"`\n\tEntity struct {\n\t\tName     string `json:\"name\"`\n\t\tStack    string `json:\"stack\"`\n\t\tPosition int    `json:\"position\"`\n\t\tEnabled  bool   `json:\"enabled\"`\n\t\tLocked   bool   `json:\"locked\"`\n\t\tFilename string `json:\"filename\"`\n\t} `json:\"entity\"`\n}\n```\n\n```go\ntype BuildpacksJSON struct {\n\tTotalResults int         `json:\"total_results\"`\n\tTotalPages   int         `json:\"total_pages\"`\n\tPrevURL      string      `json:\"prev_url\"`\n\tNextURL      string      `json:\"next_url\"`\n\tBuildPacks   []BuildPack `json:\"resources\"`\n}\n```\n\n```go\ntype DropletJSON struct {\n\tGUID      string    `json:\"guid\"`\n\tState     string    `json:\"state\"`\n\tStack     string    `json:\"stack\"`\n\tCreatedAt time.Time `json:\"created_at\"`\n}\n```\n\n```go\ntype DropletListJSON struct {\n\tPagination struct {\n\t\tTotalResults int `json:\"total_results\"`\n\t\tTotalPages   int `json:\"total_pages\"`\n\t\tFirst        struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"first\"`\n\t\tLast struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"last\"`\n\t\tNext     interface{} `json:\"next\"`\n\t\tPrevious interface{} `json:\"previous\"`\n\t} `json:\"pagination\"`\n\tResources []DropletJSON `json:\"resources\"`\n}\n```\n\n```go\ntype Orgs []plugin_models.GetOrgs_Model\n```\n\n```go\nfunc (o Orgs) Map() map[string]string\n```\n\n```go\ntype Package struct {\n\tGUID string `json:\"guid\"`\n\tType string `json:\"type\"`\n\tData struct {\n\t\tError    interface{} `json:\"error\"`\n\t\tChecksum struct {\n\t\t\tType  string `json:\"type\"`\n\t\t\tValue string `json:\"value\"`\n\t\t} `json:\"checksum\"`\n\t} `json:\"data\"`\n\tState string `json:\"state\"`\n}\n```\n\n```go\ntype PackagerJSON struct {\n\t// TOOD: do we really need paginated results?\n\tPagination struct {\n\t\tTotalResults int `json:\"total_results\"`\n\t\tTotalPages   int `json:\"total_pages\"`\n\t\tFirst        struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"first\"`\n\t\tLast struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"last\"`\n\t\tNext     interface{} `json:\"next\"`\n\t\tPrevious interface{} `json:\"previous\"`\n\t} `json:\"pagination\"`\n\tResources []Package `json:\"resources\"`\n}\n```\n\n```go\ntype Spaces []SpacesJSON\n```\n\n```go\nfunc (s Spaces) MakeSpaceOrgAndNameMap() (map[string]string, map[string]string)\n```\n\n```go\ntype SpacesJSON struct {\n\tTotalResults int    `json:\"total_results\"`\n\tTotalPages   int    `json:\"total_pages\"`\n\tPrevURL      string `json:\"prev_url\"`\n\tNextURL      string `json:\"next_url\"`\n\tResources    []struct {\n\t\tMetadata struct {\n\t\t\tGUID string `json:\"guid\"`\n\t\t\tURL  string `json:\"url\"`\n\t\t} `json:\"metadata\"`\n\t\tEntity struct {\n\t\t\tName             string `json:\"name\"`\n\t\t\tOrganizationGUID string `json:\"organization_guid\"`\n\t\t} `json:\"entity\"`\n\t} `json:\"resources\"`\n}\n```\n\n```go\ntype Stacks []StacksJSON\n```\n\n```go\nfunc (s Stacks) MakeStackMap() map[string]string\n```\n\n```go\ntype StacksJSON struct {\n\tTotalResults int    `json:\"total_results\"`\n\tTotalPages   int    `json:\"total_pages\"`\n\tPrevURL      string `json:\"prev_url\"`\n\tNextURL      string `json:\"next_url\"`\n\tResources    []struct {\n\t\tMetadata struct {\n\t\t\tGUID string `json:\"guid\"`\n\t\t\tURL  string `json:\"url\"`\n\t\t} `json:\"metadata\"`\n\t\tEntity struct {\n\t\t\tName string `json:\"name\"`\n\t\t} `json:\"entity\"`\n\t} `json:\"resources\"`\n}\n```\n\n```go\ntype V2App struct {\n\tMetadata struct {\n\t\tGUID string `json:\"guid\"`\n\t} `json:\"metadata\"`\n\tEntity struct {\n\t\tName      string `json:\"name\"`\n\t\tSpaceGUID string `json:\"space_guid\"`\n\t\tStackGUID string `json:\"stack_guid\"`\n\t\tState     string `json:\"state\"`\n\t} `json:\"entity\"`\n}\n```\n\n```go\ntype V2AppsJSON struct {\n\tNextURL string  `json:\"next_url\"`\n\tApps    []V2App `json:\"resources\"`\n}\n```\nPartial structure of JSON when hitting the /v2/apps endpoint\n\n```go\ntype V2ErrorJSON struct {\n\tDescription string `json:\"description\"`\n\tErrorCode   string `json:\"error_code\"`\n\tCode        int    `json:\"code\"`\n}\n```\n\n```go\ntype V3App struct {\n\tGUID      string `json:\"guid\"`\n\tName      string `json:\"name\"`\n\tState     string `json:\"state\"`\n\tLifecycle struct {\n\t\tData struct {\n\t\t\tStack string `json:\"stack\"`\n\t\t} `json:\"data\"`\n\t} `json:\"lifecycle\"`\n\tRelationships struct {\n\t\tSpace struct {\n\t\t\tData struct {\n\t\t\t\tGUID string `json:\"guid\"`\n\t\t\t} `json:\"data\"`\n\t\t} `json:\"space\"`\n\t} `json:\"relationships\"`\n\tLinks struct {\n\t\tSelf struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"self\"`\n\t\tPackages struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"packages\"`\n\t\tCurrentDroplet struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"current_droplet\"`\n\t\tDroplets struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"droplets\"`\n\t\tTasks struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"tasks\"`\n\t\tStart struct {\n\t\t\tHref   string `json:\"href\"`\n\t\t\tMethod string `json:\"method\"`\n\t\t} `json:\"start\"`\n\t\tStop struct {\n\t\t\tHref   string `json:\"href\"`\n\t\t\tMethod string `json:\"method\"`\n\t\t} `json:\"stop\"`\n\t\tRevisions struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"revisions\"`\n\t\tDeployedRevisions struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"deployed_revisions\"`\n\t} `json:\"links\"`\n}\n```\n\n```go\ntype V3AppsJSON struct {\n\tPagination struct {\n\t\tNext struct {\n\t\t\tHref string `json:\"href\"`\n\t\t} `json:\"next\"`\n\t} `json:\"pagination\"`\n\tApps []V3App `json:\"resources\"`\n}\n```\nPartial structure of JSON when hitting the /v3/apps endpoint\n\n```go\ntype V3ErrorJSON struct {\n\tErrors []struct {\n\t\tDetail string `json:\"detail\"`\n\t\tTitle  string `json:\"title\"`\n\t\tCode   int    `json:\"code\"`\n\t} `json:\"errors\"`\n}\n```\n\n","path":"github.com/cloudfoundry/stack-auditor/resources","name":"resources","synopsis":"","isRedistributable":true}
