project

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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
	Version           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