{"modulePath":"github.com/loggregator/cli","version":"v6.33.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ccv3\n\nPackage ccv3 represents a Cloud Controller V3 client.\n\nThese sets of packages are still under development/pre-pre-pre...alpha. Use at your own risk! Functionality and design may change without warning.\n\nIt is currently designed to support Cloud Controller API 3.0.0. However, it may include features and endpoints of later API versions.\n\nFor more information on the Cloud Controller API see [https://apidocs.cloudfoundry.org/](https://apidocs.cloudfoundry.org/)\n\n### Method Naming Conventions {#hdr-Method_Naming_Conventions}\n\nThe client takes a '\\\u003cAction Name\u003e\\\u003cTop Level Endpoint\u003e\\\u003cReturn Value\u003e' approach to method names.  If the \\\u003cTop Level Endpoint\u003e and \\\u003cReturn Value\u003e are similar, they do not need to be repeated. If a GUID is required for the \\\u003cTop Level Endpoint\u003e, the pluralization is removed from said endpoint in the method name.\n\nFor Example:\n\n\tMethod Name: GetApplication\n\tEndpoint: /v3/applications/:guid\n\tAction Name: Get\n\tTop Level Endpoint: applications\n\tReturn Value: Application\n\n\tMethod Name: GetServiceInstances\n\tEndpoint: /v3/service_instances\n\tAction Name: Get\n\tTop Level Endpoint: service_instances\n\tReturn Value: []ServiceInstance\n\n\tMethod Name: GetSpaceServiceInstances\n\tEndpoint: /v3/spaces/:guid/service_instances\n\tAction Name: Get\n\tTop Level Endpoint: spaces\n\tReturn Value: []ServiceInstance\n\n\tMethod Name: CreateApplicationTask\n\tEndpoint: /v3/apps/:application_guid/task\n\tAction Name: Post\n\tTop Level Endpoint: apps\n\tReturn Value: []Task\n\nUse the following table to determine which HTTP Command equates to which Action Name:\n\n\tHTTP Command -\u003e Action Name\n\tPOST -\u003e Create\n\tGET -\u003e Get\n\tPUT -\u003e Update\n\tDELETE -\u003e Delete\n\tPATCH -\u003e Patch\n\n### Method Locations {#hdr-Method_Locations}\n\nMethods exist in the same file as their return type, regardless of which endpoint they use.\n\n### Error Handling {#hdr-Error_Handling}\n\nAll error handling that requires parsing the error\\_code/code returned back from the Cloud Controller should be placed in the errorWrapper. Everything else can be handled in the individual operations. All parsed cloud controller errors should exist in errors.go, all generic HTTP errors should exist in the cloudcontroller's errors.go. Errors related to the individaul operation should exist at the top of that operation's file.\n\n## Constants\n\n```go\nconst (\n\t// GUIDFilter is a query paramater for listing objects by GUID.\n\tGUIDFilter = \"guids\"\n\t// NameFilter is a query paramater for listing objects by name.\n\tNameFilter = \"names\"\n\t// AppGUIDFilter is a query paramater for listing objects by app GUID.\n\tAppGUIDFilter = \"app_guids\"\n\t// OrganizationGUIDFilter is a query paramater for listing objects by Organization GUID.\n\tOrganizationGUIDFilter = \"organization_guids\"\n\t// SpaceGUIDFilter is a query paramater for listing objects by Space GUID.\n\tSpaceGUIDFilter = \"space_guids\"\n\n\t// OrderBy is a query paramater to specify how to order objects.\n\tOrderBy = \"order_by\"\n\t// NameOrder is value for a query paramater when ordering by name.\n\tNameOrder = \"name\"\n)\n```\n\n## Types\n\n```go\ntype APIInfo struct {\n\t// Links is a list of top level Cloud Controller APIs.\n\tLinks struct {\n\t\t// AppSSH is the link for application ssh info\n\t\tAppSSH APILink `json:\"app_ssh\"`\n\n\t\t// CCV3 is the link to the Cloud Controller V3 API\n\t\tCCV3 APILink `json:\"cloud_controller_v3\"`\n\n\t\t// Logging is the link to the Logging API\n\t\tLogging APILink `json:\"logging\"`\n\n\t\tNetworkPolicyV1 APILink `json:\"network_policy_v1\"`\n\n\t\t// UAA is the link to the UAA API\n\t\tUAA APILink `json:\"uaa\"`\n\t} `json:\"links\"`\n}\n```\nAPIInfo represents a GET response from the '/' endpoint of the cloud controller API.\n\n```go\nfunc (info APIInfo) AppSSHEndpoint() string\n```\n\n```go\nfunc (info APIInfo) AppSSHHostKeyFingerprint() string\n```\n\n```go\nfunc (info APIInfo) CloudControllerAPIVersion() string\n```\nCloudControllerAPIVersion returns the version for the CloudController.\n\n```go\nfunc (info APIInfo) Logging() string\n```\nLogging returns the HREF for Logging.\n\n```go\nfunc (info APIInfo) NetworkPolicyV1() string\n```\n\n```go\nfunc (info APIInfo) OAuthClient() string\n```\n\n```go\nfunc (info APIInfo) UAA() string\n```\nUAA returns the HREF for the UAA.\n\n```go\ntype APILink struct {\n\t// HREF is the fully qualified URL for the link.\n\tHREF   string `json:\"href\"`\n\tMethod string `json:\"method\"`\n\n\t// Meta contains additional metadata about the API.\n\tMeta struct {\n\t\t// Version of the API\n\t\tVersion string `json:\"version\"`\n\n\t\t// Fingerprint to authenticate api with\n\t\tHostKeyFingerprint string `json:\"host_key_fingerprint\"`\n\n\t\t// Identifier for UAA queries\n\t\tOAuthClient string `json:\"oath_client\"`\n\t} `json:\"meta\"`\n}\n```\nAPILink represents a generic link from a response object.\n\n```go\ntype APILinks map[string]APILink\n```\nAPILinks is a directory of follow-up urls for the resource.\n\n```go\ntype AppLifecycle struct {\n\tType AppLifecycleType `json:\"type,omitempty\"`\n\tData AppLifecycleData `json:\"data,omitempty\"`\n}\n```\n\n```go\ntype AppLifecycleData struct {\n\tBuildpacks []string `json:\"buildpacks,omitempty\"`\n}\n```\n\n```go\ntype AppLifecycleType string\n```\n\n```go\nconst (\n\tBuildpackAppLifecycleType AppLifecycleType = \"buildpack\"\n\tDockerAppLifecycleType    AppLifecycleType = \"docker\"\n)\n```\n\n```go\ntype Application struct {\n\tName          string        `json:\"name,omitempty\"`\n\tRelationships Relationships `json:\"relationships,omitempty\"`\n\tGUID          string        `json:\"guid,omitempty\"`\n\tState         string        `json:\"state,omitempty\"`\n\tLifecycle     AppLifecycle  `json:\"lifecycle,omitempty\"`\n}\n```\nApplication represents a Cloud Controller V3 Application.\n\n```go\nfunc (a Application) MarshalJSON() ([]byte, error)\n```\n\n```go\ntype Build struct {\n\tCreatedAt   string\n\tGUID        string\n\tError       string\n\tPackageGUID string\n\tState       BuildState\n\tDropletGUID string\n}\n```\n\n```go\nfunc (b Build) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (b *Build) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BuildState string\n```\n\n```go\nconst (\n\tBuildStateFailed  BuildState = \"FAILED\"\n\tBuildStateStaged  BuildState = \"STAGED\"\n\tBuildStateStaging BuildState = \"STAGING\"\n)\n```\n\n```go\ntype Client struct {\n\tAPIInfo\n\t// contains filtered or unexported fields\n}\n```\nClient can be used to talk to a Cloud Controller's V3 Endpoints.\n\n```go\nfunc NewClient(config Config) *Client\n```\nNewClient returns a new Client.\n\n```go\nfunc (client *Client) AssignSpaceToIsolationSegment(spaceGUID string, isolationSegmentGUID string) (Relationship, Warnings, error)\n```\nAssignSpaceToIsolationSegment assigns an isolation segment to a space and returns the relationship.\n\n```go\nfunc (client *Client) CreateApplication(app Application) (Application, Warnings, error)\n```\nCreateApplication creates an application with the given settings\n\n```go\nfunc (client *Client) CreateApplicationProcessScale(appGUID string, process Process) (Warnings, error)\n```\nCreateApplicationProcessScale updates process instances count, memory or disk\n\n```go\nfunc (client *Client) CreateApplicationTask(appGUID string, task Task) (Task, Warnings, error)\n```\nCreateApplicationTask runs a command in the Application environment associated with the provided Application GUID.\n\n```go\nfunc (client *Client) CreateBuild(build Build) (Build, Warnings, error)\n```\nCreateBuild creates the given build, requires Package GUID to be set on the build.\n\n```go\nfunc (client *Client) CreateIsolationSegment(isolationSegment IsolationSegment) (IsolationSegment, Warnings, error)\n```\nCreateIsolationSegment will create an Isolation Segment on the Cloud Controller. Note: This will not validate that the placement tag exists in the diego cluster.\n\n```go\nfunc (client *Client) CreatePackage(pkg Package) (Package, Warnings, error)\n```\nCreatePackage creates a package with the given settings, Type and the ApplicationRelationship must be set.\n\n```go\nfunc (client *Client) DeleteApplication(appGUID string) (string, Warnings, error)\n```\n\n```go\nfunc (client *Client) DeleteApplicationProcessInstance(appGUID string, processType string, instanceIndex int) (Warnings, error)\n```\n\n```go\nfunc (client *Client) DeleteIsolationSegment(guid string) (Warnings, error)\n```\nDeleteIsolationSegment removes an isolation segment from the cloud controller. Note: This will only remove it from the cloud controller database. It will not remove it from diego.\n\n```go\nfunc (client *Client) EntitleIsolationSegmentToOrganizations(isolationSegmentGUID string, organizationGUIDs []string) (RelationshipList, Warnings, error)\n```\nEntitleIsolationSegmentToOrganizations will create a link between the isolation segment and the list of organizations provided.\n\n```go\nfunc (client *Client) GetApplicationDroplets(appGUID string, query url.Values) ([]Droplet, Warnings, error)\n```\nGetApplicationDroplets returns the Droplets for a given app\n\n```go\nfunc (client *Client) GetApplicationEnvironmentVariables(appGUID string) (EnvironmentVariableGroups, Warnings, error)\n```\nGetApplicationEnvironmentVariables fetches all the environment variables on an application by groups.\n\n```go\nfunc (client *Client) GetApplicationProcessByType(appGUID string, processType string) (Process, Warnings, error)\n```\nGetApplicationProcessByType returns application process of specified type\n\n```go\nfunc (client *Client) GetApplicationProcesses(appGUID string) ([]Process, Warnings, error)\n```\nGetApplicationProcesses lists processes for a given app\n\n```go\nfunc (client *Client) GetApplicationTasks(appGUID string, query url.Values) ([]Task, Warnings, error)\n```\nGetApplicationTasks returns a list of tasks associated with the provided application GUID. Results can be filtered by providing URL queries.\n\n```go\nfunc (client *Client) GetApplications(query url.Values) ([]Application, Warnings, error)\n```\nGetApplications lists applications with optional filters.\n\n```go\nfunc (client *Client) GetBuild(guid string) (Build, Warnings, error)\n```\nGetBuild gets the build with the given GUID.\n\n```go\nfunc (client *Client) GetDroplet(dropletGUID string) (Droplet, Warnings, error)\n```\n\n```go\nfunc (client *Client) GetIsolationSegment(guid string) (IsolationSegment, Warnings, error)\n```\nGetIsolationSegment returns back the requested isolation segment that matches the GUID.\n\n```go\nfunc (client *Client) GetIsolationSegmentOrganizationsByIsolationSegment(isolationSegmentGUID string) ([]Organization, Warnings, error)\n```\nGetIsolationSegmentOrganizationsByIsolationSegment lists organizations entitled to an isolation segment\n\n```go\nfunc (client *Client) GetIsolationSegments(query url.Values) ([]IsolationSegment, Warnings, error)\n```\nGetIsolationSegments lists isolation segments with optional filters.\n\n```go\nfunc (client *Client) GetJob(jobURL string) (Job, Warnings, error)\n```\nGetJob returns a job for the provided GUID.\n\n```go\nfunc (client *Client) GetOrganizationDefaultIsolationSegment(orgGUID string) (Relationship, Warnings, error)\n```\nGetOrganizationDefaultIsolationSegment returns the relationship between an organization and it's default isolation segment.\n\n```go\nfunc (client *Client) GetOrganizations(query url.Values) ([]Organization, Warnings, error)\n```\nGetOrganizations lists organizations with optional filters.\n\n```go\nfunc (client *Client) GetPackage(packageGUID string) (Package, Warnings, error)\n```\nGetPackage returns the package with the given GUID.\n\n```go\nfunc (client *Client) GetPackages(query url.Values) ([]Package, Warnings, error)\n```\nGetPackages returns the list of packages.\n\n```go\nfunc (client *Client) GetProcessInstances(processGUID string) ([]Instance, Warnings, error)\n```\nGetProcessInstances lists instance stats for a given process.\n\n```go\nfunc (client *Client) GetSpaceIsolationSegment(spaceGUID string) (Relationship, Warnings, error)\n```\nGetSpaceIsolationSegment returns the relationship between a space and it's isolation segment.\n\n```go\nfunc (client *Client) GetSpaces(query url.Values) ([]Space, Warnings, error)\n```\nGetSpaces lists spaces with optional filters.\n\n```go\nfunc (client *Client) Info() (APIInfo, ResourceLinks, Warnings, error)\n```\nInfo returns endpoint and API information from /v3.\n\n```go\nfunc (client *Client) PatchApplicationProcessHealthCheck(processGUID string, processHealthCheckType string, processHealthCheckEndpoint string) (Warnings, error)\n```\nPatchApplicationProcessHealthCheck updates application health check type\n\n```go\nfunc (client *Client) PatchApplicationUserProvidedEnvironmentVariables(appGUID string, envVars EnvironmentVariables) (EnvironmentVariables, Warnings, error)\n```\nPatchApplicationUserProvidedEnvironmentVariables updates the user provided environment variables on an applicaiton. A restart is required for changes to take effect.\n\n```go\nfunc (client *Client) PatchOrganizationDefaultIsolationSegment(orgGUID string, isoSegGUID string) (Warnings, error)\n```\nPatchOrganizationDefaultIsolationSegment sets the default isolation segment for an organization on the controller. If isoSegGuid is empty it will reset the default isolation segment.\n\n```go\nfunc (client *Client) PollJob(jobURL string) (Warnings, error)\n```\nPollJob will keep polling the given job until the job has terminated, an error is encountered, or config.OverallPollingTimeout is reached. In the last case, a JobTimeoutError is returned.\n\n```go\nfunc (client *Client) RevokeIsolationSegmentFromOrganization(isolationSegmentGUID string, orgGUID string) (Warnings, error)\n```\nRevokeIsolationSegmentFromOrganization will delete the relationship between the isolation segment and the organization provided.\n\n```go\nfunc (client *Client) SetApplicationDroplet(appGUID string, dropletGUID string) (Relationship, Warnings, error)\n```\n\n```go\nfunc (client *Client) StartApplication(appGUID string) (Application, Warnings, error)\n```\n\n```go\nfunc (client *Client) StopApplication(appGUID string) (Warnings, error)\n```\n\n```go\nfunc (client *Client) TargetCF(settings TargetSettings) (Warnings, error)\n```\nTargetCF sets the client to use the Cloud Controller specified in the configuration. Any other configuration is also applied to the client.\n\n```go\nfunc (client *Client) UpdateApplication(app Application) (Application, Warnings, error)\n```\nUpdateApplication updates an application with the given settings\n\n```go\nfunc (client *Client) UpdateTask(taskGUID string) (Task, Warnings, error)\n```\nUpdateTask cancels a task.\n\n```go\nfunc (client *Client) UploadPackage(pkg Package, fileToUpload string) (Package, Warnings, error)\n```\nUploadPackage uploads a file to a given package's Upload resource. Note: fileToUpload is read entirely into memory prior to sending data to CC.\n\n```go\nfunc (client *Client) WrapConnection(wrapper ConnectionWrapper)\n```\nWrapConnection wraps the current Client connection in the wrapper.\n\n```go\ntype Config struct {\n\t// AppName is the name of the application/process using the client.\n\tAppName string\n\n\t// AppVersion is the version of the application/process using the client.\n\tAppVersion string\n\n\t// JobPollingTimeout is the maximum amount of time a job polls for.\n\tJobPollingTimeout time.Duration\n\n\t// JobPollingInterval is the wait time between job polls.\n\tJobPollingInterval time.Duration\n\n\t// Wrappers that apply to the client connection.\n\tWrappers []ConnectionWrapper\n}\n```\nConfig allows the Client to be configured\n\n```go\ntype ConnectionWrapper interface {\n\tcloudcontroller.Connection\n\tWrap(innerconnection cloudcontroller.Connection) cloudcontroller.Connection\n}\n```\nConnectionWrapper can wrap a given connection allowing the wrapper to modify all requests going in and out of the given connection.\n\n```go\ntype Droplet struct {\n\tGUID       string             `json:\"guid\"`\n\tState      DropletState       `json:\"state\"`\n\tCreatedAt  string             `json:\"created_at\"`\n\tStack      string             `json:\"stack,omitempty\"`\n\tBuildpacks []DropletBuildpack `json:\"buildpacks,omitempty\"`\n\tImage      string             `json:\"image\"`\n}\n```\n\n```go\ntype DropletBuildpack struct {\n\tName         string `json:\"name\"`\n\tDetectOutput string `json:\"detect_output\"`\n}\n```\n\n```go\ntype DropletRelationship struct {\n\tRelationship Relationship `json:\"data\"`\n\tLinks        APILinks     `json:\"links\"`\n}\n```\nDropletRelationship represents the relationship between a V3 Droplet and its V3 Application\n\n```go\ntype DropletState string\n```\n\n```go\nconst (\n\tDropletStateStaged  DropletState = \"STAGED\"\n\tDropletStateFailed  DropletState = \"FAILED\"\n\tDropletStateCopying DropletState = \"COPYING\"\n\tDropletStateExpired DropletState = \"EXPIRED\"\n)\n```\n\n```go\ntype EnvironmentVariableGroups struct {\n\tSystemProvided      map[string]interface{} `json:\"system_env_json\"`\n\tApplicationProvided map[string]interface{} `json:\"application_env_json\"`\n\tUserProvided        map[string]interface{} `json:\"environment_variables\"`\n\tRunningGroup        map[string]interface{} `json:\"running_env_json\"`\n\tStagingGroup        map[string]interface{} `json:\"staging_env_json\"`\n}\n```\nEnvironmentVariableGroups represents all environment variables on an application\n\n```go\ntype EnvironmentVariables struct {\n\tVariables map[string]types.FilteredString `json:\"var\"`\n}\n```\nEnvironmentVariables represents the environment variables that can be set on application by user\n\n```go\ntype ErrorDetails struct {\n\tDetail string `json:\"detail\"`\n\tTitle  string `json:\"title\"`\n\tCode   int    `json:\"code\"`\n}\n```\n\n```go\ntype Instance struct {\n\tIndex       int\n\tState       string\n\tUptime      int\n\tCPU         float64\n\tMemoryUsage uint64\n\tMemoryQuota uint64\n\tDiskUsage   uint64\n\tDiskQuota   uint64\n}\n```\n\n```go\nfunc (instance *Instance) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a V3 Cloud Controller Instance response.\n\n```go\ntype IsolationSegment struct {\n\tName string `json:\"name\"`\n\tGUID string `json:\"guid,omitempty\"`\n}\n```\nIsolationSegment represents a Cloud Controller Isolation Segment.\n\n```go\ntype Job struct {\n\tErrors []ErrorDetails `json:\"errors\"`\n\tGUID   string         `json:\"guid\"`\n\tState  JobState       `json:\"state\"`\n}\n```\nJob represents a Cloud Controller Job.\n\n```go\nfunc (job Job) Complete() bool\n```\nComplete returns true when the job has completed successfully.\n\n```go\nfunc (job Job) Failed() bool\n```\nFailed returns true when the job has completed with an error/failure.\n\n```go\ntype JobState string\n```\nJobState is the current state of a job.\n\n```go\nconst (\n\t// JobStateFailed is when the job is no longer running due to a failure.\n\tJobStateFailed JobState = \"FAILED\"\n\n\t// JobStateFinished is when the job is no longer and it was successful.\n\tJobStateComplete JobState = \"COMPLETE\"\n\n\t// JobStateQueued is when the job is waiting to be run.\n\tJobStateProcessing JobState = \"PROCESSING\"\n)\n```\n\n```go\ntype Organization struct {\n\tName string `json:\"name\"`\n\tGUID string `json:\"guid\"`\n}\n```\nOrganization represents a Cloud Controller V3 Organization.\n\n```go\ntype Package struct {\n\tGUID           string\n\tCreatedAt      string\n\tLinks          APILinks\n\tRelationships  Relationships\n\tState          PackageState\n\tType           PackageType\n\tDockerImage    string\n\tDockerUsername string\n\tDockerPassword string\n}\n```\n\n```go\nfunc (p Package) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (p *Package) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PackageState string\n```\n\n```go\nconst (\n\tPackageStateProcessingUpload PackageState = \"PROCESSING_UPLOAD\"\n\tPackageStateReady            PackageState = \"READY\"\n\tPackageStateFailed           PackageState = \"FAILED\"\n\tPackageStateAwaitingUpload   PackageState = \"AWAITING_UPLOAD\"\n\tPackageStateCopying          PackageState = \"COPYING\"\n\tPackageStateExpired          PackageState = \"EXPIRED\"\n)\n```\n\n```go\ntype PackageType string\n```\n\n```go\nconst (\n\tPackageTypeBits   PackageType = \"bits\"\n\tPackageTypeDocker PackageType = \"docker\"\n)\n```\n\n```go\ntype PaginatedResources 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\tResourcesBytes json.RawMessage `json:\"resources\"`\n\t// contains filtered or unexported fields\n}\n```\nPaginatedResources represents a page of resources returned by the Cloud Controller.\n\n```go\nfunc NewPaginatedResources(exampleResource interface{}) *PaginatedResources\n```\nNewPaginatedResources returns a new PaginatedResources struct with the given resource type.\n\n```go\nfunc (pr PaginatedResources) NextPage() string\n```\nNextPage returns the HREF of the next page of results.\n\n```go\nfunc (pr PaginatedResources) Resources() ([]interface{}, error)\n```\nResources unmarshals JSON representing a page of resources and returns a slice of the given resource type.\n\n```go\ntype Process struct {\n\tGUID        string             `json:\"guid\"`\n\tType        string             `json:\"type\"`\n\tHealthCheck ProcessHealthCheck `json:\"health_check\"`\n\tInstances   types.NullInt      `json:\"instances\"`\n\tMemoryInMB  types.NullUint64   `json:\"memory_in_mb\"`\n\tDiskInMB    types.NullUint64   `json:\"disk_in_mb\"`\n}\n```\n\n```go\nfunc (p Process) MarshalJSON() ([]byte, error)\n```\n\n```go\ntype ProcessHealthCheck struct {\n\tType string                 `json:\"type\"`\n\tData ProcessHealthCheckData `json:\"data\"`\n}\n```\n\n```go\ntype ProcessHealthCheckData struct {\n\tEndpoint string `json:\"endpoint\"`\n}\n```\n\n```go\ntype Relationship struct {\n\tGUID string\n}\n```\nRelationship represents a one to one relationship. An empty GUID will be marshaled as \\`null\\`.\n\n```go\nfunc (r Relationship) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *Relationship) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RelationshipList struct {\n\tGUIDs []string\n}\n```\nRelationshipList represents a one to many relationship.\n\n```go\nfunc (r RelationshipList) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *RelationshipList) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RelationshipType string\n```\n\n```go\nconst (\n\tApplicationRelationship RelationshipType = \"app\"\n\tSpaceRelationship       RelationshipType = \"space\"\n)\n```\n\n```go\ntype Relationships map[RelationshipType]Relationship\n```\nRelationships is a map of RelationshipTypes to Relationship.\n\n```go\ntype ResourceLinks map[string]APILink\n```\nResourceLinks represents the information returned back from /v3.\n\n```go\nfunc (resources ResourceLinks) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller /v3 response.\n\n```go\ntype Space struct {\n\tName string `json:\"name\"`\n\tGUID string `json:\"guid\"`\n}\n```\nSpace represents a Cloud Controller V3 Space.\n\n```go\ntype TargetSettings struct {\n\t// DialTimeout is the DNS timeout used to make all requests to the Cloud\n\t// Controller.\n\tDialTimeout time.Duration\n\n\t// SkipSSLValidation controls whether a client verifies the server's\n\t// certificate chain and host name. If SkipSSLValidation is true, TLS accepts\n\t// any certificate presented by the server and any host name in that\n\t// certificate for *all* client requests going forward.\n\t//\n\t// In this mode, TLS is susceptible to man-in-the-middle attacks. This should\n\t// be used only for testing.\n\tSkipSSLValidation bool\n\n\t// URL is a fully qualified URL to the Cloud Controller API.\n\tURL string\n}\n```\nTargetSettings represents configuration for establishing a connection to the Cloud Controller server.\n\n```go\ntype Task struct {\n\tGUID       string `json:\"guid,omitempty\"`\n\tSequenceID int    `json:\"sequence_id,omitempty\"`\n\tName       string `json:\"name,omitempty\"`\n\tCommand    string `json:\"command\"`\n\tState      string `json:\"state,omitempty\"`\n\tCreatedAt  string `json:\"created_at,omitempty\"`\n\tMemoryInMB uint64 `json:\"memory_in_mb,omitempty\"`\n\tDiskInMB   uint64 `json:\"disk_in_mb,omitempty\"`\n}\n```\nTask represents a Cloud Controller V3 Task.\n\n```go\ntype Warnings []string\n```\nWarnings are a collection of warnings that the Cloud Controller can return back from an API request.\n\n","path":"github.com/loggregator/cli/api/cloudcontroller/ccv3","name":"ccv3","synopsis":"Package ccv3 represents a Cloud Controller V3 client.","isRedistributable":true}
