base

package
v1.2.85 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerImageNameFromMod added in v1.2.30

func DockerImageNameFromMod(mp string) (name string)

func Unit added in v1.2.0

func Unit(file CodeFileWriter) (unit processes.Unit)

func Write

func Write(ctx context.Context, goVersion string, path string, dockerImageName string, work bool, dir string) (err error)

Types

type CodeFileUnit added in v1.2.0

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

func (*CodeFileUnit) Handle added in v1.2.0

func (unit *CodeFileUnit) Handle(ctx context.Context) (result interface{}, err error)

type CodeFileWriter added in v1.2.0

type CodeFileWriter interface {
	Name() (name string)
	Write(ctx context.Context) (err error)
}

type ConfigFile

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

func NewConfigFile

func NewConfigFile(kind string, dir string) (cf *ConfigFile, err error)

func NewConfigFiles

func NewConfigFiles(dir string) (v []*ConfigFile, err error)

func (*ConfigFile) Name

func (f *ConfigFile) Name() (name string)

func (*ConfigFile) Write

func (f *ConfigFile) Write(_ context.Context) (err error)

type DockerFile added in v1.2.0

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

func NewDockerFile added in v1.2.0

func NewDockerFile(goVersion string, path string, dir string, dockerImageName string) (mf *DockerFile, err error)

func (*DockerFile) Name added in v1.2.0

func (f *DockerFile) Name() (name string)

func (*DockerFile) Write added in v1.2.0

func (f *DockerFile) Write(_ context.Context) (err error)

type HooksFile

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

func NewHooksFile

func NewHooksFile(dir string) (f *HooksFile, err error)

func (*HooksFile) Name

func (f *HooksFile) Name() (name string)

func (*HooksFile) Write

func (f *HooksFile) Write(_ context.Context) (err error)

type InternalGeneratorsFile

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

func NewInternalGeneratorsFile

func NewInternalGeneratorsFile(dir string) (f *InternalGeneratorsFile, err error)

func (*InternalGeneratorsFile) Name

func (f *InternalGeneratorsFile) Name() (name string)

func (*InternalGeneratorsFile) Write

func (f *InternalGeneratorsFile) Write(_ context.Context) (err error)

type MainFile

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

func NewMainFile

func NewMainFile(path string, dir string, useWork bool) (mf *MainFile, err error)

func (*MainFile) Name

func (f *MainFile) Name() (name string)

func (*MainFile) Write

func (f *MainFile) Write(_ context.Context) (err error)

type ModFile

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

func NewModFile

func NewModFile(goVersion string, path string, dir string) (f *ModFile, err error)

func (*ModFile) Name

func (f *ModFile) Name() (name string)

func (*ModFile) Write

func (f *ModFile) Write(ctx context.Context) (err error)

type ModulesFile

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

func NewModulesFile

func NewModulesFile(path string, dir string) (mf *ModulesFile, err error)

func (*ModulesFile) Name

func (f *ModulesFile) Name() (name string)

func (*ModulesFile) Write

func (f *ModulesFile) Write(ctx context.Context) (err error)

type RepositoryFile

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

func NewRepositoryFile

func NewRepositoryFile(dir string) (hooks *RepositoryFile, err error)

func (*RepositoryFile) Name

func (f *RepositoryFile) Name() (name string)

func (*RepositoryFile) Write

func (f *RepositoryFile) Write(_ context.Context) (err error)

type WorkFile added in v1.2.35

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

func NewWorkFile added in v1.2.35

func NewWorkFile(goVersion string, path string, dir string) (f *WorkFile, err error)

func (*WorkFile) Name added in v1.2.35

func (f *WorkFile) Name() (name string)

func (*WorkFile) Write added in v1.2.35

func (f *WorkFile) Write(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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