project

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuessAppName added in v0.2.0

func GuessAppName() *string

func IsValidProjectType added in v0.7.0

func IsValidProjectType(projectType string) bool

func ProjectInit

func ProjectInit(options InitOptions, resources fs.FS) ([]string, error)

Types

type InitOptions

type InitOptions struct {
	DestinationFolder string
	DefaultBranch     string
	PipelineType      string
}

type Project

type Project struct {
	Name                  string
	Version               string
	Type                  ProjectType
	Directory             string
	RuntimeVersion        string
	DefaultRuntimeVersion string
	ImagePullSecrets      []string
	Resources             fs.FS
	IsPrivate             bool
}

func New

func New(name string, projectType ProjectType, directory string, runtimeVersion string, version string, isPrivate bool, imagePullSecrets []string, resources fs.FS) Project

func (Project) Dockerfile

func (proj Project) Dockerfile() ([]byte, error)

func (Project) NodeInstallCommand

func (proj Project) NodeInstallCommand() string

type ProjectType

type ProjectType string
const (
	NodeProject ProjectType = "node"
	GoProject   ProjectType = "go"
)

func DetectType added in v0.7.0

func DetectType(directory string) (ProjectType, error)

Jump to

Keyboard shortcuts

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