instance

package
v1.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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

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 BackingAppInstance struct {
	Index       int
	State       string
	Since       int64
	CPU         float64
	MemoryUsage int64 `json:"memory_usage"`
	MemoryQuota int64 `json:"memory_quota"`
	DiskUsage   int64 `json:"disk_usage"`
	DiskQuota   int64 `json:"disk_quota"`
	Details     string
}

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"`
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL