discover

package
v0.23.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidShuttlePathFile = errors.New("shuttle path did not point ot a shuttle.yaml file")

Functions

This section is empty.

Types

type ActionsDiscovered

type ActionsDiscovered struct {
	Files     []string
	DirPath   string
	ParentDir string
}

type Discovered

type Discovered struct {
	Local *ActionsDiscovered
	Plan  *ActionsDiscovered
}

func Discover

func Discover(
	ctx context.Context,
	shuttlepath string,
	c *config.ShuttleProjectContext,
) (*Discovered, error)

path: is a path to the shuttle.yaml file It will always look for the actions directory relative to the shuttle.yaml file

1. Traverse actionsdir

2. Traverse plan if exists (only 1 layer for now)

3. Collect file names

4. Return list of files to move to tmp dir

Jump to

Keyboard shortcuts

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