project

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectFile = "project.yaml"
	StackFile   = "stack.yaml"
)

Variables

View Source
var (
	ErrNotProjectDirectory = errors.New("path must be a project directory")
	ErrProjectNotUnique    = errors.New("the project obtained is not unique")
	ErrNotStackDirectory   = errors.New("path must be a stack directory")
	ErrStackNotUnique      = errors.New("the stack obtained is not unique")
)

Functions

func DetectProjectAndStack

func DetectProjectAndStack(stackDir string) (p *v1.Project, s *v1.Stack, err error)

DetectProjectAndStack try to get stack and project from given path

func FindAllProjectsFrom

func FindAllProjectsFrom(path string) ([]*v1.Project, error)

FindAllProjectsFrom find all project from the given path

func FindAllStacksFrom

func FindAllStacksFrom(path string) ([]*v1.Stack, error)

FindAllStacksFrom find all stacks from the given path

func GetStackFrom

func GetStackFrom(path string) (*v1.Stack, error)

GetStackFrom get stack from the given path

func IsStack

func IsStack(path string) bool

IsStack determine whether the given path is Stack directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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