project

package
v0.13.0 Latest Latest
Warning

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

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

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 DetectProjectAndStackFrom added in v0.11.1

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

DetectProjectAndStackFrom try to get stack and project from given path

func DetectProjectAndStacks added in v0.11.1

func DetectProjectAndStacks() (*v1.Project, *v1.Stack, error)

DetectProjectAndStacks locates the closest project and stack from the current working directory, or an error if not found.

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

type Storage added in v0.13.0

type Storage interface {
	// Get returns a specified Graph.
	Get() (map[string][]string, error)
}

Storage is used to provide storage service for multiple Releases of a specified Project and Workspace.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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