generator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasePath

func BasePath(path string) core.OptionFunc

func Defaults

func Defaults(_ context.Context, gen *core.Generator) error

func ImportPath

func ImportPath(path string) (string, error)

func New

func New() *core.Generator

func ResolvePaths

func ResolvePaths(_ context.Context, gen *core.Generator) error

func Run

func Run(ctx context.Context, opts ...core.OptionFunc) error

Types

type Output

type Output struct {
	Roles       io.ReadWriter
	Permissions io.ReadWriter
}

func Generate

func Generate(_ context.Context, generator *core.Generator) (*Output, error)

type ValidationError

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

func (ValidationError) Error

func (err ValidationError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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