generatordir

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneratorDirectory

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

func Instance

func Instance(_ context.Context, baseDir string) *GeneratorDirectory

func (*GeneratorDirectory) CheckValid

func (d *GeneratorDirectory) CheckValid(_ context.Context) error

func (*GeneratorDirectory) FindGeneratorNames

func (d *GeneratorDirectory) FindGeneratorNames(ctx context.Context) ([]string, error)

func (*GeneratorDirectory) Glob added in v1.5.0

func (d *GeneratorDirectory) Glob(ctx context.Context, relativeGlob string) ([]string, error)

func (*GeneratorDirectory) ObtainGeneratorSpec

func (d *GeneratorDirectory) ObtainGeneratorSpec(ctx context.Context, generatorName string) (*api.GeneratorSpec, error)

func (*GeneratorDirectory) ReadFile

func (d *GeneratorDirectory) ReadFile(ctx context.Context, relativePath string) ([]byte, error)

Jump to

Keyboard shortcuts

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