Documentation ¶
Overview ¶
Package v3action contains the business logic for the commands/v3 package
Index ¶
- Constants
- type Actor
- func (actor Actor) ApplyApplicationManifest(parser ManifestParser, spaceGUID string) (Warnings, error)
- func (actor Actor) AssignIsolationSegmentToSpaceByNameAndSpace(isolationSegmentName string, spaceGUID string) (Warnings, error)
- func (actor Actor) Authenticate(credentials map[string]string, origin string, grantType constant.GrantType) error
- func (actor Actor) CancelDeploymentByAppNameAndSpace(appName string, spaceGUID string) (Warnings, error)
- func (actor Actor) ClearTarget()
- func (actor Actor) CloudControllerAPIVersion() string
- func (actor Actor) CreateAndUploadBitsPackageByApplicationNameAndSpace(appName string, spaceGUID string, bitsPath string) (Package, Warnings, error)
- func (actor Actor) CreateApplicationInSpace(app Application, spaceGUID string) (Application, Warnings, error)
- func (actor Actor) CreateBitsPackageByApplication(appGUID string) (Package, Warnings, error)
- func (actor Actor) CreateDeployment(appGUID string, dropletGUID string) (string, Warnings, error)
- func (actor Actor) CreateDockerPackageByApplicationNameAndSpace(appName string, spaceGUID string, ...) (Package, Warnings, error)
- func (actor Actor) CreateIsolationSegmentByName(isolationSegment IsolationSegment) (Warnings, error)
- func (actor Actor) DeleteApplicationByNameAndSpace(name string, spaceGUID string) (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) EntitleIsolationSegmentToOrganizationByName(isolationSegmentName string, orgName string) (Warnings, error)
- func (actor Actor) GetApplicationByNameAndSpace(appName string, spaceGUID string) (Application, Warnings, error)
- func (actor Actor) GetApplicationDroplets(appName string, spaceGUID string) ([]Droplet, Warnings, error)
- func (actor *Actor) GetApplicationPackages(appName string, spaceGUID string) ([]Package, Warnings, error)
- func (actor Actor) GetApplicationProcessHealthChecksByNameAndSpace(appName string, spaceGUID string) ([]ProcessHealthCheck, Warnings, error)
- func (actor Actor) GetApplicationSummaryByNameAndSpace(appName string, spaceGUID string, withObfuscatedValues bool) (ApplicationSummary, Warnings, error)
- func (actor Actor) GetApplicationTasks(appGUID string, sortOrder SortOrder) ([]Task, Warnings, error)
- func (actor Actor) GetApplicationsByGUIDs(appGUIDs ...string) ([]Application, Warnings, error)
- func (actor Actor) GetApplicationsBySpace(spaceGUID string) ([]Application, Warnings, error)
- func (actor Actor) GetApplicationsWithProcessesBySpace(spaceGUID string) ([]ApplicationWithProcessSummary, Warnings, error)
- func (actor Actor) GetCurrentDeployment(appGUID string) (string, Warnings, error)
- func (actor Actor) GetCurrentDropletByApplication(appGUID string) (Droplet, Warnings, error)
- func (actor Actor) GetDeploymentState(deploymentGUID string) (constant.DeploymentState, Warnings, error)
- func (actor Actor) GetEffectiveIsolationSegmentBySpace(spaceGUID string, orgDefaultIsolationSegmentGUID string) (IsolationSegment, Warnings, error)
- func (actor *Actor) GetEnvironmentVariablesByApplicationNameAndSpace(appName string, spaceGUID string) (EnvironmentVariableGroups, Warnings, error)
- func (actor Actor) GetIsolationSegmentByName(name string) (IsolationSegment, Warnings, error)
- func (actor Actor) GetIsolationSegmentSummaries() ([]IsolationSegmentSummary, Warnings, error)
- func (actor Actor) GetIsolationSegmentsByOrganization(orgGUID string) ([]IsolationSegment, Warnings, error)
- func (actor Actor) GetLoginPrompts() map[string]coreconfig.AuthPrompt
- func (actor Actor) GetOrganizationByName(name string) (Organization, Warnings, error)
- func (actor Actor) GetOrganizationSpaces(orgGUID string) ([]Space, Warnings, error)
- func (actor Actor) GetOrganizations() ([]Organization, Warnings, error)
- func (actor Actor) GetOrganizationsByGUIDs(guids ...string) ([]Organization, Warnings, error)
- func (actor Actor) GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndex(appName string, spaceGUID string, processType string, processIndex uint) (SSHAuthentication, Warnings, error)
- func (actor Actor) GetServiceInstanceByNameAndSpace(serviceInstanceName string, spaceGUID string) (ServiceInstance, Warnings, error)
- func (actor Actor) GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (Space, Warnings, error)
- func (actor Actor) GetSpacesByGUIDs(guids ...string) ([]Space, Warnings, error)
- func (actor Actor) GetStreamingLogs(appGUID string, client NOAAClient) (<-chan *LogMessage, <-chan error)
- func (actor Actor) GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client NOAAClient) (<-chan *LogMessage, <-chan error, Warnings, error)
- func (actor Actor) GetTaskBySequenceIDAndApplication(sequenceID int, appGUID string) (Task, Warnings, error)
- func (actor Actor) LogCacheURL() string
- func (actor Actor) PollBuild(buildGUID string, appName string) (Droplet, Warnings, error)
- func (actor Actor) PollDeployment(deploymentGUID string, warningsChannel chan<- Warnings) error
- func (actor Actor) PollPackage(pkg Package) (Package, Warnings, error)
- func (actor Actor) PollStart(appGUID string, warningsChannel chan<- Warnings) error
- func (actor Actor) ResetOrganizationDefaultIsolationSegment(orgGUID string) (Warnings, error)
- func (actor Actor) ResetSpaceIsolationSegment(orgGUID string, spaceGUID string) (string, Warnings, error)
- func (actor Actor) RestartApplication(appGUID string) (Warnings, error)
- func (actor Actor) RunTask(appGUID string, task Task) (Task, Warnings, error)
- func (actor Actor) ScaleProcessByApplication(appGUID string, process Process) (Warnings, 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) SetApplicationProcessHealthCheckTypeByNameAndSpace(appName string, spaceGUID string, healthCheckType constant.HealthCheckType, ...) (Application, Warnings, error)
- func (actor *Actor) SetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, envPair EnvironmentVariablePair) (Warnings, error)
- func (actor Actor) SetOrganizationDefaultIsolationSegment(orgGUID string, isoSegGUID string) (Warnings, error)
- func (actor Actor) SetTarget(settings TargetSettings) (Warnings, error)
- func (actor Actor) ShareServiceInstanceToSpaces(serviceInstanceGUID string, spaceGUIDs []string) (resources.RelationshipList, Warnings, error)
- func (actor Actor) StageApplicationPackage(packageGUID string) (Build, Warnings, error)
- func (actor Actor) StagePackage(packageGUID string, appName string) (<-chan 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) (Task, Warnings, error)
- func (actor *Actor) UnsetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, environmentVariableName string) (Warnings, error)
- func (actor Actor) UnshareServiceInstanceByServiceInstanceAndSpace(serviceInstanceGUID string, sharedToSpaceGUID string) (Warnings, error)
- func (actor Actor) UpdateApplication(app Application) (Application, Warnings, error)
- func (actor Actor) UploadBitsPackage(pkg Package, existingResources []sharedaction.Resource, newResources io.Reader, ...) (Package, Warnings, error)
- func (actor Actor) ZeroDowntimePollStart(appGUID string, warningsChannel chan<- Warnings) error
- type Application
- type ApplicationSummary
- type ApplicationWithProcessSummary
- type Build
- type Buildpack
- type CloudControllerClient
- type Config
- type DockerImageCredentials
- type Droplet
- type EnvironmentVariableGroups
- type EnvironmentVariablePair
- type IsolationSegment
- type IsolationSegmentSummary
- type LogMessage
- type LogMessages
- type ManifestParser
- type NOAAClient
- type Organization
- type Package
- type Process
- type ProcessHealthCheck
- type ProcessHealthChecks
- type ProcessInstance
- type ProcessSummaries
- type ProcessSummary
- type SSHActor
- type SSHAuthentication
- type ServiceInstance
- type SharedActor
- type SortOrder
- type Space
- type TargetSettings
- type Task
- type UAAClient
- type Warnings
Constants ¶
const ( DefaultFolderPermissions = 0755 DefaultArchiveFilePermissions = 0744 )
const StagingLog = "STG"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct { CloudControllerClient CloudControllerClient Config Config UAAClient UAAClient }
Actor represents a V3 actor.
func NewActor ¶
func NewActor(client CloudControllerClient, config Config, sharedActor SharedActor, uaaClient UAAClient) *Actor
NewActor returns a new V3 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) AssignIsolationSegmentToSpaceByNameAndSpace ¶
func (Actor) Authenticate ¶
func (Actor) CancelDeploymentByAppNameAndSpace ¶
func (Actor) ClearTarget ¶
func (actor Actor) ClearTarget()
ClearTarget clears target information from the actor.
func (Actor) CloudControllerAPIVersion ¶
CloudControllerAPIVersion returns back the Cloud Controller API version.
func (Actor) CreateAndUploadBitsPackageByApplicationNameAndSpace ¶
func (Actor) CreateApplicationInSpace ¶
func (actor Actor) CreateApplicationInSpace(app Application, spaceGUID string) (Application, Warnings, error)
CreateApplicationInSpace creates and returns the application with the given name in the given space.
func (Actor) CreateBitsPackageByApplication ¶
func (Actor) CreateDeployment ¶
func (Actor) CreateDockerPackageByApplicationNameAndSpace ¶
func (Actor) CreateIsolationSegmentByName ¶
func (actor Actor) CreateIsolationSegmentByName(isolationSegment IsolationSegment) (Warnings, error)
CreateIsolationSegmentByName creates a given isolation segment.
func (Actor) DeleteApplicationByNameAndSpace ¶
func (Actor) DeleteInstanceByApplicationNameSpaceProcessTypeAndIndex ¶
func (Actor) DeleteIsolationSegmentByName ¶
DeleteIsolationSegmentByName deletes the given isolation segment.
func (Actor) DeleteIsolationSegmentOrganizationByName ¶
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) GetApplicationByNameAndSpace ¶
func (actor Actor) GetApplicationByNameAndSpace(appName string, spaceGUID string) (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) ([]Droplet, Warnings, error)
GetApplicationDroplets returns the list of droplets that belong to applicaiton.
func (*Actor) GetApplicationPackages ¶
func (actor *Actor) GetApplicationPackages(appName string, spaceGUID string) ([]Package, Warnings, error)
GetApplicationPackages returns a list of package of an app.
func (Actor) GetApplicationProcessHealthChecksByNameAndSpace ¶
func (Actor) GetApplicationSummaryByNameAndSpace ¶
func (actor Actor) GetApplicationSummaryByNameAndSpace(appName string, spaceGUID string, withObfuscatedValues bool) (ApplicationSummary, Warnings, error)
GetApplicationSummaryByNameAndSpace returns an application with process and instance stats.
func (Actor) GetApplicationTasks ¶
func (actor Actor) GetApplicationTasks(appGUID string, sortOrder SortOrder) ([]Task, Warnings, error)
GetApplicationTasks returns a list of tasks associated with the provided appplication GUID.
func (Actor) GetApplicationsByGUIDs ¶
func (actor Actor) GetApplicationsByGUIDs(appGUIDs ...string) ([]Application, Warnings, error)
GetApplicationsByGUIDs returns all applications with the provided GUIDs.
func (Actor) GetApplicationsBySpace ¶
func (actor Actor) GetApplicationsBySpace(spaceGUID string) ([]Application, Warnings, error)
GetApplicationsBySpace returns all applications in a space.
func (Actor) GetApplicationsWithProcessesBySpace ¶
func (actor Actor) GetApplicationsWithProcessesBySpace(spaceGUID string) ([]ApplicationWithProcessSummary, Warnings, error)
func (Actor) GetCurrentDeployment ¶
func (Actor) GetCurrentDropletByApplication ¶
func (Actor) GetDeploymentState ¶
func (Actor) GetEffectiveIsolationSegmentBySpace ¶
func (actor Actor) GetEffectiveIsolationSegmentBySpace(spaceGUID string, orgDefaultIsolationSegmentGUID string) (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) GetEnvironmentVariablesByApplicationNameAndSpace ¶
func (actor *Actor) GetEnvironmentVariablesByApplicationNameAndSpace(appName string, spaceGUID string) (EnvironmentVariableGroups, Warnings, error)
GetEnvironmentVariablesByApplicationNameAndSpace returns the environment variables for an application.
func (Actor) GetIsolationSegmentByName ¶
func (actor Actor) GetIsolationSegmentByName(name string) (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 Actor) GetIsolationSegmentsByOrganization(orgGUID string) ([]IsolationSegment, Warnings, error)
func (Actor) GetLoginPrompts ¶
func (actor Actor) GetLoginPrompts() map[string]coreconfig.AuthPrompt
func (Actor) GetOrganizationByName ¶
func (actor Actor) GetOrganizationByName(name string) (Organization, Warnings, error)
GetOrganizationByName returns the organization with the given name.
func (Actor) GetOrganizationSpaces ¶
GetOrganizationSpaces returns a list of spaces in the specified org
func (Actor) GetOrganizations ¶
func (actor Actor) GetOrganizations() ([]Organization, Warnings, error)
func (Actor) GetOrganizationsByGUIDs ¶
func (actor Actor) GetOrganizationsByGUIDs(guids ...string) ([]Organization, Warnings, error)
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) GetServiceInstanceByNameAndSpace ¶
func (Actor) GetSpaceByNameAndOrganization ¶
func (Actor) GetSpacesByGUIDs ¶
func (Actor) GetStreamingLogs ¶
func (actor Actor) GetStreamingLogs(appGUID string, client NOAAClient) (<-chan *LogMessage, <-chan error)
func (Actor) GetStreamingLogsForApplicationByNameAndSpace ¶
func (actor Actor) GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client NOAAClient) (<-chan *LogMessage, <-chan error, Warnings, error)
func (Actor) GetTaskBySequenceIDAndApplication ¶
func (Actor) LogCacheURL ¶
func (Actor) PollDeployment ¶
func (Actor) PollPackage ¶
PollPackage returns a package of an app.
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) RestartApplication ¶
RestartApplication restarts an application.
func (Actor) RunTask ¶
RunTask runs the provided command in the application environment associated with the provided application GUID.
func (Actor) ScaleProcessByApplication ¶
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) SetApplicationProcessHealthCheckTypeByNameAndSpace ¶
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) SetOrganizationDefaultIsolationSegment ¶
func (actor Actor) SetOrganizationDefaultIsolationSegment(orgGUID string, isoSegGUID string) (Warnings, error)
SetOrganizationDefaultIsolationSegment sets a default isolation segment on an organization.
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 actor based on the response.
func (Actor) ShareServiceInstanceToSpaces ¶
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) UnsetEnvironmentVariableByApplicationNameAndSpace ¶
func (actor *Actor) UnsetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, environmentVariableName string) (Warnings, error)
UnsetEnvironmentVariableByApplicationNameAndSpace removes an enviornment variable from an application. It must be restarted for changes to take effect.
func (Actor) UnshareServiceInstanceByServiceInstanceAndSpace ¶
func (Actor) UpdateApplication ¶
func (actor Actor) UpdateApplication(app Application) (Application, Warnings, error)
UpdateApplication updates the buildpacks on an application
func (Actor) UploadBitsPackage ¶
type Application ¶
type Application struct { Name string GUID string StackName string State constant.ApplicationState LifecycleType constant.AppLifecycleType LifecycleBuildpacks []string SpaceGUID string }
Application represents a V3 actor application.
func (Application) Started ¶
func (app Application) Started() bool
func (Application) Stopped ¶
func (app Application) Stopped() bool
type ApplicationSummary ¶
type ApplicationSummary struct { Application ProcessSummaries ProcessSummaries CurrentDroplet Droplet }
ApplicationSummary represents an application with its processes and droplet.
type ApplicationWithProcessSummary ¶
type ApplicationWithProcessSummary struct { Application ProcessSummaries ProcessSummaries }
type Buildpack ¶
type Buildpack resources.DropletBuildpack
type CloudControllerClient ¶
type CloudControllerClient interface { AppSSHEndpoint() string AppSSHHostKeyFingerprint() string CancelDeployment(deploymentGUID string) (ccv3.Warnings, error) CloudControllerAPIVersion() string CreateApplication(app resources.Application) (resources.Application, ccv3.Warnings, error) CreateApplicationDeployment(appGUID string, dropletGUID string) (string, ccv3.Warnings, error) CreateApplicationProcessScale(appGUID string, process ccv3.Process) (ccv3.Process, ccv3.Warnings, error) CreateApplicationTask(appGUID string, task ccv3.Task) (ccv3.Task, ccv3.Warnings, error) CreateBuild(build ccv3.Build) (ccv3.Build, ccv3.Warnings, error) CreateIsolationSegment(isolationSegment ccv3.IsolationSegment) (ccv3.IsolationSegment, ccv3.Warnings, error) CreatePackage(pkg ccv3.Package) (ccv3.Package, ccv3.Warnings, error) DeleteApplication(guid string) (ccv3.JobURL, ccv3.Warnings, error) DeleteApplicationProcessInstance(appGUID string, processType string, instanceIndex int) (ccv3.Warnings, error) DeleteIsolationSegment(guid string) (ccv3.Warnings, error) DeleteIsolationSegmentOrganization(isolationSegmentGUID string, organizationGUID string) (ccv3.Warnings, error) EntitleIsolationSegmentToOrganizations(isoGUID string, orgGUIDs []string) (resources.RelationshipList, ccv3.Warnings, error) GetApplicationDropletCurrent(appGUID string) (resources.Droplet, ccv3.Warnings, error) GetApplicationEnvironment(appGUID string) (ccv3.Environment, ccv3.Warnings, error) GetApplicationProcessByType(appGUID string, processType string) (ccv3.Process, ccv3.Warnings, error) GetApplicationProcesses(appGUID string) ([]ccv3.Process, ccv3.Warnings, error) GetApplications(query ...ccv3.Query) ([]resources.Application, ccv3.Warnings, error) GetApplicationTasks(appGUID string, query ...ccv3.Query) ([]ccv3.Task, ccv3.Warnings, error) GetBuild(guid string) (ccv3.Build, ccv3.Warnings, error) GetDeployment(guid string) (ccv3.Deployment, ccv3.Warnings, error) GetDeployments(query ...ccv3.Query) ([]ccv3.Deployment, ccv3.Warnings, error) GetDroplet(guid string) (resources.Droplet, ccv3.Warnings, error) GetDroplets(query ...ccv3.Query) ([]resources.Droplet, ccv3.Warnings, error) GetInfo() (ccv3.Info, ccv3.ResourceLinks, ccv3.Warnings, error) GetIsolationSegment(guid string) (ccv3.IsolationSegment, ccv3.Warnings, error) GetIsolationSegmentOrganizations(isolationSegmentGUID string) ([]resources.Organization, ccv3.Warnings, error) GetIsolationSegments(query ...ccv3.Query) ([]ccv3.IsolationSegment, ccv3.Warnings, error) GetOrganizationDefaultIsolationSegment(orgGUID string) (resources.Relationship, ccv3.Warnings, error) GetOrganizations(query ...ccv3.Query) ([]resources.Organization, ccv3.Warnings, error) GetPackage(guid string) (ccv3.Package, ccv3.Warnings, error) GetPackages(query ...ccv3.Query) ([]ccv3.Package, ccv3.Warnings, error) GetProcessInstances(processGUID string) ([]ccv3.ProcessInstance, ccv3.Warnings, error) GetServiceInstances(query ...ccv3.Query) ([]ccv3.ServiceInstance, ccv3.Warnings, error) GetSpaceIsolationSegment(spaceGUID string) (resources.Relationship, ccv3.Warnings, error) GetSpaces(query ...ccv3.Query) ([]ccv3.Space, ccv3.IncludedResources, ccv3.Warnings, error) PollJob(jobURL ccv3.JobURL) (ccv3.Warnings, error) SetApplicationDroplet(appGUID string, dropletGUID string) (resources.Relationship, ccv3.Warnings, error) TargetCF(settings ccv3.TargetSettings) (ccv3.Info, ccv3.Warnings, error) UpdateApplication(app resources.Application) (resources.Application, ccv3.Warnings, error) UpdateApplicationApplyManifest(appGUID string, rawManifest []byte) (ccv3.JobURL, ccv3.Warnings, error) UpdateApplicationEnvironmentVariables(appGUID string, envVars ccv3.EnvironmentVariables) (ccv3.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) UpdateOrganizationDefaultIsolationSegmentRelationship(orgGUID string, isolationSegmentGUID string) (resources.Relationship, ccv3.Warnings, error) UpdateProcess(process ccv3.Process) (ccv3.Process, ccv3.Warnings, error) UpdateSpaceIsolationSegmentRelationship(spaceGUID string, isolationSegmentGUID string) (resources.Relationship, ccv3.Warnings, error) UpdateTaskCancel(taskGUID string) (ccv3.Task, ccv3.Warnings, error) UploadBitsPackage(pkg ccv3.Package, matchedResources []ccv3.Resource, newResources io.Reader, newResourcesLength int64) (ccv3.Package, ccv3.Warnings, error) UploadDropletBits(dropletGUID string, dropletPath string, droplet io.Reader, dropletLength int64) (ccv3.JobURL, ccv3.Warnings, error) UploadPackage(pkg ccv3.Package, zipFilepath string) (ccv3.Package, ccv3.Warnings, error) }
CloudControllerClient is the interface to the cloud controller V3 API.
type Config ¶
type Config interface { AccessToken() string DialTimeout() time.Duration PollingInterval() time.Duration SetTargetInformation(args configv3.TargetInformationArgs) SetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string) SetUAAClientCredentials(client string, clientSecret string) SetUAAGrantType(uaaGrantType string) SkipSSLValidation() bool SSHOAuthClient() string StartupTimeout() time.Duration StagingTimeout() time.Duration Target() string UAAGrantType() string UnsetOrganizationAndSpaceInformation() }
type DockerImageCredentials ¶
type Droplet ¶
type Droplet struct { GUID string State constant.DropletState CreatedAt string Stack string Image string Buildpacks []Buildpack }
Droplet represents a Cloud Controller droplet.
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 IsolationSegment ¶
type IsolationSegment ccv3.IsolationSegment
IsolationSegment represents a V3 actor IsolationSegment.
type IsolationSegmentSummary ¶
type LogMessage ¶
type LogMessage struct {
// contains filtered or unexported fields
}
func NewLogMessage ¶
func (LogMessage) Message ¶
func (log LogMessage) Message() string
func (LogMessage) SourceInstance ¶
func (log LogMessage) SourceInstance() string
func (LogMessage) SourceType ¶
func (log LogMessage) SourceType() string
func (LogMessage) Staging ¶
func (log LogMessage) Staging() bool
func (LogMessage) Timestamp ¶
func (log LogMessage) Timestamp() time.Time
func (LogMessage) Type ¶
func (log LogMessage) Type() string
type LogMessages ¶
type LogMessages []*LogMessage
func (LogMessages) Len ¶
func (lm LogMessages) Len() int
func (LogMessages) Less ¶
func (lm LogMessages) Less(i, j int) bool
func (LogMessages) Swap ¶
func (lm LogMessages) Swap(i, j int)
type ManifestParser ¶
type NOAAClient ¶
type NOAAClient interface { Close() error RecentLogs(appGUID string, authToken string) ([]*events.LogMessage, error) SetOnConnectCallback(cb func()) TailingLogs(appGUID, authToken string) (<-chan *events.LogMessage, <-chan error) }
NOAAClient is a client for getting logs.
type Organization ¶
type Organization resources.Organization
Organization represents a V3 actor organization.
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 ProcessSummaries ¶
type ProcessSummaries []ProcessSummary
func (ProcessSummaries) Sort ¶
func (ps ProcessSummaries) Sort()
func (ProcessSummaries) String ¶
func (ps ProcessSummaries) String() string
type ProcessSummary ¶
type ProcessSummary struct { Process 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 SSHActor ¶
type SSHActor interface {
ExecuteSecureShell(sshOptions sharedaction.SSHOptions) error
}
type SSHAuthentication ¶
type ServiceInstance ¶
type ServiceInstance ccv3.ServiceInstance
type SharedActor ¶
type SharedActor interface {}
type TargetSettings ¶
type TargetSettings ccv3.TargetSettings
Source Files ¶
- actor.go
- application.go
- application_manifest.go
- application_summary.go
- application_with_process_summary.go
- auth.go
- build.go
- cloud_controller_client.go
- config.go
- droplet.go
- environment_variable.go
- isolation_segment.go
- logcache.go
- logging.go
- noaa_client.go
- organization.go
- package.go
- process.go
- process_health_check.go
- process_instance.go
- process_summary.go
- relationship_list.go
- service_instance.go
- shared_actor.go
- space.go
- ssh.go
- ssh_actor.go
- target.go
- task.go
- uaa_client.go
- version.go
- zdt.go