translator

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

README

file/translator

This package translates Lua tables into native Go data structures. It is used for Config and HostConfig.

API

func ParseImageConfigFromLuaTable(l *lua.State) docker.Config

ParseImageConfigFromLuaTable reads all keys in the currently top-most table from the stack and applies everything it can to a docker.Config. The comparison is case insensitive by design.


func ParseHostConfigFromLuaTable(l *lua.State) docker.HostConfig

ParseHostConfigFromLuaTable reads all keys in the currently top-most table from the stack and applies everything it can to a docker.HostConfig. The comparison is case insensitive by design.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHostConfigFromLuaTable

func ParseHostConfigFromLuaTable(l *lua.State, conf docker.HostConfig) docker.HostConfig

ParseHostConfigFromLuaTable reads all keys in the currently top-most table from the stack and applies everything it can to the given default docker.HostConfig. The comparison is case insensitive by design.

func ParseImageConfigFromLuaTable

func ParseImageConfigFromLuaTable(l *lua.State) docker.Config

ParseImageConfigFromLuaTable reads all keys in the currently top-most table from the stack and applies everything it can to a docker.Config. The comparison is case insensitive by design.

Types

This section is empty.

Jump to

Keyboard shortcuts

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