encoding

package
Version: v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL