Documentation
¶
Overview ¶
Copyright (C) 2018-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
http://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) 2018-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
http://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 Fatal(doing string, err error)
- func ReadRequest(request interface{})
- func Sayf(message string, args ...interface{})
- func WriteResponse(response interface{})
- type CheckRequest
- type CheckResponse
- type InRequest
- type InResponse
- type InResponseMetadata
- type IntermediateMetadata
- type MetadataPair
- type OutParams
- type OutRequest
- type OutResponse
- type Source
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadRequest ¶
func ReadRequest(request interface{})
TODO refactor this and don't exit in this function, instead return control to caller with err msg
func WriteResponse ¶
func WriteResponse(response interface{})
TODO refactor this and don't exit in this function, instead return control to caller with err msg
Types ¶
type CheckRequest ¶
type CheckResponse ¶
type CheckResponse []Version
type InResponse ¶
type InResponse struct {
Version `json:"version"`
Metadata []InResponseMetadata `json:"metadata"`
}
type InResponseMetadata ¶
type IntermediateMetadata ¶
type MetadataPair ¶
type OutRequest ¶
type OutResponse ¶
type OutResponse struct {
Version Version `json:"version"`
Metadata []MetadataPair `json:"metadata"`
}
type Source ¶
type Source struct {
SpinnakerAPI string `json:"spinnaker_api"`
SpinnakerApplication string `json:"spinnaker_application"`
SpinnakerPipeline string `json:"spinnaker_pipeline"`
Statuses []string `json:"statuses"`
StatusCheckTimeout string `json:"status_check_timeout"`
StatusCheckInterval string `json:"status_check_interval"`
X509Cert string `json:"spinnaker_x509_cert"`
X509Key string `json:"spinnaker_x509_key"`
}