stepid

package
v0.0.0-...-6ae1a5f Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(compositeVersionString string) error

Types

type CanonicalID

type CanonicalID struct {
	// steplib source uri, or in case of local path just "path", and in case of direct git url just "git"
	SteplibSource string
	// IDOrURI : ID if steplib is provided, URI if local step or in case a direct git url provided
	IDorURI string
	// Version : version in the steplib, or in case of a direct git step the tag-or-branch to use
	Version string
}

CanonicalID is a structured representation of a composite-step-id A composite step id is: step-lib-source::step-id@1.0.0

func CreateCanonicalIDFromString

func CreateCanonicalIDFromString(compositeVersionStr, defaultStepLibSource string) (CanonicalID, error)

compositeVersionStr examples:

func (CanonicalID) IsUniqueResourceID

func (sIDData CanonicalID) IsUniqueResourceID() bool

IsUniqueResourceID : true if this ID is a unique resource ID, which is true if the ID refers to the exact same step code/data every time. Practically, this is only true for steps from StepLibrary collections, a local path or direct git step ID is never guaranteed to identify the same resource every time, the step's behaviour can change at every execution!

__If the ID is a Unique Resource ID then the step can be cached (locally)__, as it won't change between subsequent step execution.

Jump to

Keyboard shortcuts

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