generator

package
v0.0.0-...-6a354e9 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package generator provides mechanisms to generate an entrypoint using go template.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct{}

Generator is used to generate the entrypoint for the drone plugin.

func NewGenerator

func NewGenerator() *Generator

NewGenerator creates a new, initialized generator.

func (*Generator) GenerateEntrypoint

func (g *Generator) GenerateEntrypoint(src string, dst string, flags []parser.ParsedFlag) error

GenerateEntrypoint generates an entrypoint script using the source go template and destination file using the provided flags.

Jump to

Keyboard shortcuts

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