Documentation ¶
Overview ¶
* Copyright (C) 2016-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) 2016-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) 2016-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) 2016-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) 2016-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) 2016-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
- func Deregister(authClient httpclient.AuthenticatedClient, eurekaUrl string, ...) error
- func Disable(authClient httpclient.AuthenticatedClient, eurekaUrl string, ...) error
- func Enable(authClient httpclient.AuthenticatedClient, eurekaUrl string, ...) error
- func Info(cliConnection plugin.CliConnection, client httpclient.Client, ...) (string, error)
- func List(cliConnection plugin.CliConnection, srInstanceName string, ...) (string, error)
- func OperateOnApplication(cliConnection plugin.CliConnection, srInstanceName string, cfAppName string, ...) (string, error)
- type ApplicationInstance
- type InfoResp
- type Instance
- type InstanceOperation
- type ListResp
- type Peer
- type ServiceDefinitionResp
- type SummaryFailure
- type SummaryResp
Constants ¶
const ( UnknownCfAppName = "?????" UnknownCfInstanceIndex = "?" )
Variables ¶
This section is empty.
Functions ¶
func Deregister ¶
func Deregister(authClient httpclient.AuthenticatedClient, eurekaUrl string, eurekaAppName string, instanceId string, accessToken string) error
func Disable ¶
func Disable(authClient httpclient.AuthenticatedClient, eurekaUrl string, eurekaAppName string, instanceId string, accessToken string) error
func Enable ¶
func Enable(authClient httpclient.AuthenticatedClient, eurekaUrl string, eurekaAppName string, instanceId string, accessToken string) error
func Info ¶
func Info(cliConnection plugin.CliConnection, client httpclient.Client, srInstanceName string, serviceInstanceUrlResolver serviceutil.ServiceInstanceResolver) (string, error)
func List ¶
func List(cliConnection plugin.CliConnection, srInstanceName string, authClient httpclient.AuthenticatedClient, serviceInstanceUrlResolver serviceutil.ServiceInstanceResolver) (string, error)
func OperateOnApplication ¶
func OperateOnApplication(cliConnection plugin.CliConnection, srInstanceName string, cfAppName string, authClient httpclient.AuthenticatedClient, instanceIndex *int, progressWriter io.Writer, serviceInstanceURLResolver serviceutil.ServiceInstanceResolver, operate InstanceOperation) (string, error)
Types ¶
type ApplicationInstance ¶
type ApplicationInstance struct {
Instance []Instance
}
type InstanceOperation ¶
type InstanceOperation func(authClient httpclient.AuthenticatedClient, eurekaUrl string, eurekaAppName string, instanceId string, accessToken string) error
type ListResp ¶
type ListResp struct { Applications struct { Application []ApplicationInstance } }
type ServiceDefinitionResp ¶
type ServiceDefinitionResp struct { Credentials struct { Uri string } }
type SummaryFailure ¶
type SummaryResp ¶
type SummaryResp struct {
Name string
}