protomappers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MPL-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package protomappers contains mappers for converting to/from proto types

Index

Constants

This section is empty.

Variables

View Source
var All = []interface{}{
	Logger,
	LoggerProto,
	TerminalUI,
	TerminalUIProto,
}

All is the list of all mappers as raw function pointers.

Functions

func Logger

func Logger(input *pb.Args_Logger) hclog.Logger

Logger maps *pb.Args_Logger to an hclog.Logger

func LoggerProto

func LoggerProto(log hclog.Logger) *pb.Args_Logger

LoggerProto maps hclog.Logger to a *b.Args_Logger

func TerminalUI

func TerminalUI(
	input *pb.Args_TerminalUI,
	log hclog.Logger,
	internal *pluginargs.Internal,
) (terminal.UI, error)

TerminalUI maps *pb.Args_TerminalUI to terminal.UI

func TerminalUIProto

func TerminalUIProto(
	ui terminal.UI,
	log hclog.Logger,
	internal *pluginargs.Internal,
) *pb.Args_TerminalUI

TerminalUIProto maps a terminal.UI to *pb.Args_TerminalUI

Types

This section is empty.

Jump to

Keyboard shortcuts

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