Documentation ¶
Overview ¶
* Copyright (C) 2017-Present Pivotal Software, Inc. All rights reserved. * * This program and the accompanying materials are made available under * the terms of the under the Apache License, Version 2.0 (the "License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright (C) 2017-Present Pivotal Software, Inc. All rights reserved. * * This program and the accompanying materials are made available under * the terms of the under the Apache License, Version 2.0 (the "License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright (C) 2017-Present Pivotal Software, Inc. All rights reserved. * * This program and the accompanying materials are made available under * the terms of the under the Apache License, Version 2.0 (the "License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright (C) 2017-Present Pivotal Software, Inc. All rights reserved. * * This program and the accompanying materials are made available under * the terms of the under the Apache License, Version 2.0 (the "License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright (C) 2017-Present Pivotal Software, Inc. All rights reserved. * * This program and the accompanying materials are made available under * the terms of the under the Apache License, Version 2.0 (the "License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright (C) 2017-Present Pivotal Software, Inc. All rights reserved. * * This program and the accompanying materials are made available under * the terms of the under the Apache License, Version 2.0 (the "License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright (C) 2017-Present Pivotal Software, Inc. All rights reserved. * * This program and the accompanying materials are made available under * the terms of the under the Apache License, Version 2.0 (the "License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- func RenderView(viewInstanceResp *ViewInstanceResp) (string, error)
- type BackingApp
- type BackingAppInstance
- type Operation
- func NewParametersOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
- func NewRestageOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
- func NewRestartOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
- func NewStartOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
- func NewStopOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
- func NewViewOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
- type OperationRunner
- type ViewInstanceResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderView ¶
func RenderView(viewInstanceResp *ViewInstanceResp) (string, error)
Types ¶
type BackingApp ¶
type BackingApp struct { Name string Buildpack string LastUploaded int64 `json:"last_uploaded"` Stack string Memory int NumInstances int `json:"num_instances"` RunningInstances int `json:"running_instances"` RequestedState string `json:"requested_state"` Routes []string Instances []BackingAppInstance }
type BackingAppInstance ¶
type Operation ¶
type Operation interface { Run(serviceInstanceAdminParameters serviceutil.ManagementParameters, accessToken string) (string, error) IsServiceBrokerOperation() bool }
func NewParametersOperation ¶ added in v1.0.13
func NewParametersOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
func NewRestageOperation ¶ added in v1.0.13
func NewRestageOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
func NewRestartOperation ¶ added in v1.0.13
func NewRestartOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
func NewStartOperation ¶ added in v1.0.13
func NewStartOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
func NewStopOperation ¶ added in v1.0.13
func NewStopOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
func NewViewOperation ¶ added in v1.0.13
func NewViewOperation(authenticatedClient httpclient.AuthenticatedClient) Operation
type OperationRunner ¶ added in v1.0.13
type OperationRunner interface {
RunOperation(serviceInstanceName string, operation Operation) (string, error)
}
func NewAuthenticatedOperationRunner ¶ added in v1.0.13
func NewAuthenticatedOperationRunner( cliConnection plugin.CliConnection, serviceInstanceUrlResolver serviceutil.ServiceInstanceResolver) OperationRunner
type ViewInstanceResp ¶
type ViewInstanceResp struct {
BackingApps []BackingApp `json:"backing_apps"`
}