Documentation ¶
Overview ¶
Copyright 2016 Capital One Services, LLC
Licensed 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.
SPDX-Copyright: Copyright (c) Capital One Services, LLC SPDX-License-Identifier: Apache-2.0
Copyright 2016 Capital One Services, LLC ¶
Licensed 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.
SPDX-Copyright: Copyright (c) Capital One Services, LLC SPDX-License-Identifier: Apache-2.0
Copyright 2016 Capital One Services, LLC ¶
Licensed 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.
SPDX-Copyright: Copyright (c) Capital One Services, LLC SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func AddDirective(df DirectiveFunc)
- func ApplyDirectives(templ []byte) string
- func ApplyIncludeEnvDirective(reader io.Reader) []byte
- func ApplyIncludeFileLinesDirective(reader io.Reader) []byte
- func CustomScanLines(data []byte, atEOF bool) (advance int, token []byte, err error)
- func DecodeHJSON(hjsonInput []byte) (map[string]interface{}, error)
- func DecodeYAML(yamlInput []byte) (map[string]interface{}, error)
- func DecodeYAMLFile(yamlFilePath string) (map[string]interface{}, error)
- func DeepToStrMap(input map[string]interface{}) map[string]interface{}
- func DeleteAtIndex(into []interface{}, index int) []interface{}
- func EncodeJSON(document interface{}) []byte
- func EncodeYAML(data interface{}) []byte
- func EscapeStackVer(version string) string
- func FileExists(filename string) bool
- func FileLines(filename string, sub bool) []interface{}
- func FnFileLinesInclude(input interface{}) interface{}
- func GenerateJSONFromYaml(yamlInput []byte) []byte
- func GetenvWithDefault(key string, defaultValue string) string
- func InsertAtIndex(into []interface{}, index int, val ...interface{}) []interface{}
- func InsertStrAtIndex(into []string, index int, val ...string) []string
- func KeyExists(key string, input map[string]interface{}) bool
- func MaxInt(x, y int) int
- func MinInt(x, y int) int
- func SetenvIfAbsent(key, value string)
- func TemporaryChdir(dir string, runItInDir func())
- func TemporaryEnv(name, value string, runIt func())
- func ToStrMap(in interface{}) map[string]interface{}
- type DirectiveFunc
- type TableWriter
Constants ¶
const ( AlignRight = 1 AlignLeft = 2 )
const (
FN_INCLUDE_FILE_LINES = "Fn::Local::IncludeFileLines"
)
Variables ¶
This section is empty.
Functions ¶
func AddDirective ¶
func AddDirective(df DirectiveFunc)
func ApplyDirectives ¶
func CustomScanLines ¶
instead of stripping the CR, we maintain it..
func DecodeHJSON ¶
func DecodeYAML ¶
func DecodeYAMLFile ¶
func DeepToStrMap ¶
func DeleteAtIndex ¶
func DeleteAtIndex(into []interface{}, index int) []interface{}
func EncodeJSON ¶
func EncodeJSON(document interface{}) []byte
func EncodeYAML ¶
func EncodeYAML(data interface{}) []byte
func EscapeStackVer ¶
func FileExists ¶
func FnFileLinesInclude ¶
func FnFileLinesInclude(input interface{}) interface{}
func GenerateJSONFromYaml ¶
func GetenvWithDefault ¶
func InsertAtIndex ¶
func InsertAtIndex(into []interface{}, index int, val ...interface{}) []interface{}
func InsertStrAtIndex ¶
string array insert
func SetenvIfAbsent ¶
func SetenvIfAbsent(key, value string)
func TemporaryEnv ¶
func TemporaryEnv(name, value string, runIt func())
Types ¶
type DirectiveFunc ¶
type TableWriter ¶
type TableWriter struct { Align int // contains filtered or unexported fields }
func NewTableWriter ¶
func NewTableWriter(w io.Writer, colLens ...int) *TableWriter
func (*TableWriter) Footer ¶
func (t *TableWriter) Footer()
func (*TableWriter) WriteHeader ¶
func (t *TableWriter) WriteHeader(headers ...string)
func (*TableWriter) WriteRow ¶
func (t *TableWriter) WriteRow(columns ...string)