| 1 |
/* |
| 2 |
Copyright 2025 The Kubernetes Authors. |
| 3 |
|
| 4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
you may not use this file except in compliance with the License. |
| 6 |
You may obtain a copy of the License at |
| 7 |
|
| 8 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
|
| 10 |
Unless required by applicable law or agreed to in writing, software |
| 11 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
See the License for the specific language governing permissions and |
| 14 |
limitations under the License. |
| 15 |
*/ |
| 16 |
|
| 17 |
package yaml |
| 18 |
|
| 19 |
import ( |
| 20 |
gopkg_yaml "go.yaml.in/yaml/v3" |
| 21 |
) |
| 22 |
|
| 23 |
// Type aliases for public types from go.yaml.in/yaml/v3 |
| 24 |
type ( |
| 25 |
// Unmarshaler is implemented by types to customize their behavior when being unmarshaled from a YAML document. |
| 26 |
// Deprecated: Use go.yaml.in/yaml/v3.Unmarshaler directly. |
| 27 |
Unmarshaler = gopkg_yaml.Unmarshaler |
| 28 |
|
| 29 |
// Marshaler is implemented by types to customize their behavior when being marshaled into a YAML document. |
| 30 |
// Deprecated: Use go.yaml.in/yaml/v3.Marshaler directly. |
| 31 |
Marshaler = gopkg_yaml.Marshaler |
| 32 |
|
| 33 |
// IsZeroer is used to check whether an object is zero to determine whether it should be omitted when |
| 34 |
// marshaling with the omitempty flag. One notable implementation is time.Time. |
| 35 |
// Deprecated: Use go.yaml.in/yaml/v3.IsZeroer directly. |
| 36 |
IsZeroer = gopkg_yaml.IsZeroer |
| 37 |
|
| 38 |
// Decoder reads and decodes YAML values from an input stream. |
| 39 |
// Deprecated: Use go.yaml.in/yaml/v3.Decoder directly. |
| 40 |
Decoder = gopkg_yaml.Decoder |
| 41 |
|
| 42 |
// Encoder writes YAML values to an output stream. |
| 43 |
// Deprecated: Use go.yaml.in/yaml/v3.Encoder directly. |
| 44 |
Encoder = gopkg_yaml.Encoder |
| 45 |
|
| 46 |
// TypeError is returned by Unmarshal when one or more fields in the YAML document cannot be properly decoded. |
| 47 |
// Deprecated: Use go.yaml.in/yaml/v3.TypeError directly. |
| 48 |
TypeError = gopkg_yaml.TypeError |
| 49 |
|
| 50 |
// Node represents a YAML node in the document. |
| 51 |
// Deprecated: Use go.yaml.in/yaml/v3.Node directly. |
| 52 |
Node = gopkg_yaml.Node |
| 53 |
|
| 54 |
// Kind represents the kind of a YAML node. |
| 55 |
// Deprecated: Use go.yaml.in/yaml/v3.Kind directly. |
| 56 |
Kind = gopkg_yaml.Kind |
| 57 |
|
| 58 |
// Style represents the style of a YAML node. |
| 59 |
// Deprecated: Use go.yaml.in/yaml/v3.Style directly. |
| 60 |
Style = gopkg_yaml.Style |
| 61 |
) |
| 62 |
|
| 63 |
// Constants for Kind type from go.yaml.in/yaml/v3 |
| 64 |
const ( |
| 65 |
// DocumentNode represents a YAML document node. |
| 66 |
// Deprecated: Use go.yaml.in/yaml/v3.DocumentNode directly. |
| 67 |
DocumentNode = gopkg_yaml.DocumentNode |
| 68 |
|
| 69 |
// SequenceNode represents a YAML sequence node. |
| 70 |
// Deprecated: Use go.yaml.in/yaml/v3.SequenceNode directly. |
| 71 |
SequenceNode = gopkg_yaml.SequenceNode |
| 72 |
|
| 73 |
// MappingNode represents a YAML mapping node. |
| 74 |
// Deprecated: Use go.yaml.in/yaml/v3.MappingNode directly. |
| 75 |
MappingNode = gopkg_yaml.MappingNode |
| 76 |
|
| 77 |
// ScalarNode represents a YAML scalar node. |
| 78 |
// Deprecated: Use go.yaml.in/yaml/v3.ScalarNode directly. |
| 79 |
ScalarNode = gopkg_yaml.ScalarNode |
| 80 |
|
| 81 |
// AliasNode represents a YAML alias node. |
| 82 |
// Deprecated: Use go.yaml.in/yaml/v3.AliasNode directly. |
| 83 |
AliasNode = gopkg_yaml.AliasNode |
| 84 |
) |
| 85 |
|
| 86 |
// Constants for Style type from go.yaml.in/yaml/v3 |
| 87 |
const ( |
| 88 |
// TaggedStyle represents a tagged YAML style. |
| 89 |
// Deprecated: Use go.yaml.in/yaml/v3.TaggedStyle directly. |
| 90 |
TaggedStyle = gopkg_yaml.TaggedStyle |
| 91 |
|
| 92 |
// DoubleQuotedStyle represents a double-quoted YAML style. |
| 93 |
// Deprecated: Use go.yaml.in/yaml/v3.DoubleQuotedStyle directly. |
| 94 |
DoubleQuotedStyle = gopkg_yaml.DoubleQuotedStyle |
| 95 |
|
| 96 |
// SingleQuotedStyle represents a single-quoted YAML style. |
| 97 |
// Deprecated: Use go.yaml.in/yaml/v3.SingleQuotedStyle directly. |
| 98 |
SingleQuotedStyle = gopkg_yaml.SingleQuotedStyle |
| 99 |
|
| 100 |
// LiteralStyle represents a literal YAML style. |
| 101 |
// Deprecated: Use go.yaml.in/yaml/v3.LiteralStyle directly. |
| 102 |
LiteralStyle = gopkg_yaml.LiteralStyle |
| 103 |
|
| 104 |
// FoldedStyle represents a folded YAML style. |
| 105 |
// Deprecated: Use go.yaml.in/yaml/v3.FoldedStyle directly. |
| 106 |
FoldedStyle = gopkg_yaml.FoldedStyle |
| 107 |
|
| 108 |
// FlowStyle represents a flow YAML style. |
| 109 |
// Deprecated: Use go.yaml.in/yaml/v3.FlowStyle directly. |
| 110 |
FlowStyle = gopkg_yaml.FlowStyle |
| 111 |
) |
| 112 |
|
| 113 |
// Function aliases for public functions from go.yaml.in/yaml/v3 |
| 114 |
var ( |
| 115 |
// Unmarshal decodes the first document found within the in byte slice and assigns decoded values into the out value. |
| 116 |
// Deprecated: Use go.yaml.in/yaml/v3.Unmarshal directly. |
| 117 |
Unmarshal = gopkg_yaml.Unmarshal |
| 118 |
|
| 119 |
// Marshal serializes the value provided into a YAML document. |
| 120 |
// Deprecated: Use go.yaml.in/yaml/v3.Marshal directly. |
| 121 |
Marshal = gopkg_yaml.Marshal |
| 122 |
|
| 123 |
// NewDecoder returns a new decoder that reads from r. |
| 124 |
// Deprecated: Use go.yaml.in/yaml/v3.NewDecoder directly. |
| 125 |
NewDecoder = gopkg_yaml.NewDecoder |
| 126 |
|
| 127 |
// NewEncoder returns a new encoder that writes to w. |
| 128 |
// Deprecated: Use go.yaml.in/yaml/v3.NewEncoder directly. |
| 129 |
NewEncoder = gopkg_yaml.NewEncoder |
| 130 |
) |