generator

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AirGenerator

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

func NewAirGenerator

func NewAirGenerator() *AirGenerator

func (*AirGenerator) Env

func (g *AirGenerator) Env() bool

func (*AirGenerator) Filename

func (g *AirGenerator) Filename(opts FilenameOptions) string

func (*AirGenerator) ShouldExist

func (g *AirGenerator) ShouldExist(cfg config.Config) bool

type DockerComposeGenerator

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

func NewDockerGenerator

func NewDockerGenerator() *DockerComposeGenerator

func (*DockerComposeGenerator) Env

func (g *DockerComposeGenerator) Env() bool

func (*DockerComposeGenerator) Filename

func (g *DockerComposeGenerator) Filename(opts FilenameOptions) string

func (*DockerComposeGenerator) ShouldExist

func (g *DockerComposeGenerator) ShouldExist(cfg config.Config) bool

type Environment

type Environment string
const (
	EnvDev     Environment = "dev"
	EnvDefault Environment = ""
)

type FilenameOptions

type FilenameOptions struct {
	Env Environment
}

type Generator

type Generator interface {
	Filename(opts FilenameOptions) string
	ShouldExist(cfg config.Config) bool
	Env() bool
}

Common interface

Jump to

Keyboard shortcuts

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