encoding

package
v0.22.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package encoding implements utilities for decoding from yaml the `kind` Config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path string) (*config.Cluster, error)

Load reads the file at path and attempts to convert into a `kind` Config; the file can be one of the different API versions defined in scheme. If path == "" then the default config is returned If path == "-" then reads from stdin

func Parse added in v0.6.0

func Parse(raw []byte) (*config.Cluster, error)

Parse parses a cluster config from raw (yaml) bytes It will always return the current internal version after defaulting and conversion from the read version

func V1Alpha4ToInternal added in v0.6.0

func V1Alpha4ToInternal(cluster *v1alpha4.Cluster) *config.Cluster

V1Alpha4ToInternal converts to the internal API version

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL