lua

package
v0.0.0-...-3127a7f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AwsUser                 string = "aws_user"
	AwsAccessKey            string = "aws_access_key"
	AwsVpc                  string = "aws_vpc"
	AwsSubnet               string = "aws_subnet"
	AwsRoute                string = "aws_route"
	AwsInternetGateway      string = "aws_igw"
	AwsNatGateway           string = "aws_nat"
	AwsAZs                  string = "aws_availability_zones"
	UnknownType             string = "unknown_type"
	AwsProviderType         string = "aws"
	UnsupportedProviderType string = "unsupported_type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsProvider

type AwsProvider interface {
	Create(ctx context.Context, resource string, o Object) (Object, error)
	Delete(ctx context.Context, resource string, o Object) (Object, error)
	List(ctx context.Context, resource string, o Object) (Object, error)
}

type LuaInterpreter

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

func NewAwsModule

func NewAwsModule(awsProvider AwsProvider) *LuaInterpreter

func (*LuaInterpreter) Loader

func (l *LuaInterpreter) Loader(L *lua.LState) int

type Object

type Object map[string]interface{}

func (Object) GetBool

func (o Object) GetBool(key string) bool

func (Object) GetList

func (o Object) GetList(key string) []interface{}

func (Object) GetObject

func (o Object) GetObject(key string) map[string]interface{}

func (Object) GetString

func (o Object) GetString(key string) string

func (Object) Provider

func (o Object) Provider() string

func (Object) Type

func (o Object) Type() string

type TwtInterpreter

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

func NewTwtModule

func NewTwtModule(twtProvider TwtProvider) *TwtInterpreter

func (*TwtInterpreter) Loader

func (t *TwtInterpreter) Loader(L *lua.LState) int

type TwtProvider

type TwtProvider interface {
	Create(ctx context.Context, o Object) (string, error)
	Verify(ctx context.Context, o Object, twt string) error
}

Jump to

Keyboard shortcuts

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