{"modulePath":"github.com/randomtask1155/cli","version":"v6.41.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package constant\n\nPackage constant contains types and constants used by the ccv2 package.\n\nConstant Naming Conventions:\n\nThe standard naming for a constant is \\\u003cConstant Type\u003e\\\u003cEnum Name\u003e. The only exception is 'state' types, where the word 'state' is omitted from the enum values.\n\nFor Example:\n\n\tConstant Type: PackageType\n\tEnum Name: Bits\n\tEnum Value: \"bits\"\n\tconst PackageTypeBits PackageType = \"bits\"\n\n\tConstant Type: PackageState\n\tEnum Name: Expired\n\tEnum Value: \"EXPIRED\"\n\tconst PackageExpired PackageState = \"EXPIRED\"\n\nPackage constant contains types and constants used by the ccv2 package.\n\n## Types\n\n```go\ntype ApplicationHealthCheckType string\n```\nApplicationHealthCheckType is the method to reach the applications health check\n\n```go\nconst (\n\tApplicationHealthCheckHTTP    ApplicationHealthCheckType = \"http\"\n\tApplicationHealthCheckPort    ApplicationHealthCheckType = \"port\"\n\tApplicationHealthCheckProcess ApplicationHealthCheckType = \"process\"\n)\n```\n\n```go\ntype ApplicationInstanceState string\n```\nApplicationInstanceState reflects the state of the individual app instance.\n\n```go\nconst (\n\t// ApplicationInstanceCrashed represents an application instance in the\n\t// crashed state.\n\tApplicationInstanceCrashed ApplicationInstanceState = \"CRASHED\"\n\t// ApplicationInstanceDown represents an application instance in the down\n\t// state.\n\tApplicationInstanceDown ApplicationInstanceState = \"DOWN\"\n\t// ApplicationInstanceFlapping represents an application instance that keeps\n\t// failing after it starts.\n\tApplicationInstanceFlapping ApplicationInstanceState = \"FLAPPING\"\n\t// ApplicationInstanceRunning represents an application instance that is\n\t// currently running.\n\tApplicationInstanceRunning ApplicationInstanceState = \"RUNNING\"\n\t// ApplicationInstanceStarting represents an application that is the process\n\t// of starting.\n\tApplicationInstanceStarting ApplicationInstanceState = \"STARTING\"\n\t// ApplicationInstanceUnknown represents a state that cannot be determined.\n\tApplicationInstanceUnknown ApplicationInstanceState = \"UNKNOWN\"\n)\n```\n\n```go\ntype ApplicationPackageState string\n```\nApplicationPackageState is the staging state of application bits.\n\n```go\nconst (\n\tApplicationPackageFailed  ApplicationPackageState = \"FAILED\"\n\tApplicationPackagePending ApplicationPackageState = \"PENDING\"\n\tApplicationPackageStaged  ApplicationPackageState = \"STAGED\"\n\tApplicationPackageUnknown ApplicationPackageState = \"UNKNOWN\"\n)\n```\n\n```go\ntype ApplicationState string\n```\nApplicationState is the running state of an application.\n\n```go\nconst (\n\tApplicationStarted ApplicationState = \"STARTED\"\n\tApplicationStopped ApplicationState = \"STOPPED\"\n)\n```\n\n```go\ntype DomainType string\n```\n\n```go\nconst (\n\tPrivateDomain DomainType = \"owned\"\n\tSharedDomain  DomainType = \"shared\"\n)\n```\n\n```go\ntype EventType string\n```\nEventType is the type of event that occurred in cloud foundry.\n\n```go\nconst (\n\t// EventTypeApplicationCrash denotes an event where an application crashed.\n\tEventTypeApplicationCrash EventType = \"app.crash\"\n\n\t// EventTypeAuditApplicationCopyBits denotes an event where the CC copies bits\n\t// from one application to another\n\tEventTypeAuditApplicationCopyBits EventType = \"audit.app.copy-bits\"\n\n\t// EventTypeAuditApplicationCreate denotes an event where the CC creates an\n\t// applicaion.\n\tEventTypeAuditApplicationCreate EventType = \"audit.app.create\"\n\n\t// EventTypeAuditApplicationDeleteRequest denotes an event where the CC\n\t// receives a request to delete an application.\n\tEventTypeAuditApplicationDeleteRequest EventType = \"audit.app.delete-request\"\n\n\tEventTypeAuditApplicationDropletMapped EventType = \"audit.app.droplet.mapped\"\n\n\t// EventTypeAuditApplicationMapRoute denotes an event where the CC maps an\n\t// application to a route.\n\tEventTypeAuditApplicationMapRoute EventType = \"audit.app.map-route\"\n\n\t// EventTypeAuditApplicationPackageCreate denotes an event where the CC creates an\n\t// application package.\n\tEventTypeAuditApplicationPackageCreate EventType = \"audit.app.package.create\"\n\n\t// EventTypeAuditApplicationPackageDelete denotes an event where the CC deletes an\n\t// application package.\n\tEventTypeAuditApplicationPackageDelete EventType = \"audit.app.package.delete\"\n\n\t// EventTypeAuditApplicationPackageDownload denotes an event where an application\n\t// package is downloaded.\n\tEventTypeAuditApplicationPackageDownload EventType = \"audit.app.package.download\"\n\n\t// EventTypeAuditApplicationPackageUpload denotes an event where an application\n\t// package is uploaded.\n\tEventTypeAuditApplicationPackageUpload EventType = \"audit.app.package.upload\"\n\n\t// EventTypeAuditApplicationRestage denotes an event where the CC restages an\n\t// application.\n\tEventTypeAuditApplicationRestage EventType = \"audit.app.restage\"\n\n\tEventTypeAuditApplicationSSHAuthorized EventType = \"audit.app.ssh-authorized\"\n\n\tEventTypeAuditApplicationSSHUnauthorized EventType = \"audit.app.ssh-unauthorized\"\n\n\t// EventTypeAuditApplicationStart denotes an event where the CC starts an\n\t// application.\n\tEventTypeAuditApplicationStart EventType = \"audit.app.start\"\n\n\t// EventTypeAuditApplicationStop denotes an event where the CC stops an\n\t// application.\n\tEventTypeAuditApplicationStop EventType = \"audit.app.stop\"\n\n\t// EventTypeAuditApplicationUnmapRoute denotes an event where the CC unmaps\n\t// an application from a route.\n\tEventTypeAuditApplicationUnmapRoute EventType = \"audit.app.unmap-route\"\n\n\t// EventTypeAuditApplicationUpdate denotes an event where the CC updates an\n\t// application.\n\tEventTypeAuditApplicationUpdate EventType = \"audit.app.update\"\n\n\t// EventTypeAuditApplicationUploadBits denotes an event where application\n\t// bits are uploaded to the CC.\n\tEventTypeAuditApplicationUploadBits EventType = \"audit.app.upload-bits\"\n\n\t// EventTypeOrganizationCreate denotes an event where the CC creates an\n\t// organization.\n\tEventTypeOrganizationCreate EventType = \"audit.organization.create\"\n\n\t// EventTypeOrganizationDeleteRequest denotes an event where the CC receives\n\t// request to delete an organization.\n\tEventTypeOrganizationDeleteRequest EventType = \"audit.organization.delete-request\"\n\n\t// EventTypeOrganizationUpdate denotes an event where the CC updates an\n\t// organization.\n\tEventTypeOrganizationUpdate EventType = \"audit.organization.update\"\n\n\t// EventTypeAuditRouteCreate denotes an event where the CC creates a route.\n\tEventTypeAuditRouteCreate EventType = \"audit.route.create\"\n\n\t// EventTypeAuditRouteDeleteRequest denotes an event where the CC receives a\n\t// request to delete a route.\n\tEventTypeAuditRouteDeleteRequest EventType = \"audit.route.delete-request\"\n\n\t// EventTypeAuditRouteUpdate denotes an event where the CC updates a route.\n\tEventTypeAuditRouteUpdate EventType = \"audit.route.update\"\n\n\t// EventTypeAuditServiceCreate denotes an event where the CC creates a service.\n\tEventTypeAuditServiceCreate EventType = \"audit.service.create\"\n\n\t// EventTypeAuditServiceDelete denotes an event where the CC deletes a service.\n\tEventTypeAuditServiceDelete EventType = \"audit.service.delete\"\n\n\t// EventTypeAuditServiceUpdate denotes an event where the CC updates a service.\n\tEventTypeAuditServiceUpdate EventType = \"audit.service.update\"\n\n\t// EventTypeAuditServiceBindingCreate denotes an event where the CC creates\n\t// a service binding.\n\tEventTypeAuditServiceBindingCreate EventType = \"audit.service_binding.create\"\n\n\t// EventTypeAuditServiceBindingDelete denotes an event where the CC deletes\n\t// a service binding.\n\tEventTypeAuditServiceBindingDelete EventType = \"audit.service_binding.delete\"\n\n\t// EventTypeAuditServiceBrokerCreate denotes an event where the CC creates\n\t// a service broker.\n\tEventTypeAuditServiceBrokerCreate EventType = \"audit.service_broker.create\"\n\n\t// EventTypeAuditServiceBrokerDelete denotes an event where the CC deletes\n\t// a service broker.\n\tEventTypeAuditServiceBrokerDelete EventType = \"audit.service_broker.delete\"\n\n\t// EventTypeAuditServiceBrokerUpdate denotes an event where the CC updates\n\t// a service broker.\n\tEventTypeAuditServiceBrokerUpdate EventType = \"audit.service_broker.update\"\n\n\tEventTypeAuditServiceDashboardClientCreate EventType = \"audit.service_dashboard_client.create\"\n\n\tEventTypeAuditServiceDashboardClientDelete EventType = \"audit.service_dashboard_client.delete\"\n\n\tEventTypeServiceInstanceBindRoute EventType = \"audit.service_instance.bind_route\"\n\n\t// EventTypeAuditServiceInstanceCreate denotes an event where the CC creates\n\t// a service instance.\n\tEventTypeAuditServiceInstanceCreate EventType = \"audit.service_instance.create\"\n\n\t// EventTypeAuditServiceInstanceDelete denotes an event where the CC deletes\n\t// a service instance.\n\tEventTypeAuditServiceInstanceDelete EventType = \"audit.service_instance.delete\"\n\n\tEventTypeServiceInstanceUnbindRoute EventType = \"audit.service_instance.unbind_route\"\n\n\t// EventTypeAuditServiceInstanceUpdate denotes an event where the CC updates\n\t// a service instance.\n\tEventTypeAuditServiceInstanceUpdate EventType = \"audit.service_instance.update\"\n\n\tEventTypeAuditServiceKeyCreate EventType = \"audit.service_key.create\"\n\n\tEventTypeAuditServiceKeyDelete EventType = \"audit.service_key.delete\"\n\n\t// EventTypeAuditServicePlanCreate denotes an event where the CC creates\n\t// a service plan.\n\tEventTypeAuditServicePlanCreate EventType = \"audit.service_plan.create\"\n\n\t// EventTypeAuditServicePlanDelete denotes an event where the CC deletes\n\t// a service plan.\n\tEventTypeAuditServicePlanDelete EventType = \"audit.service_plan.delete\"\n\n\t// EventTypeAuditServicePlanUpdate denotes an event where the CC updates\n\t// a service plan.\n\tEventTypeAuditServicePlanUpdate EventType = \"audit.service_plan.update\"\n\n\tEventTypeAuditServicePlanVisibilityCreate EventType = \"audit.service_plan_visibility.create\"\n\n\tEventTypeAuditServicePlanVisibilityDelete EventType = \"audit.service_plan_visibility.delete\"\n\n\tEventTypeAuditServicePlanVisibilityUpdate EventType = \"audit.service_plan_visibility.update\"\n\n\t// EventTypeAuditSpaceCreate denotes an event where the CC creates a space.\n\tEventTypeAuditSpaceCreate EventType = \"audit.space.create\"\n\n\t// EventTypeAuditSpaceDeleteRequest denotes an event where the CC receives a\n\t// request to delete a space.\n\tEventTypeAuditSpaceDeleteRequest EventType = \"audit.space.delete-request\"\n\n\t// EventTypeAuditSpaceUpdate denotes an event where the CC updates a space.\n\tEventTypeAuditSpaceUpdate EventType = \"audit.space.update\"\n\n\t// EventTypeAuditUserProvidedServiceInstanceCreate denotes an event where the\n\t// CC creates a user provided service instance.\n\tEventTypeAuditUserProvidedServiceInstanceCreate EventType = \"audit.user_provided_service_instance.create\"\n\n\t// EventTypeAuditUserProvidedServiceInstanceDelete denotes an event where the\n\t// CC deletes a user provided service instance.\n\tEventTypeAuditUserProvidedServiceInstanceDelete EventType = \"audit.user_provided_service_instance.delete\"\n\n\t// EventTypeAuditUserProvidedServiceInstanceUpdate denotes an event where the\n\t// CC updates a user provided service instance.\n\tEventTypeAuditUserProvidedServiceInstanceUpdate EventType = \"audit.user_provided_service_instance.update\"\n\n\t// EventTypeAuditUserSpaceAuditorAdd denotes an event where the CC associates\n\t// an auditor with a space.\n\tEventTypeAuditUserSpaceAuditorAdd EventType = \"audit.user.space_auditor_add\"\n\n\t// EventTypeAuditUserSpaceAuditorRemove denotes an event where the CC removes\n\t// an auditor from a space.\n\tEventTypeAuditUserSpaceAuditorRemove EventType = \"audit.user.space_auditor_remove\"\n\n\t// EventTypeAuditUserSpaceManagerAdd denotes an event where the CC associates\n\t// a manager with a space.\n\tEventTypeAuditUserSpaceManagerAdd EventType = \"audit.user.space_manager_add\"\n\n\t// EventTypeAuditUserSpaceManagerRemove denotes an event where the CC removes\n\t// a manager from a space.\n\tEventTypeAuditUserSpaceManagerRemove EventType = \"audit.user.space_manager_remove\"\n\n\t// EventTypeAuditUserSpaceDeveloperAdd denotes an event where the CC\n\t// associates a developer with a space.\n\tEventTypeAuditUserSpaceDeveloperAdd EventType = \"audit.user.space_developer_add\"\n\n\t// EventTypeAuditUserSpaceDeveloperRemove denotes an event where the CC removes\n\t// a developer from a space.\n\tEventTypeAuditUserSpaceDeveloperRemove EventType = \"audit.user.space_developer_remove\"\n\n\t// EventTypeAuditUserOrganizationAuditorAdd denotes an event where the CC\n\t// associates an auditor with an organization.\n\tEventTypeAuditUserOrganizationAuditorAdd EventType = \"audit.user.organization_auditor_add\"\n\n\t// EventTypeAuditUserOrganizationAuditorRemove denotes an event where the CC\n\t// removes an auditor from an organization.\n\tEventTypeAuditUserOrganizationAuditorRemove EventType = \"audit.user.organization_auditor_remove\"\n\n\t// EventTypeAuditUserOrganizationBillingManagerAdd denotes an event where the CC\n\t// associates a billing manager with an organization.\n\tEventTypeAuditUserOrganizationBillingManagerAdd EventType = \"audit.user.organization_billing_manager_add\"\n\n\t// EventTypeAuditUserOrganizationBillingManagerRemove denotes an event where the CC\n\t// removes a billing manager from an organization.\n\tEventTypeAuditUserOrganizationBillingManagerRemove EventType = \"audit.user.organization_billing_manager_remove\"\n\n\t// EventTypeAuditUserOrganizationManagerAdd denotes an event where the CC\n\t// associates a manager with an organization.\n\tEventTypeAuditUserOrganizationManagerAdd EventType = \"audit.user.organization_manager_add\"\n\n\t// EventTypeAuditUserOrganizationManagerRemove denotes an event where the CC\n\t// removes a manager from an organization.\n\tEventTypeAuditUserOrganizationManagerRemove EventType = \"audit.user.organization_manager_remove\"\n\n\t// EventTypeAuditUserOrganizationUserAdd denotes an event where the CC associates\n\t// an organization with a user.\n\tEventTypeAuditUserOrganizationUserAdd EventType = \"audit.user.organization_user_add\"\n\n\t// EventTypeAuditUserOrganizationUserRemove denotes an event where the CC\n\t// associates an organization with a user.\n\tEventTypeAuditUserOrganizationUserRemove EventType = \"audit.user.organization_user_remove\"\n\n\tEventTypeBlobRemoveOrphan EventType = \"blob.remove_orphan\"\n\n\t// EventTypeAuditApplicationBuildCreate denotes an event where an application\n\t// build is created.\n\tEventTypeAuditApplicationBuildCreate EventType = \"audit.app.build.create\"\n\n\t// EventTypeAuditApplicationDropletCreate denotes an event where an application\n\t// droplet is created.\n\tEventTypeAuditApplicationDropletCreate EventType = \"audit.app.droplet.create\"\n\n\t// EventTypeAuditApplicationDropletDelete denotes an event where an application\n\t// droplet is deleted.\n\tEventTypeAuditApplicationDropletDelete EventType = \"audit.app.droplet.delete\"\n\n\t// EventTypeAuditApplicationDropletDownload denotes an event where an application\n\t// droplet is downloaded.\n\tEventTypeAuditApplicationDropletDownload EventType = \"audit.app.droplet.download\"\n\n\t// EventTypeAuditApplicationProcessCrash denotes an event where an application\n\t// process crashes.\n\tEventTypeAuditApplicationProcessCrash EventType = \"audit.app.process.crash\"\n\n\t// EventTypeAuditApplicationProcessCreate denotes an event where the CC\n\t// creates an application process.\n\tEventTypeAuditApplicationProcessCreate EventType = \"audit.app.process.create\"\n\n\t// EventTypeAuditApplicationProcessDelete denotes an event where the CC\n\t// deletes an application process.\n\tEventTypeAuditApplicationProcessDelete EventType = \"audit.app.process.delete\"\n\n\t// EventTypeAuditApplicationProcessScale denotes an event where the CC scales\n\t// an application process.\n\tEventTypeAuditApplicationProcessScale EventType = \"audit.app.process.scale\"\n\n\t// EventTypeAuditApplicationProcessTerminateInstance denotes an event where\n\t// the CC terminates an application process instance.\n\tEventTypeAuditApplicationProcessTerminateInstance EventType = \"audit.app.process.terminate_instance\"\n\n\t// EventTypeAuditApplicationProcessUpdate denotes an event where the CC\n\t// updates an application process.\n\tEventTypeAuditApplicationProcessUpdate EventType = \"audit.app.process.update\"\n\n\t// EventTypeAuditApplicationTaskCancel denotes an event where the CC cancels\n\t// a task.\n\tEventTypeAuditApplicationTaskCancel EventType = \"audit.app.task.cancel\"\n\n\t// EventTypeAuditApplicationTaskCreate denotes an event where the CC creates\n\t// a task.\n\tEventTypeAuditApplicationTaskCreate EventType = \"audit.app.task.create\"\n\n\tEventTypeServiceInstanceShare EventType = \"audit.service_instance.share\"\n\n\tEventTypeServiceInstanceUnshare EventType = \"audit.service_instance.unshare\"\n)\n```\n\n```go\ntype FeatureFlagName string\n```\nFeatureFlagName is the name of the feature flag given by the Cloud Controller.\n\n```go\nconst (\n\t// FeatureFlagServiceInstanceSharing is the name of the service instance\n\t// sharing feature flag.\n\tFeatureFlagServiceInstanceSharing FeatureFlagName = \"service_instance_sharing\"\n)\n```\n\n```go\ntype FilterOperator string\n```\nFilterOperator is the type of operation a Filter uses.\n\n```go\nconst (\n\t// EqualOperator is the Filter's equal operator.\n\tEqualOperator FilterOperator = \":\"\n\n\t// GreaterThanOperator is the query greater than operator.\n\tGreaterThanOperator FilterOperator = \"\u003e\"\n\n\t// InOperator is the Filter's \"IN\" operator.\n\tInOperator FilterOperator = \" IN \"\n)\n```\n\n```go\ntype FilterType string\n```\nFilterType is the type of filter a Filter uses.\n\n```go\nconst (\n\t// AppGUIDFilter is the name of the 'app_guid' filter.\n\tAppGUIDFilter FilterType = \"app_guid\"\n\t// DomainGUIDFilter is the name of the 'domain_guid' filter.\n\tDomainGUIDFilter FilterType = \"domain_guid\"\n\t// OrganizationGUIDFilter is the name of the 'organization_guid' filter.\n\tOrganizationGUIDFilter FilterType = \"organization_guid\"\n\t// RouteGUIDFilter is the name of the 'route_guid' filter.\n\tRouteGUIDFilter FilterType = \"route_guid\"\n\t// ServiceBrokerGUIDFilter is the name of the 'service_broker_guid' filter.\n\tServiceBrokerGUIDFilter FilterType = \"service_broker_guid\"\n\t// ServiceGUIDFilter is the name of the 'service_guid' filter.\n\tServiceGUIDFilter FilterType = \"service_guid\"\n\t// ServiceInstanceGUIDFilter is the name of the 'service_instance_guid' filter.\n\tServiceInstanceGUIDFilter FilterType = \"service_instance_guid\"\n\t// ServicePlanGUIDFilter is the name of the 'service_plan_guid' filter.\n\tServicePlanGUIDFilter FilterType = \"service_plan_guid\"\n\t// SpaceGUIDFilter is the name of the 'space_guid' filter.\n\tSpaceGUIDFilter FilterType = \"space_guid\"\n\n\t// LabelFilter is the name of the 'label' filter.\n\tLabelFilter FilterType = \"label\"\n\t// NameFilter is the name of the 'name' filter.\n\tNameFilter FilterType = \"name\"\n\t// HostFilter is the name of the 'host' filter.\n\tHostFilter FilterType = \"host\"\n\t// PathFilter is the name of the 'path' filter.\n\tPathFilter FilterType = \"path\"\n\t// PortFilter is the name of the 'port' filter.\n\tPortFilter FilterType = \"port\"\n\t//StackFilter is the name of the 'stack' filter.\n\tStackFilter FilterType = \"stack\"\n\t// TimestampFilter is the name of the 'timestamp' filter.\n\tTimestampFilter FilterType = \"timestamp\"\n\t// TypeFilter is the name of the 'type' filter.\n\tTypeFilter FilterType = \"type\"\n)\n```\n\n```go\ntype JobStatus string\n```\nJobStatus is the current state of a job.\n\n```go\nconst (\n\t// JobStatusFailed is when the job is no longer running due to a failure.\n\tJobStatusFailed JobStatus = \"failed\"\n\n\t// JobStatusFinished is when the job is no longer and it was successful.\n\tJobStatusFinished JobStatus = \"finished\"\n\n\t// JobStatusQueued is when the job is waiting to be run.\n\tJobStatusQueued JobStatus = \"queued\"\n\n\t// JobStatusRunning is when the job is running.\n\tJobStatusRunning JobStatus = \"running\"\n)\n```\n\n```go\ntype LastOperationState string\n```\n\n```go\nconst (\n\tLastOperationInProgress LastOperationState = \"in progress\"\n\tLastOperationSucceeded  LastOperationState = \"succeeded\"\n\tLastOperationFailed     LastOperationState = \"failed\"\n)\n```\n\n```go\ntype RouterGroupType string\n```\nRouterGroupType is an enumeration of all possible router group types.\n\n```go\nconst (\n\t// TCPRouterGroup represents a TCP router group.\n\tTCPRouterGroup RouterGroupType = \"tcp\"\n\t// HTTPRouterGroup represents a HTTP router group.\n\tHTTPRouterGroup RouterGroupType = \"http\"\n)\n```\n\n```go\ntype SecurityGroupLifecycle string\n```\nSecurityGroupLifecycle represents the lifecycle phase of a security group binding.\n\n```go\nconst (\n\t// SecurityGroupLifecycleRunning indicates the lifecycle phase running.\n\tSecurityGroupLifecycleRunning SecurityGroupLifecycle = \"running\"\n\n\t// SecurityGroupLifecycleStaging indicates the lifecycle phase staging.\n\tSecurityGroupLifecycleStaging SecurityGroupLifecycle = \"staging\"\n)\n```\n\n```go\ntype ServiceInstanceType string\n```\n\n```go\nconst (\n\t// UserProvidedService is a Service Instance that is created by a user.\n\tServiceInstanceTypeUserProvidedService ServiceInstanceType = \"user_provided_service_instance\"\n\n\t// ManagedService is a Service Instance that is managed by a service broker.\n\tServiceInstanceTypeManagedService ServiceInstanceType = \"managed_service_instance\"\n)\n```\n\n","path":"github.com/randomtask1155/cli/api/cloudcontroller/ccv2/constant","name":"constant","synopsis":"Package constant contains types and constants used by the ccv2 package.","isRedistributable":true}
