mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
e8381db778
* Update Kubernetes to v1.21.0 * Update to golang v1.16.2 * Update dependent modules to track with upstream * Switch to upstream flannel * Track changes to upstream cloud-controller-manager and FeatureGates Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
45 lines
1.2 KiB
Go
45 lines
1.2 KiB
Go
// Copyright 2019 The Kubernetes Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package yaml
|
|
|
|
import (
|
|
"io"
|
|
|
|
"gopkg.in/yaml.v3"
|
|
)
|
|
|
|
// Expose the yaml.v3 functions so this package can be used as a replacement
|
|
|
|
type Decoder = yaml.Decoder
|
|
type Encoder = yaml.Encoder
|
|
type IsZeroer = yaml.IsZeroer
|
|
type Kind = yaml.Kind
|
|
type Marshaler = yaml.Marshaler
|
|
type Node = yaml.Node
|
|
type Style = yaml.Style
|
|
type TypeError = yaml.TypeError
|
|
type Unmarshaler = yaml.Unmarshaler
|
|
|
|
var Marshal = yaml.Marshal
|
|
var Unmarshal = yaml.Unmarshal
|
|
var NewDecoder = yaml.NewDecoder
|
|
var NewEncoder = func(w io.Writer) *yaml.Encoder {
|
|
e := yaml.NewEncoder(w)
|
|
e.SetIndent(2)
|
|
return e
|
|
}
|
|
|
|
var AliasNode yaml.Kind = yaml.AliasNode
|
|
var DocumentNode yaml.Kind = yaml.DocumentNode
|
|
var MappingNode yaml.Kind = yaml.MappingNode
|
|
var ScalarNode yaml.Kind = yaml.ScalarNode
|
|
var SequenceNode yaml.Kind = yaml.SequenceNode
|
|
|
|
var DoubleQuotedStyle yaml.Style = yaml.DoubleQuotedStyle
|
|
var FlowStyle yaml.Style = yaml.FlowStyle
|
|
var FoldedStyle yaml.Style = yaml.FoldedStyle
|
|
var LiteralStyle yaml.Style = yaml.LiteralStyle
|
|
var SingleQuotedStyle yaml.Style = yaml.SingleQuotedStyle
|
|
var TaggedStyle yaml.Style = yaml.TaggedStyle
|