Documentation ¶
Index ¶
- Constants
- func AddRoute(route SteplibRoute) error
- func CleanupDanglingLibrary(URI string) error
- func CleanupRoute(route SteplibRoute) error
- func CreateStepManDirIfNeeded() error
- func DownloadStep(collectionURI string, collection models.StepCollectionModel, ...) error
- func GenerateFolderAlias() string
- func GetAllStepCollectionPath() []string
- func GetCacheBaseDir(route SteplibRoute) string
- func GetCollectionsDirPath() string
- func GetLibraryBaseDirPath(route SteplibRoute) string
- func GetSlimStepSpecPath(route SteplibRoute) string
- func GetStepCacheDirPath(route SteplibRoute, id, version string) string
- func GetStepCollectionDirPath(route SteplibRoute, id, version string) string
- func GetStepCollectionSpecPath(route SteplibRoute) string
- func GetStepGlobalInfoPath(route SteplibRoute, id string) string
- func GetStepSpecPath(route SteplibRoute) string
- func GetStepmanDirPath() string
- func ParseStepCollection(pth string) (models.StepCollectionModel, error)
- func ParseStepDefinition(pth string, validate bool) (models.StepModel, error)
- func ParseStepGroupInfo(pth string) (models.StepGroupInfoModel, error)
- func ParseStepGroupInfoModel(pth string) (models.StepGroupInfoModel, bool, error)
- func ReGenerateLibrarySpec(route SteplibRoute) error
- func ReadStepSpec(uri string) (models.StepCollectionModel, error)
- func ReadStepVersionInfo(collectionURI, stepID, stepVersionID string) (models.StepVersionModel, error)
- func RemoveRoute(route SteplibRoute) error
- func RootExistForLibrary(collectionURI string) (bool, error)
- func SetupLibrary(libraryURI string, log Logger) error
- func UpdateLibrary(libraryURI string, log Logger) (models.StepCollectionModel, error)
- func WriteStepSpecToFile(templateCollection models.StepCollectionModel, route SteplibRoute) error
- type Logger
- type SteplibRoute
- type SteplibRoutes
Constants ¶
const ( // StepmanDirname ... StepmanDirname = ".stepman" // RoutingFilename ... RoutingFilename = "routing.json" // CollectionsDirname ... CollectionsDirname = "step_collections" )
Variables ¶
This section is empty.
Functions ¶
func CleanupDanglingLibrary ¶
CleanupDanglingLibrary ...
func DownloadStep ¶
func DownloadStep(collectionURI string, collection models.StepCollectionModel, id, version, commithash string, log Logger) error
DownloadStep ...
func GetAllStepCollectionPath ¶
func GetAllStepCollectionPath() []string
GetAllStepCollectionPath ...
func GetLibraryBaseDirPath ¶
func GetLibraryBaseDirPath(route SteplibRoute) string
GetLibraryBaseDirPath ...
func GetSlimStepSpecPath ¶
func GetSlimStepSpecPath(route SteplibRoute) string
GetSlimStepSpecPath ...
func GetStepCacheDirPath ¶
func GetStepCacheDirPath(route SteplibRoute, id, version string) string
GetStepCacheDirPath ... Step's Cache dir path, where it's code lives.
func GetStepCollectionDirPath ¶
func GetStepCollectionDirPath(route SteplibRoute, id, version string) string
GetStepCollectionDirPath ... Step's Collection dir path, where it's spec (step.yml) lives.
func GetStepCollectionSpecPath ¶
func GetStepCollectionSpecPath(route SteplibRoute) string
GetStepCollectionSpecPath Location of steplib.yml of the collection marked by this route
func GetStepGlobalInfoPath ¶
func GetStepGlobalInfoPath(route SteplibRoute, id string) string
GetStepGlobalInfoPath ...
func ParseStepCollection ¶
func ParseStepCollection(pth string) (models.StepCollectionModel, error)
ParseStepCollection ...
func ParseStepDefinition ¶
ParseStepDefinition ...
func ParseStepGroupInfo ¶
func ParseStepGroupInfo(pth string) (models.StepGroupInfoModel, error)
ParseStepGroupInfo ...
func ParseStepGroupInfoModel ¶
func ParseStepGroupInfoModel(pth string) (models.StepGroupInfoModel, bool, error)
ParseStepGroupInfoModel ...
func ReGenerateLibrarySpec ¶
func ReGenerateLibrarySpec(route SteplibRoute) error
ReGenerateLibrarySpec ...
func ReadStepSpec ¶
func ReadStepSpec(uri string) (models.StepCollectionModel, error)
ReadStepSpec ...
func ReadStepVersionInfo ¶
func ReadStepVersionInfo(collectionURI, stepID, stepVersionID string) (models.StepVersionModel, error)
ReadStepVersionInfo ...
func RootExistForLibrary ¶
RootExistForLibrary ...
func UpdateLibrary ¶
func UpdateLibrary(libraryURI string, log Logger) (models.StepCollectionModel, error)
UpdateLibrary ...
func WriteStepSpecToFile ¶
func WriteStepSpecToFile(templateCollection models.StepCollectionModel, route SteplibRoute) error
WriteStepSpecToFile ...
Types ¶
type SteplibRoute ¶
SteplibRoute ...
type SteplibRoutes ¶
type SteplibRoutes []SteplibRoute
SteplibRoutes ...
func (SteplibRoutes) GetRoute ¶
func (routes SteplibRoutes) GetRoute(URI string) (route SteplibRoute, found bool)
GetRoute ...