encoding

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

Codecs provides access to encoding and decoding for the scheme.

View Source
var Scheme = runtime.NewScheme()

Scheme is the runtime.Scheme to which all `kind` config API versions and types are registered.

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme)

AddToScheme builds the scheme using all known `kind` API versions.

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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