Documentation ¶
Overview ¶
Package v7action contains the business logic for the commands/v7 package
Index ¶
- Constants
- func GetHumanReadableOrigin(user resources.User) string
- func SortUsers(users []resources.User)
- func Zipit(source, target, prefix string) error
- type Actor
- func (actor Actor) ApplyApplicationManifest(parser ManifestParser, spaceGUID string) (Warnings, error)
- func (actor Actor) ApplyOrganizationQuotaByName(quotaName string, orgGUID string) (Warnings, error)
- func (actor Actor) ApplySpaceQuotaByName(quotaName, spaceGUID, orgGUID string) (Warnings, error)
- func (actor Actor) AssignIsolationSegmentToSpaceByNameAndSpace(isolationSegmentName string, spaceGUID string) (Warnings, error)
- func (actor Actor) BindSecurityGroupToSpaces(securityGroupGUID string, spaces []resources.Space, ...) (Warnings, error)
- func (actor Actor) CancelDeployment(deploymentGUID string) (Warnings, error)
- func (actor Actor) CheckRoute(domainName string, hostname string, path string, port int) (bool, Warnings, error)
- func (actor Actor) ClearTarget()
- func (actor Actor) CopyPackage(sourceApp resources.Application, targetApp resources.Application) (resources.Package, Warnings, error)
- func (actor Actor) CreateAndUploadBitsPackageByApplicationNameAndSpace(appName string, spaceGUID string, bitsPath string) (resources.Package, Warnings, error)
- func (actor Actor) CreateApplicationDroplet(appGUID string) (resources.Droplet, Warnings, error)
- func (actor Actor) CreateApplicationInSpace(app resources.Application, spaceGUID string) (resources.Application, Warnings, error)
- func (actor Actor) CreateBitsPackageByApplication(appGUID string) (resources.Package, Warnings, error)
- func (actor Actor) CreateBuildpack(buildpack resources.Buildpack) (resources.Buildpack, Warnings, error)
- func (actor Actor) CreateDeploymentByApplicationAndDroplet(appGUID string, dropletGUID string) (string, Warnings, error)
- func (actor Actor) CreateDeploymentByApplicationAndRevision(appGUID string, revisionGUID string) (string, Warnings, error)
- func (actor Actor) CreateDockerPackageByApplication(appGUID string, dockerImageCredentials DockerImageCredentials) (resources.Package, Warnings, error)
- func (actor Actor) CreateDockerPackageByApplicationNameAndSpace(appName string, spaceGUID string, ...) (resources.Package, Warnings, error)
- func (actor Actor) CreateIsolationSegmentByName(isolationSegment resources.IsolationSegment) (Warnings, error)
- func (actor Actor) CreateManagedServiceInstance(params CreateManagedServiceInstanceParams) (chan PollJobEvent, Warnings, error)
- func (actor Actor) CreateOrgRole(roleType constant.RoleType, orgGUID string, userNameOrGUID string, ...) (Warnings, error)
- func (actor Actor) CreateOrganization(orgName string) (resources.Organization, Warnings, error)
- func (actor Actor) CreateOrganizationQuota(name string, limits QuotaLimits) (Warnings, error)
- func (actor Actor) CreatePrivateDomain(domainName string, orgName string) (Warnings, error)
- func (actor Actor) CreateRoute(spaceGUID, domainName, hostname, path string, port int) (resources.Route, Warnings, error)
- func (actor Actor) CreateRouteBinding(params CreateRouteBindingParams) (chan PollJobEvent, Warnings, error)
- func (actor Actor) CreateSecurityGroup(name, filePath string) (Warnings, error)
- func (actor Actor) CreateServiceAppBinding(params CreateServiceAppBindingParams) (chan PollJobEvent, Warnings, error)
- func (actor Actor) CreateServiceBroker(model resources.ServiceBroker) (Warnings, error)
- func (actor Actor) CreateServiceKey(params CreateServiceKeyParams) (chan PollJobEvent, Warnings, error)
- func (actor Actor) CreateSharedDomain(domainName string, internal bool, routerGroupName string) (Warnings, error)
- func (actor Actor) CreateSpace(spaceName, orgGUID string) (resources.Space, Warnings, error)
- func (actor Actor) CreateSpaceQuota(spaceQuotaName string, orgGuid string, limits QuotaLimits) (Warnings, error)
- func (actor Actor) CreateSpaceRole(roleType constant.RoleType, orgGUID string, spaceGUID string, ...) (Warnings, error)
- func (actor Actor) CreateUser(username string, password string, origin string) (resources.User, Warnings, error)
- func (actor Actor) CreateUserProvidedServiceInstance(serviceInstance resources.ServiceInstance) (Warnings, error)
- func (actor Actor) DeleteApplicationByNameAndSpace(name, spaceGUID string, deleteRoutes bool) (Warnings, error)
- func (actor Actor) DeleteBuildpackByNameAndStack(buildpackName string, buildpackStack string) (Warnings, error)
- func (actor Actor) DeleteDomain(domain resources.Domain) (Warnings, error)
- func (actor Actor) DeleteInstanceByApplicationNameSpaceProcessTypeAndIndex(appName string, spaceGUID string, processType string, instanceIndex int) (Warnings, error)
- func (actor Actor) DeleteIsolationSegmentByName(name string) (Warnings, error)
- func (actor Actor) DeleteIsolationSegmentOrganizationByName(isolationSegmentName string, orgName string) (Warnings, error)
- func (actor Actor) DeleteOrgRole(roleType constant.RoleType, orgGUID string, userNameOrGUID string, ...) (Warnings, error)
- func (actor Actor) DeleteOrganization(name string) (Warnings, error)
- func (actor Actor) DeleteOrganizationQuota(quotaName string) (Warnings, error)
- func (actor Actor) DeleteOrphanedRoutes(spaceGUID string) (Warnings, error)
- func (actor Actor) DeleteRoute(domainName, hostname, path string, port int) (Warnings, error)
- func (actor Actor) DeleteRouteBinding(params DeleteRouteBindingParams) (chan PollJobEvent, Warnings, error)
- func (actor Actor) DeleteSecurityGroup(securityGroupName string) (Warnings, error)
- func (actor Actor) DeleteServiceAppBinding(params DeleteServiceAppBindingParams) (chan PollJobEvent, Warnings, error)
- func (actor Actor) DeleteServiceBroker(serviceBrokerGUID string) (Warnings, error)
- func (actor Actor) DeleteServiceInstance(serviceInstanceName, spaceGUID string) (chan PollJobEvent, Warnings, error)
- func (actor Actor) DeleteServiceKeyByServiceInstanceAndName(serviceInstanceName, serviceKeyName, spaceGUID string) (chan PollJobEvent, Warnings, error)
- func (actor Actor) DeleteSpaceByNameAndOrganizationName(spaceName string, orgName string) (Warnings, error)
- func (actor Actor) DeleteSpaceQuotaByName(quotaName string, orgGUID string) (Warnings, error)
- func (actor Actor) DeleteSpaceRole(roleType constant.RoleType, spaceGUID string, userNameOrGUID string, ...) (Warnings, error)
- func (actor Actor) DeleteUser(userGuid string) (Warnings, error)
- func (actor Actor) DiffSpaceManifest(spaceGUID string, rawManifest []byte) (resources.ManifestDiff, Warnings, error)
- func (actor Actor) DisableFeatureFlag(flagName string) (Warnings, error)
- func (actor *Actor) DisableServiceAccess(offeringName, brokerName, orgName, planName string) (SkippedPlans, Warnings, error)
- func (actor Actor) DownloadCurrentDropletByAppName(appName string, spaceGUID string) ([]byte, string, Warnings, error)
- func (actor Actor) DownloadDropletByGUIDAndAppName(dropletGUID string, appName string, spaceGUID string) ([]byte, Warnings, error)
- func (actor Actor) EnableFeatureFlag(flagName string) (Warnings, error)
- func (actor *Actor) EnableServiceAccess(offeringName, brokerName, orgName, planName string) (SkippedPlans, Warnings, error)
- func (actor Actor) EntitleIsolationSegmentToOrganizationByName(isolationSegmentName string, orgName string) (Warnings, error)
- func (actor Actor) GetAppFeature(appGUID string, featureName string) (resources.ApplicationFeature, Warnings, error)
- func (actor Actor) GetAppSummariesForSpace(spaceGUID string, labelSelector string) ([]ApplicationSummary, Warnings, error)
- func (actor Actor) GetApplicationByNameAndSpace(appName string, spaceGUID string) (resources.Application, Warnings, error)
- func (actor Actor) GetApplicationDroplets(appName string, spaceGUID string) ([]resources.Droplet, Warnings, error)
- func (actor *Actor) GetApplicationLabels(appName string, spaceGUID string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetApplicationMapForRoute(route resources.Route) (map[string]resources.Application, Warnings, error)
- func (actor *Actor) GetApplicationPackages(appName string, spaceGUID string) ([]resources.Package, Warnings, error)
- func (actor Actor) GetApplicationProcessHealthChecksByNameAndSpace(appName string, spaceGUID string) ([]ProcessHealthCheck, Warnings, error)
- func (actor Actor) GetApplicationRevisionsDeployed(appGUID string) ([]resources.Revision, Warnings, error)
- func (actor Actor) GetApplicationRoutes(appGUID string) ([]resources.Route, Warnings, error)
- func (actor Actor) GetApplicationTasks(appGUID string, sortOrder SortOrder) ([]resources.Task, Warnings, error)
- func (actor Actor) GetApplicationsByGUIDs(appGUIDs []string) ([]resources.Application, Warnings, error)
- func (actor Actor) GetApplicationsByNamesAndSpace(appNames []string, spaceGUID string) ([]resources.Application, Warnings, error)
- func (actor Actor) GetApplicationsBySpace(spaceGUID string) ([]resources.Application, Warnings, error)
- func (actor Actor) GetBuildpackByNameAndStack(buildpackName string, buildpackStack string) (resources.Buildpack, Warnings, error)
- func (actor *Actor) GetBuildpackLabels(buildpackName string, buildpackStack string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetBuildpacks(labelSelector string) ([]resources.Buildpack, Warnings, error)
- func (actor Actor) GetCurrentDropletByApplication(appGUID string) (resources.Droplet, Warnings, error)
- func (actor Actor) GetDefaultDomain(orgGUID string) (resources.Domain, Warnings, error)
- func (actor Actor) GetDetailedAppSummary(appName, spaceGUID string, withObfuscatedValues bool) (DetailedApplicationSummary, Warnings, error)
- func (actor Actor) GetDomain(domainGUID string) (resources.Domain, Warnings, error)
- func (actor Actor) GetDomainAndOrgGUIDsByName(domainName string, orgName string) (string, string, Warnings, error)
- func (actor Actor) GetDomainByName(domainName string) (resources.Domain, Warnings, error)
- func (actor *Actor) GetDomainLabels(domainName string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetEffectiveIsolationSegmentBySpace(spaceGUID string, orgDefaultIsolationSegmentGUID string) (resources.IsolationSegment, Warnings, error)
- func (actor *Actor) GetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName) (EnvironmentVariableGroup, Warnings, error)
- func (actor *Actor) GetEnvironmentVariablesByApplicationNameAndSpace(appName string, spaceGUID string) (EnvironmentVariableGroups, Warnings, error)
- func (actor Actor) GetFeatureFlagByName(featureFlagName string) (resources.FeatureFlag, Warnings, error)
- func (actor Actor) GetFeatureFlags() ([]resources.FeatureFlag, Warnings, error)
- func (actor Actor) GetGlobalRunningSecurityGroups() ([]resources.SecurityGroup, Warnings, error)
- func (actor Actor) GetGlobalStagingSecurityGroups() ([]resources.SecurityGroup, Warnings, error)
- func (actor Actor) GetIsolationSegmentByName(name string) (resources.IsolationSegment, Warnings, error)
- func (actor Actor) GetIsolationSegmentSummaries() ([]IsolationSegmentSummary, Warnings, error)
- func (actor Actor) GetIsolationSegmentsByOrganization(orgGUID string) ([]resources.IsolationSegment, Warnings, error)
- func (actor Actor) GetLatestActiveDeploymentForApp(appGUID string) (resources.Deployment, Warnings, error)
- func (actor Actor) GetNewestReadyPackageForApplication(app resources.Application) (resources.Package, Warnings, error)
- func (actor Actor) GetOrgUsersByRoleType(orgGuid string) (map[constant.RoleType][]resources.User, Warnings, error)
- func (actor Actor) GetOrganizationByGUID(orgGUID string) (resources.Organization, Warnings, error)
- func (actor Actor) GetOrganizationByName(name string) (resources.Organization, Warnings, error)
- func (actor Actor) GetOrganizationDefaultIsolationSegment(orgGUID string) (string, Warnings, error)
- func (actor Actor) GetOrganizationDomains(orgGuid string, labelSelector string) ([]resources.Domain, Warnings, error)
- func (actor *Actor) GetOrganizationLabels(orgName string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetOrganizationQuotaByName(orgQuotaName string) (resources.OrganizationQuota, Warnings, error)
- func (actor Actor) GetOrganizationQuotas() ([]resources.OrganizationQuota, Warnings, error)
- func (actor Actor) GetOrganizationSpaces(orgGUID string) ([]resources.Space, Warnings, error)
- func (actor Actor) GetOrganizationSpacesWithLabelSelector(orgGUID string, labelSelector string) ([]resources.Space, Warnings, error)
- func (actor Actor) GetOrganizationSummaryByName(orgName string) (OrganizationSummary, Warnings, error)
- func (actor Actor) GetOrganizations(labelSelector string) ([]resources.Organization, Warnings, error)
- func (actor Actor) GetProcess(processGUID string) (resources.Process, Warnings, error)
- func (actor Actor) GetProcessByTypeAndApplication(processType string, appGUID string) (resources.Process, Warnings, error)
- func (actor Actor) GetRawApplicationManifestByNameAndSpace(appName string, spaceGUID string) ([]byte, Warnings, error)
- func (actor Actor) GetRecentEventsByApplicationNameAndSpace(appName string, spaceGUID string) ([]Event, Warnings, error)
- func (actor Actor) GetRecentLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) ([]sharedaction.LogMessage, Warnings, error)
- func (actor Actor) GetRevisionByApplicationAndVersion(appGUID string, revisionVersion int) (resources.Revision, Warnings, error)
- func (actor *Actor) GetRevisionsByApplicationNameAndSpace(appName string, spaceGUID string) ([]resources.Revision, Warnings, error)
- func (actor Actor) GetRoleGUID(queryKey ccv3.QueryKey, orgOrSpaceGUID string, userGUID string, ...) (string, Warnings, error)
- func (actor Actor) GetRootResponse() (Info, Warnings, error)
- func (actor Actor) GetRoute(routePath string, spaceGUID string) (resources.Route, Warnings, error)
- func (actor Actor) GetRouteByAttributes(domain resources.Domain, hostname string, path string, port int) (resources.Route, Warnings, error)
- func (actor Actor) GetRouteDestinationByAppGUID(route resources.Route, appGUID string) (resources.RouteDestination, error)
- func (actor Actor) GetRouteDestinations(routeGUID string) ([]resources.RouteDestination, Warnings, error)
- func (actor *Actor) GetRouteLabels(routeName string, spaceGUID string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetRouteSummaries(routes []resources.Route) ([]RouteSummary, Warnings, error)
- func (actor Actor) GetRouterGroupByName(name string) (RouterGroup, error)
- func (actor Actor) GetRouterGroups() ([]RouterGroup, error)
- func (actor Actor) GetRoutesByOrg(orgGUID string, labelSelector string) ([]resources.Route, Warnings, error)
- func (actor Actor) GetRoutesBySpace(spaceGUID string, labelSelector string) ([]resources.Route, Warnings, error)
- func (actor Actor) GetSSHEnabled(appGUID string) (ccv3.SSHEnabled, Warnings, error)
- func (actor Actor) GetSSHEnabledByAppName(appName string, spaceGUID string) (ccv3.SSHEnabled, Warnings, error)
- func (actor Actor) GetSSHPasscode() (string, error)
- func (actor Actor) GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndex(appName string, spaceGUID string, processType string, processIndex uint) (SSHAuthentication, Warnings, error)
- func (actor Actor) GetSecurityGroup(securityGroupName string) (resources.SecurityGroup, Warnings, error)
- func (actor Actor) GetSecurityGroupSummary(securityGroupName string) (SecurityGroupSummary, Warnings, error)
- func (actor Actor) GetSecurityGroups() ([]SecurityGroupSummary, Warnings, error)
- func (actor *Actor) GetServiceAccess(offeringName, brokerName, orgName string) ([]ServicePlanAccess, Warnings, error)
- func (actor Actor) GetServiceBrokerByName(serviceBrokerName string) (resources.ServiceBroker, Warnings, error)
- func (actor *Actor) GetServiceBrokerLabels(serviceBrokerName string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetServiceBrokers() ([]resources.ServiceBroker, Warnings, error)
- func (actor Actor) GetServiceInstanceByNameAndSpace(serviceInstanceName string, spaceGUID string) (resources.ServiceInstance, Warnings, error)
- func (actor Actor) GetServiceInstanceDetails(serviceInstanceName string, spaceGUID string, omitApps bool) (ServiceInstanceDetails, Warnings, error)
- func (actor *Actor) GetServiceInstanceLabels(serviceInstanceName, spaceGUID string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetServiceInstanceParameters(serviceInstanceName string, spaceGUID string) (ServiceInstanceParameters, Warnings, error)
- func (actor Actor) GetServiceInstancesForSpace(spaceGUID string, omitApps bool) ([]ServiceInstance, Warnings, error)
- func (actor Actor) GetServiceKeyByServiceInstanceAndName(serviceInstanceName, serviceKeyName, spaceGUID string) (resources.ServiceCredentialBinding, Warnings, error)
- func (actor Actor) GetServiceKeyDetailsByServiceInstanceAndName(serviceInstanceName, serviceKeyName, spaceGUID string) (resources.ServiceCredentialBindingDetails, Warnings, error)
- func (actor Actor) GetServiceKeysByServiceInstance(serviceInstanceName, spaceGUID string) ([]resources.ServiceCredentialBinding, Warnings, error)
- func (actor *Actor) GetServiceOfferingLabels(serviceOfferingName, serviceBrokerName string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetServicePlanByNameOfferingAndBroker(servicePlanName, serviceOfferingName, serviceBrokerName string) (resources.ServicePlan, Warnings, error)
- func (actor *Actor) GetServicePlanLabels(servicePlanName, serviceOfferingName, serviceBrokerName string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (resources.Space, Warnings, error)
- func (actor Actor) GetSpaceFeature(spaceName string, orgGUID string, feature string) (bool, Warnings, error)
- func (actor *Actor) GetSpaceLabels(spaceName string, orgGUID string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetSpaceQuotaByName(spaceQuotaName string, orgGUID string) (resources.SpaceQuota, Warnings, error)
- func (actor Actor) GetSpaceQuotasByOrgGUID(orgGUID string) ([]resources.SpaceQuota, Warnings, error)
- func (actor Actor) GetSpaceSummaryByNameAndOrganization(spaceName string, orgGUID string) (SpaceSummary, Warnings, error)
- func (actor Actor) GetSpaceUsersByRoleType(spaceGuid string) (map[constant.RoleType][]resources.User, Warnings, error)
- func (actor *Actor) GetStackByName(stackName string) (resources.Stack, Warnings, error)
- func (actor *Actor) GetStackLabels(stackName string) (map[string]types.NullString, Warnings, error)
- func (actor Actor) GetStacks(labelSelector string) ([]resources.Stack, Warnings, error)
- func (actor Actor) GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) (<-chan sharedaction.LogMessage, <-chan error, context.CancelFunc, Warnings, ...)
- func (actor Actor) GetTaskBySequenceIDAndApplication(sequenceID int, appGUID string) (resources.Task, Warnings, error)
- func (actor Actor) GetUAAAPIVersion() (string, error)
- func (actor Actor) GetUnstagedNewestPackageGUID(appGUID string) (string, Warnings, error)
- func (actor Actor) GetUser(username, origin string) (resources.User, error)
- func (actor Actor) MakeCurlRequest(method string, path string, customHeaders []string, data string, ...) ([]byte, *http.Response, error)
- func (actor Actor) MapRoute(routeGUID string, appGUID string, destinationProtocol string) (Warnings, error)
- func (actor Actor) Marketplace(filter MarketplaceFilter) ([]ServiceOfferingWithPlans, Warnings, error)
- func (actor Actor) MoveRoute(routeGUID string, spaceGUID string) (Warnings, error)
- func (actor Actor) ParseAccessToken(accessToken string) (jwt.JWT, error)
- func (actor Actor) PollBuild(buildGUID string, appName string) (resources.Droplet, Warnings, error)
- func (actor Actor) PollJobToEventStream(jobURL ccv3.JobURL) chan PollJobEvent
- func (actor Actor) PollPackage(pkg resources.Package) (resources.Package, Warnings, error)
- func (actor Actor) PollProcesses(processes []resources.Process, handleInstanceDetails func(string)) (bool, Warnings, error)
- func (actor Actor) PollStart(app resources.Application, noWait bool, handleInstanceDetails func(string)) (Warnings, error)
- func (actor Actor) PollStartForRolling(app resources.Application, deploymentGUID string, noWait bool, ...) (Warnings, error)
- func (actor Actor) PollTask(task resources.Task) (resources.Task, Warnings, error)
- func (actor Actor) PollUploadBuildpackJob(jobURL ccv3.JobURL) (Warnings, error)
- func (actor *Actor) PrepareBuildpackBits(inputPath string, tmpDirPath string, downloader Downloader) (string, error)
- func (actor Actor) PurgeServiceInstance(serviceInstanceName, spaceGUID string) (Warnings, error)
- func (actor Actor) PurgeServiceOfferingByNameAndBroker(serviceOfferingName, serviceBrokerName string) (Warnings, error)
- func (actor Actor) RefreshAccessToken() (string, error)
- func (actor Actor) RenameApplicationByNameAndSpaceGUID(appName, newAppName, spaceGUID string) (resources.Application, Warnings, error)
- func (actor Actor) RenameOrganization(oldOrgName, newOrgName string) (resources.Organization, Warnings, error)
- func (actor Actor) RenameServiceInstance(currentServiceInstanceName, spaceGUID, newServiceInstanceName string) (Warnings, error)
- func (actor Actor) RenameSpaceByNameAndOrganizationGUID(oldSpaceName, newSpaceName, orgGUID string) (resources.Space, Warnings, error)
- func (actor Actor) ResetOrganizationDefaultIsolationSegment(orgGUID string) (Warnings, error)
- func (actor Actor) ResetSpaceIsolationSegment(orgGUID string, spaceGUID string) (string, Warnings, error)
- func (actor Actor) ResourceMatch(resources []sharedaction.V3Resource) ([]sharedaction.V3Resource, Warnings, error)
- func (actor Actor) RestartApplication(appGUID string, noWait bool) (Warnings, error)
- func (actor Actor) RevokeAccessAndRefreshTokens() error
- func (actor Actor) RunTask(appGUID string, task resources.Task) (resources.Task, Warnings, error)
- func (actor Actor) ScaleProcessByApplication(appGUID string, process resources.Process) (Warnings, error)
- func (actor Actor) ScheduleTokenRefresh(after func(time.Duration) <-chan time.Time, stop chan struct{}, ...) (<-chan error, error)
- func (actor Actor) SetApplicationDroplet(appGUID string, dropletGUID string) (Warnings, error)
- func (actor Actor) SetApplicationDropletByApplicationNameAndSpace(appName string, spaceGUID string, dropletGUID string) (Warnings, error)
- func (actor Actor) SetApplicationManifest(appGUID string, rawManifest []byte) (Warnings, error)
- func (actor Actor) SetApplicationProcessHealthCheckTypeByNameAndSpace(appName string, spaceGUID string, healthCheckType constant.HealthCheckType, ...) (resources.Application, Warnings, error)
- func (actor *Actor) SetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, envPair EnvironmentVariablePair) (Warnings, error)
- func (actor *Actor) SetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName, ...) (Warnings, error)
- func (actor Actor) SetOrganizationDefaultIsolationSegment(orgGUID string, isoSegGUID string) (Warnings, error)
- func (actor Actor) SetSpaceManifest(spaceGUID string, rawManifest []byte) (Warnings, error)
- func (actor Actor) SetTarget(settings TargetSettings) (Warnings, error)
- func (actor Actor) SharePrivateDomain(domainName string, orgName string) (Warnings, error)
- func (actor Actor) ShareRoute(routeGUID string, spaceGUID string) (Warnings, error)
- func (actor Actor) ShareServiceInstanceToSpaceAndOrg(serviceInstanceName, targetedSpaceGUID, targetedOrgGUID string, ...) (Warnings, error)
- func (actor Actor) StageApplicationPackage(packageGUID string) (resources.Build, Warnings, error)
- func (actor Actor) StagePackage(packageGUID, appName, spaceGUID string) (<-chan resources.Droplet, <-chan Warnings, <-chan error)
- func (actor Actor) StartApplication(appGUID string) (Warnings, error)
- func (actor Actor) StopApplication(appGUID string) (Warnings, error)
- func (actor Actor) TerminateTask(taskGUID string) (resources.Task, Warnings, error)
- func (actor Actor) UnbindSecurityGroup(securityGroupName string, orgName string, spaceName string, ...) (Warnings, error)
- func (actor Actor) UnmapRoute(routeGUID string, destinationGUID string) (Warnings, error)
- func (actor *Actor) UnsetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, environmentVariableName string) (Warnings, error)
- func (actor Actor) UnsetSpaceQuota(spaceQuotaName, spaceName, orgGUID string) (Warnings, error)
- func (actor Actor) UnsharePrivateDomain(domainName string, orgName string) (Warnings, error)
- func (actor Actor) UnshareRoute(routeGUID string, spaceGUID string) (Warnings, error)
- func (actor Actor) UnshareServiceInstanceFromSpaceAndOrg(serviceInstanceName, targetedSpaceGUID, targetedOrgGUID string, ...) (Warnings, error)
- func (actor Actor) UpdateAppFeature(app resources.Application, enabled bool, featureName string) (Warnings, error)
- func (actor Actor) UpdateApplication(app resources.Application) (resources.Application, Warnings, error)
- func (actor *Actor) UpdateApplicationLabelsByApplicationName(appName string, spaceGUID string, labels map[string]types.NullString) (Warnings, error)
- func (actor Actor) UpdateApplicationName(newAppName string, appGUID string) (resources.Application, Warnings, error)
- func (actor Actor) UpdateBuildpackByNameAndStack(buildpackName string, buildpackStack string, buildpack resources.Buildpack) (resources.Buildpack, Warnings, error)
- func (actor *Actor) UpdateBuildpackLabelsByBuildpackNameAndStack(buildpackName string, stack string, labels map[string]types.NullString) (Warnings, error)
- func (actor Actor) UpdateDestination(routeGUID string, destinationGUID string, protocol string) (Warnings, error)
- func (actor *Actor) UpdateDomainLabelsByDomainName(domainName string, labels map[string]types.NullString) (Warnings, error)
- func (actor Actor) UpdateManagedServiceInstance(params UpdateManagedServiceInstanceParams) (chan PollJobEvent, Warnings, error)
- func (actor *Actor) UpdateOrganizationLabelsByOrganizationName(orgName string, labels map[string]types.NullString) (Warnings, error)
- func (actor Actor) UpdateOrganizationQuota(quotaName string, newName string, limits QuotaLimits) (Warnings, error)
- func (actor Actor) UpdateProcessByTypeAndApplication(processType string, appGUID string, updatedProcess resources.Process) (Warnings, error)
- func (actor *Actor) UpdateRouteLabels(routeName string, spaceGUID string, labels map[string]types.NullString) (Warnings, error)
- func (actor Actor) UpdateSecurityGroup(name, filePath string) (Warnings, error)
- func (actor Actor) UpdateSecurityGroupGloballyEnabled(securityGroupName string, lifecycle constant.SecurityGroupLifecycle, ...) (Warnings, error)
- func (actor Actor) UpdateServiceBroker(serviceBrokerGUID string, model resources.ServiceBroker) (Warnings, error)
- func (actor *Actor) UpdateServiceBrokerLabelsByServiceBrokerName(serviceBrokerName string, labels map[string]types.NullString) (Warnings, error)
- func (actor *Actor) UpdateServiceInstanceLabels(serviceInstanceName, spaceGUID string, labels map[string]types.NullString) (Warnings, error)
- func (actor *Actor) UpdateServiceOfferingLabels(serviceOfferingName string, serviceBrokerName string, ...) (Warnings, error)
- func (actor *Actor) UpdateServicePlanLabels(servicePlanName string, serviceOfferingName string, serviceBrokerName string, ...) (Warnings, error)
- func (actor Actor) UpdateSpaceFeature(spaceName string, orgGUID string, enabled bool, feature string) (Warnings, error)
- func (actor *Actor) UpdateSpaceLabelsBySpaceName(spaceName string, orgGUID string, labels map[string]types.NullString) (Warnings, error)
- func (actor Actor) UpdateSpaceQuota(currentName, orgGUID, newName string, limits QuotaLimits) (Warnings, error)
- func (actor *Actor) UpdateStackLabelsByStackName(stackName string, labels map[string]types.NullString) (Warnings, error)
- func (actor Actor) UpdateUserPassword(userGUID string, oldPassword string, newPassword string) error
- func (actor Actor) UpdateUserProvidedServiceInstance(serviceInstanceName, spaceGUID string, ...) (Warnings, error)
- func (actor Actor) UpgradeManagedServiceInstance(serviceInstanceName string, spaceGUID string) (chan PollJobEvent, Warnings, error)
- func (actor Actor) UploadBitsPackage(pkg resources.Package, matchedResources []sharedaction.V3Resource, ...) (resources.Package, Warnings, error)
- func (actor Actor) UploadBuildpack(guid string, pathToBuildpackBits string, progressBar SimpleProgressBar) (ccv3.JobURL, Warnings, error)
- func (actor Actor) UploadDroplet(dropletGUID string, dropletPath string, progressReader io.Reader, size int64) (Warnings, error)
- type ApplicationSummary
- type AuthActor
- type CloudControllerClient
- type Config
- type CreateManagedServiceInstanceParams
- type CreateRouteBindingParams
- type CreateServiceAppBindingParams
- type CreateServiceKeyParams
- type DefaultKubernetesConfigGetter
- type DeleteRouteBindingParams
- type DeleteServiceAppBindingParams
- type DetailedApplicationSummary
- type DockerImageCredentials
- type Downloader
- type EnvironmentVariableGroup
- type EnvironmentVariableGroups
- type EnvironmentVariablePair
- type Event
- type Info
- type IsolationSegmentSummary
- type JobState
- type JobURL
- type KubernetesConfigGetter
- type ManifestParser
- type MarketplaceFilter
- type OrganizationSummary
- type PollJobEvent
- type ProcessHealthCheck
- type ProcessHealthChecks
- type ProcessInstance
- type ProcessInstances
- type ProcessSummaries
- type ProcessSummary
- type ProgressBar
- type QuotaLimits
- type RouteSummary
- type RouterGroup
- type RoutingClient
- type SSHActor
- type SSHAuthentication
- type SecurityGroupSpace
- type SecurityGroupSummary
- type ServiceInstance
- type ServiceInstanceBoundAppCount
- type ServiceInstanceDetails
- type ServiceInstanceParameters
- type ServiceInstanceSharingParams
- type ServiceInstanceUpgradeState
- type ServiceInstanceUpgradeStatus
- type ServiceOfferingWithPlans
- type ServicePlanAccess
- type ServicePlanWithSpaceAndOrganization
- type SharedActor
- type SharedOrgs
- type SharedStatus
- type SimpleProgressBar
- type SkippedPlans
- type SortOrder
- type SpaceSummary
- type TargetSettings
- type UAAClient
- type UpdateManagedServiceInstanceParams
- type UsageSummaryWithSpaceAndOrg
- type Warnings
- type WhoAmIer
Constants ¶
const ( JobPolling = JobState(constant.JobPolling) JobComplete = JobState(constant.JobComplete) JobFailed = JobState(constant.JobFailed) JobProcessing = JobState(constant.JobProcessing) )
const ( DefaultFolderPermissions = 0755 DefaultArchiveFilePermissions = 0744 )
const MinimumCCAPIVersionForDeployable = "3.86.0"
Variables ¶
This section is empty.
Functions ¶
func GetHumanReadableOrigin ¶
Types ¶
type Actor ¶
type Actor struct { CloudControllerClient CloudControllerClient Config Config UAAClient UAAClient RoutingClient RoutingClient Clock clock.Clock AuthActor }
Actor represents a V7 actor.
func NewActor ¶
func NewActor( client CloudControllerClient, config Config, sharedActor SharedActor, uaaClient UAAClient, routingClient RoutingClient, clk clock.Clock, ) *Actor
NewActor returns a new V7 actor.
func (Actor) ApplyApplicationManifest ¶
func (actor Actor) ApplyApplicationManifest(parser ManifestParser, spaceGUID string) (Warnings, error)
ApplyApplicationManifest reads in the manifest from the path and provides it to the cloud controller.
func (Actor) ApplyOrganizationQuotaByName ¶
func (Actor) ApplySpaceQuotaByName ¶
func (Actor) AssignIsolationSegmentToSpaceByNameAndSpace ¶
func (Actor) BindSecurityGroupToSpaces ¶
func (Actor) CancelDeployment ¶
func (Actor) CheckRoute ¶
func (Actor) ClearTarget ¶
func (actor Actor) ClearTarget()
ClearTarget clears target information from the config.
func (Actor) CopyPackage ¶
func (actor Actor) CopyPackage(sourceApp resources.Application, targetApp resources.Application) (resources.Package, Warnings, error)
func (Actor) CreateAndUploadBitsPackageByApplicationNameAndSpace ¶
func (Actor) CreateApplicationDroplet ¶
CreateApplicationDroplet creates a new droplet without a package for the app with guid appGUID.
func (Actor) CreateApplicationInSpace ¶
func (actor Actor) CreateApplicationInSpace(app resources.Application, spaceGUID string) (resources.Application, Warnings, error)
CreateApplicationInSpace creates and returns the application with the given name in the given space.
func (Actor) CreateBitsPackageByApplication ¶
func (Actor) CreateBuildpack ¶
func (Actor) CreateDeploymentByApplicationAndDroplet ¶
func (Actor) CreateDeploymentByApplicationAndRevision ¶
func (Actor) CreateDockerPackageByApplication ¶
func (Actor) CreateDockerPackageByApplicationNameAndSpace ¶
func (Actor) CreateIsolationSegmentByName ¶
func (actor Actor) CreateIsolationSegmentByName(isolationSegment resources.IsolationSegment) (Warnings, error)
CreateIsolationSegmentByName creates a given isolation segment.
func (Actor) CreateManagedServiceInstance ¶
func (actor Actor) CreateManagedServiceInstance(params CreateManagedServiceInstanceParams) (chan PollJobEvent, Warnings, error)
func (Actor) CreateOrgRole ¶
func (Actor) CreateOrganization ¶
CreateOrganization creates a new organization with the given name
func (Actor) CreateOrganizationQuota ¶
func (actor Actor) CreateOrganizationQuota(name string, limits QuotaLimits) (Warnings, error)
CreateOrganization creates a new organization with the given name
func (Actor) CreatePrivateDomain ¶
func (Actor) CreateRoute ¶
func (Actor) CreateRouteBinding ¶
func (actor Actor) CreateRouteBinding(params CreateRouteBindingParams) (chan PollJobEvent, Warnings, error)
func (Actor) CreateSecurityGroup ¶
func (Actor) CreateServiceAppBinding ¶
func (actor Actor) CreateServiceAppBinding(params CreateServiceAppBindingParams) (chan PollJobEvent, Warnings, error)
func (Actor) CreateServiceBroker ¶
func (actor Actor) CreateServiceBroker(model resources.ServiceBroker) (Warnings, error)
func (Actor) CreateServiceKey ¶
func (actor Actor) CreateServiceKey(params CreateServiceKeyParams) (chan PollJobEvent, Warnings, error)
func (Actor) CreateSharedDomain ¶
func (Actor) CreateSpace ¶
func (Actor) CreateSpaceQuota ¶
func (Actor) CreateSpaceRole ¶
func (Actor) CreateUser ¶
func (actor Actor) CreateUser(username string, password string, origin string) (resources.User, Warnings, error)
CreateUser creates a new user in UAA and registers it with cloud controller.
func (Actor) CreateUserProvidedServiceInstance ¶
func (actor Actor) CreateUserProvidedServiceInstance(serviceInstance resources.ServiceInstance) (Warnings, error)
func (Actor) DeleteApplicationByNameAndSpace ¶
func (Actor) DeleteBuildpackByNameAndStack ¶
func (Actor) DeleteDomain ¶
func (Actor) DeleteInstanceByApplicationNameSpaceProcessTypeAndIndex ¶
func (Actor) DeleteIsolationSegmentByName ¶
DeleteIsolationSegmentByName deletes the given isolation segment.
func (Actor) DeleteIsolationSegmentOrganizationByName ¶
func (Actor) DeleteOrgRole ¶
func (Actor) DeleteOrganization ¶
func (Actor) DeleteOrganizationQuota ¶
func (Actor) DeleteOrphanedRoutes ¶
func (Actor) DeleteRoute ¶
func (Actor) DeleteRouteBinding ¶
func (actor Actor) DeleteRouteBinding(params DeleteRouteBindingParams) (chan PollJobEvent, Warnings, error)
func (Actor) DeleteSecurityGroup ¶
func (Actor) DeleteServiceAppBinding ¶
func (actor Actor) DeleteServiceAppBinding(params DeleteServiceAppBindingParams) (chan PollJobEvent, Warnings, error)
func (Actor) DeleteServiceBroker ¶
func (Actor) DeleteServiceInstance ¶
func (actor Actor) DeleteServiceInstance(serviceInstanceName, spaceGUID string) (chan PollJobEvent, Warnings, error)
func (Actor) DeleteServiceKeyByServiceInstanceAndName ¶
func (actor Actor) DeleteServiceKeyByServiceInstanceAndName(serviceInstanceName, serviceKeyName, spaceGUID string) (chan PollJobEvent, Warnings, error)
func (Actor) DeleteSpaceByNameAndOrganizationName ¶
func (Actor) DeleteSpaceQuotaByName ¶
func (Actor) DeleteSpaceRole ¶
func (Actor) DeleteUser ¶
DeleteUser
func (Actor) DiffSpaceManifest ¶
func (Actor) DisableFeatureFlag ¶
func (*Actor) DisableServiceAccess ¶
func (actor *Actor) DisableServiceAccess(offeringName, brokerName, orgName, planName string) (SkippedPlans, Warnings, error)
func (Actor) DownloadCurrentDropletByAppName ¶
func (Actor) DownloadDropletByGUIDAndAppName ¶
func (Actor) EnableFeatureFlag ¶
func (*Actor) EnableServiceAccess ¶
func (actor *Actor) EnableServiceAccess(offeringName, brokerName, orgName, planName string) (SkippedPlans, Warnings, error)
func (Actor) EntitleIsolationSegmentToOrganizationByName ¶
func (actor Actor) EntitleIsolationSegmentToOrganizationByName(isolationSegmentName string, orgName string) (Warnings, error)
EntitleIsolationSegmentToOrganizationByName entitles the given organization to use the specified isolation segment
func (Actor) GetAppFeature ¶
func (Actor) GetAppSummariesForSpace ¶
func (Actor) GetApplicationByNameAndSpace ¶
func (actor Actor) GetApplicationByNameAndSpace(appName string, spaceGUID string) (resources.Application, Warnings, error)
GetApplicationByNameAndSpace returns the application with the given name in the given space.
func (Actor) GetApplicationDroplets ¶
func (actor Actor) GetApplicationDroplets(appName string, spaceGUID string) ([]resources.Droplet, Warnings, error)
GetApplicationDroplets returns the list of droplets that belong to application.
func (*Actor) GetApplicationLabels ¶
func (Actor) GetApplicationMapForRoute ¶
func (*Actor) GetApplicationPackages ¶
func (actor *Actor) GetApplicationPackages(appName string, spaceGUID string) ([]resources.Package, Warnings, error)
GetApplicationPackages returns a list of package of an app.
func (Actor) GetApplicationProcessHealthChecksByNameAndSpace ¶
func (Actor) GetApplicationRevisionsDeployed ¶
func (Actor) GetApplicationRoutes ¶
func (Actor) GetApplicationTasks ¶
func (actor Actor) GetApplicationTasks(appGUID string, sortOrder SortOrder) ([]resources.Task, Warnings, error)
GetApplicationTasks returns a list of tasks associated with the provided application GUID.
func (Actor) GetApplicationsByGUIDs ¶
func (Actor) GetApplicationsByNamesAndSpace ¶
func (Actor) GetApplicationsBySpace ¶
func (actor Actor) GetApplicationsBySpace(spaceGUID string) ([]resources.Application, Warnings, error)
GetApplicationsBySpace returns all applications in a space.
func (Actor) GetBuildpackByNameAndStack ¶
func (actor Actor) GetBuildpackByNameAndStack(buildpackName string, buildpackStack string) (resources.Buildpack, Warnings, error)
GetBuildpackByNameAndStack returns a buildpack with the provided name and stack. If `buildpackStack` is not specified, and there are multiple buildpacks with the same name, it will return the one with no stack, if present.
func (*Actor) GetBuildpackLabels ¶
func (Actor) GetBuildpacks ¶
func (Actor) GetCurrentDropletByApplication ¶
func (Actor) GetDefaultDomain ¶
func (Actor) GetDetailedAppSummary ¶
func (Actor) GetDomainAndOrgGUIDsByName ¶
func (Actor) GetDomainByName ¶
func (*Actor) GetDomainLabels ¶
func (Actor) GetEffectiveIsolationSegmentBySpace ¶
func (actor Actor) GetEffectiveIsolationSegmentBySpace(spaceGUID string, orgDefaultIsolationSegmentGUID string) (resources.IsolationSegment, Warnings, error)
GetEffectiveIsolationSegmentBySpace returns the space's effective isolation segment.
If the space has its own isolation segment, that will be returned.
If the space does not have one, the organization's default isolation segment (GUID passed in) will be returned.
If the space does not have one and the passed in organization default isolation segment GUID is empty, a NoRelationshipError will be returned.
func (*Actor) GetEnvironmentVariableGroup ¶
func (actor *Actor) GetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName) (EnvironmentVariableGroup, Warnings, error)
GetEnvironmentVariableGroup returns the values of an environment variable group.
func (*Actor) GetEnvironmentVariablesByApplicationNameAndSpace ¶
func (actor *Actor) GetEnvironmentVariablesByApplicationNameAndSpace(appName string, spaceGUID string) (EnvironmentVariableGroups, Warnings, error)
GetEnvironmentVariablesByApplicationNameAndSpace returns the environment variables for an application.
func (Actor) GetFeatureFlagByName ¶
func (actor Actor) GetFeatureFlagByName(featureFlagName string) (resources.FeatureFlag, Warnings, error)
GetFeatureFlagByName returns a featureFlag with the provided name.
func (Actor) GetFeatureFlags ¶
func (actor Actor) GetFeatureFlags() ([]resources.FeatureFlag, Warnings, error)
func (Actor) GetGlobalRunningSecurityGroups ¶
func (actor Actor) GetGlobalRunningSecurityGroups() ([]resources.SecurityGroup, Warnings, error)
func (Actor) GetGlobalStagingSecurityGroups ¶
func (actor Actor) GetGlobalStagingSecurityGroups() ([]resources.SecurityGroup, Warnings, error)
func (Actor) GetIsolationSegmentByName ¶
func (actor Actor) GetIsolationSegmentByName(name string) (resources.IsolationSegment, Warnings, error)
GetIsolationSegmentByName returns the requested isolation segment.
func (Actor) GetIsolationSegmentSummaries ¶
func (actor Actor) GetIsolationSegmentSummaries() ([]IsolationSegmentSummary, Warnings, error)
GetIsolationSegmentSummaries returns all isolation segments and their entitled orgs
func (Actor) GetIsolationSegmentsByOrganization ¶
func (Actor) GetLatestActiveDeploymentForApp ¶
func (Actor) GetNewestReadyPackageForApplication ¶
func (Actor) GetOrgUsersByRoleType ¶
func (Actor) GetOrganizationByGUID ¶
GetOrganizationByGUID returns the organization with the given guid.
func (Actor) GetOrganizationByName ¶
GetOrganizationByName returns the organization with the given name.
func (Actor) GetOrganizationDefaultIsolationSegment ¶
GetOrganizationDefaultIsolationSegment gets a default isolation segment on an organization.
func (Actor) GetOrganizationDomains ¶
func (*Actor) GetOrganizationLabels ¶
func (Actor) GetOrganizationQuotaByName ¶
func (Actor) GetOrganizationQuotas ¶
func (actor Actor) GetOrganizationQuotas() ([]resources.OrganizationQuota, Warnings, error)
func (Actor) GetOrganizationSpaces ¶
GetOrganizationSpaces returns a list of spaces in the specified org
func (Actor) GetOrganizationSpacesWithLabelSelector ¶
func (actor Actor) GetOrganizationSpacesWithLabelSelector(orgGUID string, labelSelector string) ([]resources.Space, Warnings, error)
GetOrganizationSpacesWithLabelSelector returns a list of spaces in the specified org
func (Actor) GetOrganizationSummaryByName ¶
func (actor Actor) GetOrganizationSummaryByName(orgName string) (OrganizationSummary, Warnings, error)
func (Actor) GetOrganizations ¶
func (Actor) GetProcess ¶
func (Actor) GetProcessByTypeAndApplication ¶
func (actor Actor) GetProcessByTypeAndApplication(processType string, appGUID string) (resources.Process, Warnings, error)
GetProcessByTypeAndApplication returns a process for the given application and type.
func (Actor) GetRawApplicationManifestByNameAndSpace ¶
func (Actor) GetRecentEventsByApplicationNameAndSpace ¶
func (Actor) GetRecentLogsForApplicationByNameAndSpace ¶
func (actor Actor) GetRecentLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) ([]sharedaction.LogMessage, Warnings, error)
func (Actor) GetRevisionByApplicationAndVersion ¶
func (*Actor) GetRevisionsByApplicationNameAndSpace ¶
func (actor *Actor) GetRevisionsByApplicationNameAndSpace(appName string, spaceGUID string) ([]resources.Revision, Warnings, error)
GetRevisionsByApplicationNameAndSpace returns revisions for application.
func (Actor) GetRoleGUID ¶
func (Actor) GetRouteByAttributes ¶
func (Actor) GetRouteDestinationByAppGUID ¶
func (Actor) GetRouteDestinations ¶
func (*Actor) GetRouteLabels ¶
func (Actor) GetRouteSummaries ¶
func (Actor) GetRouterGroupByName ¶
func (actor Actor) GetRouterGroupByName(name string) (RouterGroup, error)
func (Actor) GetRouterGroups ¶
func (actor Actor) GetRouterGroups() ([]RouterGroup, error)
func (Actor) GetRoutesByOrg ¶
func (Actor) GetRoutesBySpace ¶
func (Actor) GetSSHEnabled ¶
func (Actor) GetSSHEnabledByAppName ¶
func (Actor) GetSSHPasscode ¶
func (Actor) GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndex ¶
func (actor Actor) GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndex( appName string, spaceGUID string, processType string, processIndex uint, ) (SSHAuthentication, Warnings, error)
GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndex returns back the SSH authentication information for the SSH session.
func (Actor) GetSecurityGroup ¶
func (Actor) GetSecurityGroupSummary ¶
func (actor Actor) GetSecurityGroupSummary(securityGroupName string) (SecurityGroupSummary, Warnings, error)
func (Actor) GetSecurityGroups ¶
func (actor Actor) GetSecurityGroups() ([]SecurityGroupSummary, Warnings, error)
func (*Actor) GetServiceAccess ¶
func (actor *Actor) GetServiceAccess(offeringName, brokerName, orgName string) ([]ServicePlanAccess, Warnings, error)
func (Actor) GetServiceBrokerByName ¶
func (*Actor) GetServiceBrokerLabels ¶
func (Actor) GetServiceBrokers ¶
func (actor Actor) GetServiceBrokers() ([]resources.ServiceBroker, Warnings, error)
func (Actor) GetServiceInstanceByNameAndSpace ¶
func (Actor) GetServiceInstanceDetails ¶
func (*Actor) GetServiceInstanceLabels ¶
func (Actor) GetServiceInstanceParameters ¶
func (Actor) GetServiceInstancesForSpace ¶
func (Actor) GetServiceKeyByServiceInstanceAndName ¶
func (Actor) GetServiceKeyDetailsByServiceInstanceAndName ¶
func (Actor) GetServiceKeysByServiceInstance ¶
func (*Actor) GetServiceOfferingLabels ¶
func (Actor) GetServicePlanByNameOfferingAndBroker ¶
func (*Actor) GetServicePlanLabels ¶
func (Actor) GetSpaceByNameAndOrganization ¶
func (Actor) GetSpaceFeature ¶
func (*Actor) GetSpaceLabels ¶
func (Actor) GetSpaceQuotaByName ¶
func (Actor) GetSpaceQuotasByOrgGUID ¶
func (Actor) GetSpaceSummaryByNameAndOrganization ¶
func (Actor) GetSpaceUsersByRoleType ¶
func (*Actor) GetStackByName ¶
func (*Actor) GetStackLabels ¶
func (Actor) GetStreamingLogsForApplicationByNameAndSpace ¶
func (actor Actor) GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) (<-chan sharedaction.LogMessage, <-chan error, context.CancelFunc, Warnings, error)
func (Actor) GetTaskBySequenceIDAndApplication ¶
func (Actor) GetUAAAPIVersion ¶
GetUAAAPIVersion returns the UAA API version.
func (Actor) GetUnstagedNewestPackageGUID ¶
func (Actor) GetUser ¶
GetUser gets a user in UAA with the given username and (if provided) origin. It returns an error if no matching user is found. It returns an error if multiple matching users are found. NOTE: The UAA /Users endpoint used here requires admin scopes.
func (Actor) MakeCurlRequest ¶
func (Actor) Marketplace ¶
func (actor Actor) Marketplace(filter MarketplaceFilter) ([]ServiceOfferingWithPlans, Warnings, error)
func (Actor) ParseAccessToken ¶
func (Actor) PollJobToEventStream ¶
func (actor Actor) PollJobToEventStream(jobURL ccv3.JobURL) chan PollJobEvent
func (Actor) PollPackage ¶
PollPackage returns a package of an app.
func (Actor) PollProcesses ¶
func (actor Actor) PollProcesses(processes []resources.Process, handleInstanceDetails func(string)) (bool, Warnings, error)
PollProcesses - return true if there's no need to keep polling
func (Actor) PollStart ¶
func (actor Actor) PollStart(app resources.Application, noWait bool, handleInstanceDetails func(string)) (Warnings, error)
PollStart polls an application's processes until some are started. If noWait is false, it waits for at least one instance of all processes to be running. If noWait is true, it only waits for an instance of the web process to be running.
func (Actor) PollStartForRolling ¶
func (actor Actor) PollStartForRolling(app resources.Application, deploymentGUID string, noWait bool, handleInstanceDetails func(string)) (Warnings, error)
PollStartForRolling polls a deploying application's processes until some are started. It does the same thing as PollStart, except it accounts for rolling deployments and whether they have failed or been canceled during polling.
func (Actor) PollUploadBuildpackJob ¶
func (*Actor) PrepareBuildpackBits ¶
func (Actor) PurgeServiceInstance ¶
func (Actor) PurgeServiceOfferingByNameAndBroker ¶
func (Actor) RefreshAccessToken ¶
func (Actor) RenameApplicationByNameAndSpaceGUID ¶
func (Actor) RenameOrganization ¶
func (Actor) RenameServiceInstance ¶
func (Actor) RenameSpaceByNameAndOrganizationGUID ¶
func (Actor) ResetOrganizationDefaultIsolationSegment ¶
ResetOrganizationDefaultIsolationSegment resets the default isolation segment fon an organization.
func (Actor) ResetSpaceIsolationSegment ¶
func (actor Actor) ResetSpaceIsolationSegment(orgGUID string, spaceGUID string) (string, Warnings, error)
ResetSpaceIsolationSegment disassociates a space from an isolation segment.
If the space's organization has a default isolation segment, return its name. Otherwise return the empty string.
func (Actor) ResourceMatch ¶
func (actor Actor) ResourceMatch(resources []sharedaction.V3Resource) ([]sharedaction.V3Resource, Warnings, error)
func (Actor) RestartApplication ¶
RestartApplication restarts an application and waits for it to start.
func (Actor) RevokeAccessAndRefreshTokens ¶
TODO: error check this in future stories
func (Actor) RunTask ¶
Run resources.Task runs the provided command in the application environment associated with the provided application GUID.
func (Actor) ScaleProcessByApplication ¶
func (Actor) ScheduleTokenRefresh ¶
func (Actor) SetApplicationDroplet ¶
func (Actor) SetApplicationDropletByApplicationNameAndSpace ¶
func (actor Actor) SetApplicationDropletByApplicationNameAndSpace(appName string, spaceGUID string, dropletGUID string) (Warnings, error)
SetApplicationDropletByApplicationNameAndSpace sets the droplet for an application.
func (Actor) SetApplicationManifest ¶
func (Actor) SetApplicationProcessHealthCheckTypeByNameAndSpace ¶
func (actor Actor) SetApplicationProcessHealthCheckTypeByNameAndSpace( appName string, spaceGUID string, healthCheckType constant.HealthCheckType, httpEndpoint string, processType string, invocationTimeout int64, ) (resources.Application, Warnings, error)
SetApplicationProcessHealthCheckTypeByNameAndSpace sets the health check information of the provided processType for an application with the given name and space GUID.
func (*Actor) SetEnvironmentVariableByApplicationNameAndSpace ¶
func (actor *Actor) SetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, envPair EnvironmentVariablePair) (Warnings, error)
SetEnvironmentVariableByApplicationNameAndSpace adds an EnvironmentVariablePair to an application. It must be restarted for changes to take effect.
func (*Actor) SetEnvironmentVariableGroup ¶
func (actor *Actor) SetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName, newEnvVars resources.EnvironmentVariables) (Warnings, error)
SetEnvironmentVariableGroup sets a given environment variable group according to the given keys and values. Any existing variables that are not present in the given set of variables will be unset.
func (Actor) SetOrganizationDefaultIsolationSegment ¶
func (actor Actor) SetOrganizationDefaultIsolationSegment(orgGUID string, isoSegGUID string) (Warnings, error)
SetOrganizationDefaultIsolationSegment sets a default isolation segment on an organization.
func (Actor) SetSpaceManifest ¶
func (Actor) SetTarget ¶
func (actor Actor) SetTarget(settings TargetSettings) (Warnings, error)
SetTarget targets the Cloud Controller using the client and sets target information in the config based on the response.
func (Actor) SharePrivateDomain ¶
func (Actor) ShareRoute ¶
func (Actor) ShareServiceInstanceToSpaceAndOrg ¶
func (actor Actor) ShareServiceInstanceToSpaceAndOrg( serviceInstanceName, targetedSpaceGUID, targetedOrgGUID string, sharedToDetails ServiceInstanceSharingParams, ) (Warnings, error)
func (Actor) StageApplicationPackage ¶
func (Actor) StagePackage ¶
func (Actor) StartApplication ¶
StartApplication starts an application.
func (Actor) StopApplication ¶
StopApplication stops an application.
func (Actor) TerminateTask ¶
func (Actor) UnbindSecurityGroup ¶
func (Actor) UnmapRoute ¶
func (*Actor) UnsetEnvironmentVariableByApplicationNameAndSpace ¶
func (actor *Actor) UnsetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, environmentVariableName string) (Warnings, error)
UnsetEnvironmentVariableByApplicationNameAndSpace removes an environment variable from an application. It must be restarted for changes to take effect.
func (Actor) UnsetSpaceQuota ¶
func (Actor) UnsharePrivateDomain ¶
func (Actor) UnshareRoute ¶
func (Actor) UnshareServiceInstanceFromSpaceAndOrg ¶
func (actor Actor) UnshareServiceInstanceFromSpaceAndOrg( serviceInstanceName, targetedSpaceGUID, targetedOrgGUID string, sharedToDetails ServiceInstanceSharingParams, ) (Warnings, error)
func (Actor) UpdateAppFeature ¶
func (Actor) UpdateApplication ¶
func (actor Actor) UpdateApplication(app resources.Application) (resources.Application, Warnings, error)
UpdateApplication updates the buildpacks on an application
func (*Actor) UpdateApplicationLabelsByApplicationName ¶
func (Actor) UpdateApplicationName ¶
func (actor Actor) UpdateApplicationName(newAppName string, appGUID string) (resources.Application, Warnings, error)
UpdateApplicationName updates the name of an application
func (Actor) UpdateBuildpackByNameAndStack ¶
func (*Actor) UpdateBuildpackLabelsByBuildpackNameAndStack ¶
func (Actor) UpdateDestination ¶
func (*Actor) UpdateDomainLabelsByDomainName ¶
func (Actor) UpdateManagedServiceInstance ¶
func (actor Actor) UpdateManagedServiceInstance(params UpdateManagedServiceInstanceParams) (chan PollJobEvent, Warnings, error)
func (*Actor) UpdateOrganizationLabelsByOrganizationName ¶
func (Actor) UpdateOrganizationQuota ¶
func (Actor) UpdateProcessByTypeAndApplication ¶
func (*Actor) UpdateRouteLabels ¶
func (Actor) UpdateSecurityGroup ¶
func (Actor) UpdateSecurityGroupGloballyEnabled ¶
func (Actor) UpdateServiceBroker ¶
func (*Actor) UpdateServiceBrokerLabelsByServiceBrokerName ¶
func (*Actor) UpdateServiceInstanceLabels ¶
func (*Actor) UpdateServiceOfferingLabels ¶
func (*Actor) UpdateServicePlanLabels ¶
func (Actor) UpdateSpaceFeature ¶
func (*Actor) UpdateSpaceLabelsBySpaceName ¶
func (Actor) UpdateSpaceQuota ¶
func (actor Actor) UpdateSpaceQuota(currentName, orgGUID, newName string, limits QuotaLimits) (Warnings, error)
func (*Actor) UpdateStackLabelsByStackName ¶
func (Actor) UpdateUserPassword ¶
func (Actor) UpdateUserProvidedServiceInstance ¶
func (Actor) UpgradeManagedServiceInstance ¶
func (Actor) UploadBitsPackage ¶
func (Actor) UploadBuildpack ¶
type ApplicationSummary ¶
type ApplicationSummary struct { resources.Application ProcessSummaries ProcessSummaries Routes []resources.Route }
func (ApplicationSummary) GetIsolationSegmentName ¶
func (a ApplicationSummary) GetIsolationSegmentName() (string, bool)
type AuthActor ¶
type AuthActor interface { Authenticate(credentials map[string]string, origin string, grantType constant.GrantType) error GetLoginPrompts() (map[string]coreconfig.AuthPrompt, error) GetCurrentUser() (configv3.User, error) }
func NewDefaultAuthActor ¶
func NewKubernetesAuthActor ¶
func NewKubernetesAuthActor(config Config, k8sConfigGetter KubernetesConfigGetter, whoAmIer WhoAmIer) AuthActor
type CloudControllerClient ¶
type CloudControllerClient interface { ApplyOrganizationQuota(quotaGUID string, orgGUID string) (resources.RelationshipList, ccv3.Warnings, error) ApplySpaceQuota(quotaGUID string, spaceGUID string) (resources.RelationshipList, ccv3.Warnings, error) CheckRoute(domainGUID string, hostname string, path string, port int) (bool, ccv3.Warnings, error) CancelDeployment(deploymentGUID string) (ccv3.Warnings, error) CopyPackage(sourcePackageGUID string, targetAppGUID string) (resources.Package, ccv3.Warnings, error) CreateApplication(app resources.Application) (resources.Application, ccv3.Warnings, error) CreateApplicationDeployment(appGUID string, dropletGUID string) (string, ccv3.Warnings, error) CreateApplicationDeploymentByRevision(appGUID string, revisionGUID string) (string, ccv3.Warnings, error) CreateApplicationProcessScale(appGUID string, process resources.Process) (resources.Process, ccv3.Warnings, error) CreateApplicationTask(appGUID string, task resources.Task) (resources.Task, ccv3.Warnings, error) CreateBuild(build resources.Build) (resources.Build, ccv3.Warnings, error) CreateBuildpack(bp resources.Buildpack) (resources.Buildpack, ccv3.Warnings, error) CreateDomain(domain resources.Domain) (resources.Domain, ccv3.Warnings, error) CreateDroplet(appGUID string) (resources.Droplet, ccv3.Warnings, error) CreateIsolationSegment(isolationSegment resources.IsolationSegment) (resources.IsolationSegment, ccv3.Warnings, error) CreateOrganization(orgName string) (resources.Organization, ccv3.Warnings, error) CreateOrganizationQuota(orgQuota resources.OrganizationQuota) (resources.OrganizationQuota, ccv3.Warnings, error) CreatePackage(pkg resources.Package) (resources.Package, ccv3.Warnings, error) CreateRole(role resources.Role) (resources.Role, ccv3.Warnings, error) CreateRoute(route resources.Route) (resources.Route, ccv3.Warnings, error) CreateRouteBinding(binding resources.RouteBinding) (ccv3.JobURL, ccv3.Warnings, error) CreateServiceBroker(serviceBroker resources.ServiceBroker) (ccv3.JobURL, ccv3.Warnings, error) CreateServiceCredentialBinding(binding resources.ServiceCredentialBinding) (ccv3.JobURL, ccv3.Warnings, error) CreateServiceInstance(serviceInstance resources.ServiceInstance) (ccv3.JobURL, ccv3.Warnings, error) CreateSecurityGroup(securityGroup resources.SecurityGroup) (resources.SecurityGroup, ccv3.Warnings, error) CreateSpace(space resources.Space) (resources.Space, ccv3.Warnings, error) CreateSpaceQuota(spaceQuota resources.SpaceQuota) (resources.SpaceQuota, ccv3.Warnings, error) CreateUser(userGUID string) (resources.User, ccv3.Warnings, error) DeleteApplication(guid string) (ccv3.JobURL, ccv3.Warnings, error) DeleteApplicationProcessInstance(appGUID string, processType string, instanceIndex int) (ccv3.Warnings, error) DeleteBuildpack(buildpackGUID string) (ccv3.JobURL, ccv3.Warnings, error) DeleteDomain(domainGUID string) (ccv3.JobURL, ccv3.Warnings, error) DeleteIsolationSegment(guid string) (ccv3.Warnings, error) DeleteIsolationSegmentOrganization(isolationSegmentGUID string, organizationGUID string) (ccv3.Warnings, error) DeleteOrganization(orgGUID string) (ccv3.JobURL, ccv3.Warnings, error) DeleteOrganizationQuota(quotaGUID string) (ccv3.JobURL, ccv3.Warnings, error) DeleteOrphanedRoutes(spaceGUID string) (ccv3.JobURL, ccv3.Warnings, error) DeleteRole(roleGUID string) (ccv3.JobURL, ccv3.Warnings, error) DeleteRoute(routeGUID string) (ccv3.JobURL, ccv3.Warnings, error) DeleteRouteBinding(guid string) (ccv3.JobURL, ccv3.Warnings, error) DeleteSecurityGroup(securityGroupGUID string) (ccv3.JobURL, ccv3.Warnings, error) DeleteServiceCredentialBinding(guid string) (ccv3.JobURL, ccv3.Warnings, error) DeleteServiceBroker(serviceBrokerGUID string) (ccv3.JobURL, ccv3.Warnings, error) DeleteServiceInstance(serviceInstanceGUID string, query ...ccv3.Query) (ccv3.JobURL, ccv3.Warnings, error) DeleteSpaceQuota(spaceQuotaGUID string) (ccv3.JobURL, ccv3.Warnings, error) DeleteSpace(guid string) (ccv3.JobURL, ccv3.Warnings, error) DeleteUser(userGUID string) (ccv3.JobURL, ccv3.Warnings, error) DownloadDroplet(dropletGUID string) ([]byte, ccv3.Warnings, error) EntitleIsolationSegmentToOrganizations(isoGUID string, orgGUIDs []string) (resources.RelationshipList, ccv3.Warnings, error) GetApplicationByNameAndSpace(appName string, spaceGUID string) (resources.Application, ccv3.Warnings, error) GetApplicationDropletCurrent(appGUID string) (resources.Droplet, ccv3.Warnings, error) GetApplicationEnvironment(appGUID string) (ccv3.Environment, ccv3.Warnings, error) GetApplicationManifest(appGUID string) ([]byte, ccv3.Warnings, error) GetApplicationProcessByType(appGUID string, processType string) (resources.Process, ccv3.Warnings, error) GetApplicationProcesses(appGUID string) ([]resources.Process, ccv3.Warnings, error) GetApplicationRevisions(appGUID string, query ...ccv3.Query) ([]resources.Revision, ccv3.Warnings, error) GetApplicationRevisionsDeployed(appGUID string) ([]resources.Revision, ccv3.Warnings, error) GetApplicationRoutes(appGUID string) ([]resources.Route, ccv3.Warnings, error) GetApplicationTasks(appGUID string, query ...ccv3.Query) ([]resources.Task, ccv3.Warnings, error) GetApplications(query ...ccv3.Query) ([]resources.Application, ccv3.Warnings, error) GetBuild(guid string) (resources.Build, ccv3.Warnings, error) GetBuildpacks(query ...ccv3.Query) ([]resources.Buildpack, ccv3.Warnings, error) GetDefaultDomain(orgGuid string) (resources.Domain, ccv3.Warnings, error) GetDeployment(guid string) (resources.Deployment, ccv3.Warnings, error) GetDeployments(query ...ccv3.Query) ([]resources.Deployment, ccv3.Warnings, error) GetDomain(GUID string) (resources.Domain, ccv3.Warnings, error) GetDomains(query ...ccv3.Query) ([]resources.Domain, ccv3.Warnings, error) GetDroplet(guid string) (resources.Droplet, ccv3.Warnings, error) GetDroplets(query ...ccv3.Query) ([]resources.Droplet, ccv3.Warnings, error) GetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName) (resources.EnvironmentVariables, ccv3.Warnings, error) GetEvents(query ...ccv3.Query) ([]ccv3.Event, ccv3.Warnings, error) GetFeatureFlag(featureFlagName string) (resources.FeatureFlag, ccv3.Warnings, error) GetFeatureFlags() ([]resources.FeatureFlag, ccv3.Warnings, error) GetInfo() (ccv3.Info, ccv3.Warnings, error) GetIsolationSegment(guid string) (resources.IsolationSegment, ccv3.Warnings, error) GetIsolationSegmentOrganizations(isolationSegmentGUID string) ([]resources.Organization, ccv3.Warnings, error) GetIsolationSegments(query ...ccv3.Query) ([]resources.IsolationSegment, ccv3.Warnings, error) GetNewApplicationProcesses(appGUID string, deploymentGUID string) ([]resources.Process, ccv3.Warnings, error) GetOrganization(orgGUID string) (resources.Organization, ccv3.Warnings, error) GetOrganizationDefaultIsolationSegment(orgGUID string) (resources.Relationship, ccv3.Warnings, error) GetOrganizationDomains(orgGUID string, query ...ccv3.Query) ([]resources.Domain, ccv3.Warnings, error) GetOrganizationQuota(quotaGUID string) (resources.OrganizationQuota, ccv3.Warnings, error) GetOrganizationQuotas(query ...ccv3.Query) ([]resources.OrganizationQuota, ccv3.Warnings, error) GetOrganizations(query ...ccv3.Query) ([]resources.Organization, ccv3.Warnings, error) GetPackage(guid string) (resources.Package, ccv3.Warnings, error) GetPackages(query ...ccv3.Query) ([]resources.Package, ccv3.Warnings, error) GetPackageDroplets(packageGUID string, query ...ccv3.Query) ([]resources.Droplet, ccv3.Warnings, error) GetProcess(processGUID string) (resources.Process, ccv3.Warnings, error) GetProcesses(query ...ccv3.Query) ([]resources.Process, ccv3.Warnings, error) GetProcessInstances(processGUID string) ([]ccv3.ProcessInstance, ccv3.Warnings, error) GetProcessSidecars(processGUID string) ([]resources.Sidecar, ccv3.Warnings, error) GetRoles(query ...ccv3.Query) ([]resources.Role, ccv3.IncludedResources, ccv3.Warnings, error) GetRouteBindings(query ...ccv3.Query) ([]resources.RouteBinding, ccv3.IncludedResources, ccv3.Warnings, error) GetRouteDestinations(routeGUID string) ([]resources.RouteDestination, ccv3.Warnings, error) GetRoutes(query ...ccv3.Query) ([]resources.Route, ccv3.Warnings, error) GetRunningSecurityGroups(spaceGUID string, queries ...ccv3.Query) ([]resources.SecurityGroup, ccv3.Warnings, error) GetSecurityGroups(query ...ccv3.Query) ([]resources.SecurityGroup, ccv3.Warnings, error) GetServiceBrokers(query ...ccv3.Query) ([]resources.ServiceBroker, ccv3.Warnings, error) GetServiceCredentialBindings(query ...ccv3.Query) ([]resources.ServiceCredentialBinding, ccv3.Warnings, error) GetServiceCredentialBindingDetails(guid string) (resources.ServiceCredentialBindingDetails, ccv3.Warnings, error) GetServiceInstanceByNameAndSpace(name, spaceGUID string, query ...ccv3.Query) (resources.ServiceInstance, ccv3.IncludedResources, ccv3.Warnings, error) GetServiceInstanceParameters(serviceInstanceGUID string) (types.JSONObject, ccv3.Warnings, error) GetServiceInstanceUsageSummary(serviceInstanceGUID string) ([]resources.ServiceInstanceUsageSummary, ccv3.Warnings, error) GetServiceInstances(query ...ccv3.Query) ([]resources.ServiceInstance, ccv3.IncludedResources, ccv3.Warnings, error) GetServiceOfferingByGUID(guid string) (resources.ServiceOffering, ccv3.Warnings, error) GetServiceOfferings(query ...ccv3.Query) ([]resources.ServiceOffering, ccv3.Warnings, error) GetServiceOfferingByNameAndBroker(serviceOfferingName, serviceBrokerName string) (resources.ServiceOffering, ccv3.Warnings, error) GetServicePlanByGUID(guid string) (resources.ServicePlan, ccv3.Warnings, error) GetServicePlans(query ...ccv3.Query) ([]resources.ServicePlan, ccv3.Warnings, error) GetServicePlansWithOfferings(query ...ccv3.Query) ([]ccv3.ServiceOfferingWithPlans, ccv3.Warnings, error) GetServicePlansWithSpaceAndOrganization(query ...ccv3.Query) ([]ccv3.ServicePlanWithSpaceAndOrganization, ccv3.Warnings, error) GetSpaceFeature(spaceGUID string, featureName string) (bool, ccv3.Warnings, error) GetSpaceIsolationSegment(spaceGUID string) (resources.Relationship, ccv3.Warnings, error) GetSpaceManifestDiff(spaceGUID string, rawManifest []byte) (resources.ManifestDiff, ccv3.Warnings, error) GetSpaceQuota(spaceQuotaGUID string) (resources.SpaceQuota, ccv3.Warnings, error) GetSpaces(query ...ccv3.Query) ([]resources.Space, ccv3.IncludedResources, ccv3.Warnings, error) GetSpaceQuotas(query ...ccv3.Query) ([]resources.SpaceQuota, ccv3.Warnings, error) GetSSHEnabled(appGUID string) (ccv3.SSHEnabled, ccv3.Warnings, error) GetAppFeature(appGUID string, featureName string) (resources.ApplicationFeature, ccv3.Warnings, error) GetStacks(query ...ccv3.Query) ([]resources.Stack, ccv3.Warnings, error) GetStagingSecurityGroups(spaceGUID string, queries ...ccv3.Query) ([]resources.SecurityGroup, ccv3.Warnings, error) GetTask(guid string) (resources.Task, ccv3.Warnings, error) GetUser(userGUID string) (resources.User, ccv3.Warnings, error) GetUsers(query ...ccv3.Query) ([]resources.User, ccv3.Warnings, error) MakeRequestSendReceiveRaw(Method string, URL string, headers http.Header, requestBody []byte) ([]byte, *http.Response, error) MapRoute(routeGUID string, appGUID string, destinationProtocol string) (ccv3.Warnings, error) MoveRoute(routeGUID string, spaceGUID string) (ccv3.Warnings, error) PollJob(jobURL ccv3.JobURL) (ccv3.Warnings, error) PollJobForState(jobURL ccv3.JobURL, state constant.JobState) (ccv3.Warnings, error) PollJobToEventStream(jobURL ccv3.JobURL) chan ccv3.PollJobEvent PurgeServiceOffering(serviceOfferingGUID string) (ccv3.Warnings, error) ResourceMatch(resources []ccv3.Resource) ([]ccv3.Resource, ccv3.Warnings, error) RootResponse() (ccv3.Info, ccv3.Warnings, error) SetApplicationDroplet(appGUID string, dropletGUID string) (resources.Relationship, ccv3.Warnings, error) TargetCF(settings ccv3.TargetSettings) UnbindSecurityGroupRunningSpace(securityGroupGUID string, spaceGUID string) (ccv3.Warnings, error) UnbindSecurityGroupStagingSpace(securityGroupGUID string, spaceGUID string) (ccv3.Warnings, error) UnmapRoute(routeGUID string, destinationGUID string) (ccv3.Warnings, error) UpdateAppFeature(appGUID string, enabled bool, featureName string) (ccv3.Warnings, error) UpdateApplication(app resources.Application) (resources.Application, ccv3.Warnings, error) UpdateApplicationName(newAppName string, appGUID string) (resources.Application, ccv3.Warnings, error) UpdateApplicationApplyManifest(appGUID string, rawManifest []byte) (ccv3.JobURL, ccv3.Warnings, error) UpdateApplicationEnvironmentVariables(appGUID string, envVars resources.EnvironmentVariables) (resources.EnvironmentVariables, ccv3.Warnings, error) UpdateApplicationRestart(appGUID string) (resources.Application, ccv3.Warnings, error) UpdateApplicationStart(appGUID string) (resources.Application, ccv3.Warnings, error) UpdateApplicationStop(appGUID string) (resources.Application, ccv3.Warnings, error) UpdateDestination(routeGUID string, destinationGUID string, protocol string) (ccv3.Warnings, error) UpdateBuildpack(buildpack resources.Buildpack) (resources.Buildpack, ccv3.Warnings, error) UpdateEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName, envVars resources.EnvironmentVariables) (resources.EnvironmentVariables, ccv3.Warnings, error) UpdateFeatureFlag(flag resources.FeatureFlag) (resources.FeatureFlag, ccv3.Warnings, error) UpdateOrganization(org resources.Organization) (resources.Organization, ccv3.Warnings, error) UpdateOrganizationDefaultIsolationSegmentRelationship(orgGUID string, isolationSegmentGUID string) (resources.Relationship, ccv3.Warnings, error) UpdateOrganizationQuota(orgQuota resources.OrganizationQuota) (resources.OrganizationQuota, ccv3.Warnings, error) UpdateProcess(process resources.Process) (resources.Process, ccv3.Warnings, error) UpdateResourceMetadata(resource string, resourceGUID string, metadata resources.Metadata) (ccv3.JobURL, ccv3.Warnings, error) UpdateSecurityGroupRunningSpace(securityGroupGUID string, spaceGUIDs []string) (ccv3.Warnings, error) UpdateSecurityGroupStagingSpace(securityGroupGUID string, spaceGUIDs []string) (ccv3.Warnings, error) UpdateSecurityGroup(securityGroup resources.SecurityGroup) (resources.SecurityGroup, ccv3.Warnings, error) UpdateServiceInstance(serviceInstanceGUID string, serviceInstanceUpdates resources.ServiceInstance) (ccv3.JobURL, ccv3.Warnings, error) UpdateSpace(space resources.Space) (resources.Space, ccv3.Warnings, error) UpdateSpaceApplyManifest(spaceGUID string, rawManifest []byte) (ccv3.JobURL, ccv3.Warnings, error) UpdateSpaceFeature(spaceGUID string, enabled bool, featureName string) (ccv3.Warnings, error) UpdateSpaceIsolationSegmentRelationship(spaceGUID string, isolationSegmentGUID string) (resources.Relationship, ccv3.Warnings, error) UpdateSpaceQuota(spaceQuota resources.SpaceQuota) (resources.SpaceQuota, ccv3.Warnings, error) UnsetSpaceQuota(spaceQuotaGUID, spaceGUID string) (ccv3.Warnings, error) UpdateServiceBroker(serviceBrokerGUID string, serviceBroker resources.ServiceBroker) (ccv3.JobURL, ccv3.Warnings, error) UpdateTaskCancel(taskGUID string) (resources.Task, ccv3.Warnings, error) UploadBitsPackage(pkg resources.Package, matchedResources []ccv3.Resource, newResources io.Reader, newResourcesLength int64) (resources.Package, ccv3.Warnings, error) UploadBuildpack(buildpackGUID string, buildpackPath string, buildpack io.Reader, buildpackLength int64) (ccv3.JobURL, ccv3.Warnings, error) UploadDropletBits(dropletGUID string, dropletPath string, droplet io.Reader, dropletLength int64) (ccv3.JobURL, ccv3.Warnings, error) UploadPackage(pkg resources.Package, zipFilepath string) (resources.Package, ccv3.Warnings, error) WhoAmI() (resources.K8sUser, ccv3.Warnings, error) // contains filtered or unexported methods }
CloudControllerClient is the interface to the cloud controller V3 API.
type Config ¶
type Config interface { AccessToken() string APIVersion() string CurrentUser() (configv3.User, error) DialTimeout() time.Duration PollingInterval() time.Duration RefreshToken() string SSHOAuthClient() string SetAccessToken(token string) SetRefreshToken(token string) SetTargetInformation(args configv3.TargetInformationArgs) SetTokenInformation(accessToken string, refreshToken string, token string) SetUAAClientCredentials(client string, clientSecret string) SetUAAGrantType(grantType string) SkipSSLValidation() bool StagingTimeout() time.Duration StartupTimeout() time.Duration Target() string UAAGrantType() string UnsetOrganizationAndSpaceInformation() SetKubernetesAuthInfo(authInfo string) IsCFOnK8s() bool }
type CreateManagedServiceInstanceParams ¶
type CreateManagedServiceInstanceParams struct { ServiceOfferingName string ServicePlanName string ServiceInstanceName string ServiceBrokerName string SpaceGUID string Tags types.OptionalStringSlice Parameters types.OptionalObject }
type CreateServiceKeyParams ¶
type CreateServiceKeyParams struct { SpaceGUID string ServiceInstanceName string ServiceKeyName string Parameters types.OptionalObject }
type DefaultKubernetesConfigGetter ¶
type DefaultKubernetesConfigGetter struct{}
func NewDefaultKubernetesConfigGetter ¶
func NewDefaultKubernetesConfigGetter() DefaultKubernetesConfigGetter
func (DefaultKubernetesConfigGetter) Get ¶
func (c DefaultKubernetesConfigGetter) Get() (*clientcmdapi.Config, error)
type DetailedApplicationSummary ¶
type DetailedApplicationSummary struct { ApplicationSummary CurrentDroplet resources.Droplet }
v7action.DetailedApplicationSummary represents an application with its processes and droplet.
type DockerImageCredentials ¶
type Downloader ¶
type EnvironmentVariableGroup ¶
type EnvironmentVariableGroup resources.EnvironmentVariables
EnvironmentVariableGroup represents a CC environment variable group (e.g. staging or running)
type EnvironmentVariableGroups ¶
type EnvironmentVariableGroups ccv3.Environment
EnvironmentVariableGroups represents all environment variables for application
type EnvironmentVariablePair ¶
EnvironmentVariablePair represents an environment variable and its value on an application
type IsolationSegmentSummary ¶
type KubernetesConfigGetter ¶
type KubernetesConfigGetter interface {
Get() (*clientcmdapi.Config, error)
}
type ManifestParser ¶
type MarketplaceFilter ¶
type MarketplaceFilter struct {
SpaceGUID, ServiceOfferingName, ServiceBrokerName string
}
type OrganizationSummary ¶
type PollJobEvent ¶
type ProcessHealthCheck ¶
type ProcessHealthCheck struct { ProcessType string HealthCheckType constant.HealthCheckType Endpoint string InvocationTimeout int64 }
type ProcessHealthChecks ¶
type ProcessHealthChecks []ProcessHealthCheck
func (ProcessHealthChecks) Sort ¶
func (phs ProcessHealthChecks) Sort()
type ProcessInstance ¶
type ProcessInstance ccv3.ProcessInstance
func (ProcessInstance) Running ¶
func (instance ProcessInstance) Running() bool
Running will return true if the instance is running.
func (*ProcessInstance) StartTime ¶
func (instance *ProcessInstance) StartTime() time.Time
StartTime returns the time that the instance started.
type ProcessInstances ¶
type ProcessInstances []ccv3.ProcessInstance
func (ProcessInstances) AllCrashed ¶
func (pi ProcessInstances) AllCrashed() bool
func (ProcessInstances) AnyRunning ¶
func (pi ProcessInstances) AnyRunning() bool
func (ProcessInstances) Empty ¶
func (pi ProcessInstances) Empty() bool
type ProcessSummaries ¶
type ProcessSummaries []ProcessSummary
func (ProcessSummaries) Sort ¶
func (ps ProcessSummaries) Sort()
func (ProcessSummaries) String ¶
func (ps ProcessSummaries) String() string
type ProcessSummary ¶
type ProcessSummary struct { resources.Process Sidecars []resources.Sidecar InstanceDetails []ProcessInstance }
ProcessSummary represents a process with instance details.
func (ProcessSummary) HealthyInstanceCount ¶
func (p ProcessSummary) HealthyInstanceCount() int
func (ProcessSummary) TotalInstanceCount ¶
func (p ProcessSummary) TotalInstanceCount() int
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
func NewProgressBar ¶
func NewProgressBar() *ProgressBar
func (*ProgressBar) Initialize ¶
func (*ProgressBar) Terminate ¶
func (p *ProgressBar) Terminate()
type QuotaLimits ¶
type RouteSummary ¶
type RouterGroup ¶
type RouterGroup router.RouterGroup
type RoutingClient ¶
type RoutingClient interface { GetRouterGroups() ([]router.RouterGroup, error) GetRouterGroupByName(name string) (router.RouterGroup, error) }
type SSHActor ¶
type SSHActor interface {
ExecuteSecureShell(sshOptions sharedaction.SSHOptions) error
}
type SSHAuthentication ¶
type SecurityGroupSpace ¶
type SecurityGroupSummary ¶
type SecurityGroupSummary struct { Name string Rules []resources.Rule SecurityGroupSpaces []SecurityGroupSpace }
type ServiceInstance ¶
type ServiceInstance struct { Type resources.ServiceInstanceType Name string ServicePlanName string ServiceOfferingName string ServiceBrokerName string BoundApps []string LastOperation string UpgradeAvailable types.OptionalBoolean }
type ServiceInstanceDetails ¶
type ServiceInstanceDetails struct { resources.ServiceInstance SpaceName string OrganizationName string ServiceOffering resources.ServiceOffering ServicePlan resources.ServicePlan ServiceBrokerName string UpgradeStatus ServiceInstanceUpgradeStatus BoundApps []resources.ServiceCredentialBinding }
type ServiceInstanceParameters ¶
type ServiceInstanceParameters map[string]interface{}
type ServiceInstanceSharingParams ¶
type ServiceInstanceSharingParams struct { SpaceName string OrgName types.OptionalString }
type ServiceInstanceUpgradeState ¶
type ServiceInstanceUpgradeState int
const ( ServiceInstanceUpgradeNotSupported ServiceInstanceUpgradeState = iota ServiceInstanceUpgradeAvailable ServiceInstanceUpgradeNotAvailable )
type ServiceInstanceUpgradeStatus ¶
type ServiceInstanceUpgradeStatus struct { State ServiceInstanceUpgradeState Description string }
type ServiceOfferingWithPlans ¶
type ServiceOfferingWithPlans ccv3.ServiceOfferingWithPlans
type ServicePlanAccess ¶
type ServicePlanWithSpaceAndOrganization ¶
type ServicePlanWithSpaceAndOrganization ccv3.ServicePlanWithSpaceAndOrganization
type SharedActor ¶
type SharedActor interface {}
type SharedOrgs ¶
type SharedOrgs ccv3.SharedOrgs
type SharedStatus ¶
type SharedStatus struct {}
type SimpleProgressBar ¶
type SkippedPlans ¶
type SkippedPlans []string
type SpaceSummary ¶
type TargetSettings ¶
type TargetSettings ccv3.TargetSettings
type UAAClient ¶
type UAAClient interface { Authenticate(credentials map[string]string, origin string, grantType constant.GrantType) (string, string, error) CreateUser(username string, password string, origin string) (uaa.User, error) DeleteUser(userGuid string) (uaa.User, error) GetAPIVersion() (string, error) GetLoginPrompts() (map[string][]string, error) GetSSHPasscode(accessToken string, sshOAuthClient string) (string, error) ListUsers(userName, origin string) ([]uaa.User, error) RefreshAccessToken(refreshToken string) (uaa.RefreshedTokens, error) UpdatePassword(userGUID string, oldPassword string, newPassword string) error ValidateClientUser(clientID string) error Revoke(token string) error }
type UpdateManagedServiceInstanceParams ¶
type UpdateManagedServiceInstanceParams struct { ServiceInstanceName string ServicePlanName string SpaceGUID string Tags types.OptionalStringSlice Parameters types.OptionalObject }
Source Files ¶
- actor.go
- application.go
- application_feature.go
- application_manifest.go
- application_summary.go
- auth.go
- build.go
- buildpack.go
- cloud_controller_client.go
- config.go
- curl.go
- deployment.go
- domain.go
- droplet.go
- environment_variable.go
- event.go
- feature_flag.go
- fix_mode_unix.go
- info.go
- isolation_segment.go
- job.go
- k8s_auth.go
- label.go
- logging.go
- marketplace.go
- organization.go
- organization_quota.go
- organization_summary.go
- package.go
- process.go
- process_health_check.go
- process_instance.go
- process_summary.go
- progress_bar.go
- resource_match.go
- revisions.go
- role.go
- route.go
- route_binding.go
- router_group.go
- routing_client.go
- security_group.go
- service_access.go
- service_app_binding.go
- service_broker.go
- service_instance.go
- service_instance_details.go
- service_instance_list.go
- service_instance_sharing.go
- service_key.go
- service_offering.go
- service_plan.go
- shared_actor.go
- space.go
- space_feature.go
- space_manifest.go
- space_quota.go
- ssh.go
- ssh_actor.go
- stack.go
- target.go
- task.go
- token.go
- uaa_client.go
- user.go
- version.go