converter

package
v0.0.0-...-b08ae9a Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

func New

func New(m *mruby.Mrb) *Converter

New returns a new converter for any Kubernetes API object to Ruby

func (*Converter) Convert

func (c *Converter) Convert(obj interface{}) error

Convert performs conversion from any Kubernetes API object to Ruby, it may panic, if there is something terribly wrong; it's effective in wire-format and uses lower-case keys, unlike Go structs.

func (*Converter) Value

func (c *Converter) Value() mruby.Value

Value returns converted Ruby value (currently a hash)

Jump to

Keyboard shortcuts

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