stepmanutil

package
v0.0.0-...-8de8ccf Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadStepCollectionModel

func ReadStepCollectionModel(collectionID string) (models.StepCollectionModel, error)

ReadStepCollectionModel ...

Types

type SpecJSONModel

type SpecJSONModel struct {
	Steps map[string]StepInfoModel `json:"steps"`
}

SpecJSONModel ...

type StepInfoModel

type StepInfoModel struct {
	LatestVersion string                      `json:"latest_version_number"`
	StepVersions  map[string]StepVersionModel `json:"versions"`
}

StepInfoModel ...

type StepInputModel

type StepInputModel struct {
	Key          string   `json:"key"`
	Description  string   `json:"description"`
	DefaultValue string   `json:"default_value"`
	ValueOptions []string `json:"value_options"`
	IsExpand     bool     `json:"is_expand"`
}

StepInputModel ...

type StepVersionModel

type StepVersionModel struct {
	Title       string           `json:"title"`
	Description string           `json:"description"`
	Inputs      []StepInputModel `json:"inputs"`
}

StepVersionModel ...

func ReadStepVersionInfo

func ReadStepVersionInfo(collectionID, stepID, stepVersion string) (StepVersionModel, string, error)

ReadStepVersionInfo ... If `stepVersion` is empty, the function will return with the latest available version of the step.

Jump to

Keyboard shortcuts

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