renderers

package
v8.4.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShellTypePowershell = "powershell"
	ShellTypePosix      = "posix"
	ShellTypeYaml       = "yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	Create(shellType string) (Renderer, error)
}

Factory defines a new renderer factory

func NewFactory

func NewFactory(envGetter helpers.EnvGetter) Factory

NewFactory creates a new factory

type Renderer

type Renderer interface {
	RenderEnvironmentVariable(variable string, value string) string
	Type() string
}

Renderer defines a rendering interface

func NewPosix

func NewPosix() Renderer

NewPosix defines a new posix renderer

func NewPowershell

func NewPowershell() Renderer

NewPowershell creates a new Powershell Renderer

func NewYaml

func NewYaml() Renderer

NewYaml defines a new yaml renderer

Jump to

Keyboard shortcuts

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