Documentation ¶
Overview ¶
Copyright 2021 Red Hat, Inc.
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.
Index ¶
- func BoolToPtr(b bool) *bool
- func CallKey(v reflect.Value) string
- func GetConfigVersion(raw []byte) (semver.Version, report.Report, error)
- func HandleParseErrors(rawConfig []byte, to interface{}) (report.Report, error)
- func IntToPtr(x int) *int
- func IsFalse(b *bool) bool
- func IsInvalidInConfig(k reflect.Kind) bool
- func IsPrimitive(k reflect.Kind) bool
- func IsTrue(b *bool) bool
- func NilOrEmpty(s *string) bool
- func NonZeroValue(t reflect.Type) reflect.Value
- func NotEmpty(s *string) bool
- func StrToPtr(s string) *string
- type IgnoresDups
- type Keyed
- type MergesKeys
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigVersion ¶ added in v2.11.0
GetConfigVersion parses the version from the given raw config
func HandleParseErrors ¶
HandleParseErrors will attempt to unmarshal an invalid rawConfig into "to". If it fails to unmarsh it will generate a report.Report from the errors.
func IsInvalidInConfig ¶
func IsPrimitive ¶
func NilOrEmpty ¶
func NonZeroValue ¶ added in v2.10.0
Return a fully non-zero value for the specified type, recursively setting all fields and slices.
Types ¶
type IgnoresDups ¶
type IgnoresDups interface {
IgnoreDuplicates() map[string]struct{}
}