Documentation ¶
Index ¶
- Constants
- func Activate(stepLibURI, id, version, destination, destinationStepYML string, ...) error
- func Collections() ([]models.SteplibInfoModel, error)
- func DeleteShareSteplibFile() error
- func GuideTextForAudit(toolMode bool) string
- func GuideTextForFinish() string
- func GuideTextForShareCreate(toolMode bool) string
- func GuideTextForShareFinish(toolMode bool) string
- func GuideTextForShareStart(toolMode bool) string
- func GuideTextForStart() string
- func GuideTextForStepAudit(toolMode bool) string
- func QueryStepInfo(library, id, version string, log stepman.Logger) (models.StepInfoModel, error)
- func QueryStepInfoFromGit(gitURL, tagOrBranch string) (models.StepInfoModel, error)
- func QueryStepInfoFromLibrary(library, id, version string, log stepman.Logger) (models.StepInfoModel, error)
- func QueryStepInfoFromPath(dir string) (models.StepInfoModel, error)
- func Run()
- func Setup(steplibURI, copySpecJSONPath string, log stepman.Logger) error
- func UpdateLibrary(uri string, log stepman.Logger) error
- func WriteShareSteplibToFile(share ShareModel) error
- type ExportType
- type OutputModel
- type ShareModel
- type VersionOutputModel
Constants ¶
const ( // DebugEnvKey ... DebugEnvKey = "STEPMAN_DEBUG" // LogLevelEnvKey ... LogLevelEnvKey = "LOGLEVEL" // CollectionPathEnvKey ... CollectionPathEnvKey = "STEPMAN_COLLECTION" // HelpKey ... HelpKey = "help" // VersionKey ... VersionKey = "version" // CollectionKey ... CollectionKey = "collection" // LocalCollectionKey ... LocalCollectionKey = "local" // CopySpecJSONKey ... CopySpecJSONKey = "copy-spec-json" // DebugKey ... DebugKey = "debug" // LogLevelKey ... LogLevelKey = "loglevel" // IDKey ... IDKey = "id" // PathKey ... PathKey = "path" // CopyYMLKey ... CopyYMLKey = "copyyml" // UpdateKey ... UpdateKey = "update" // TagKey ... TagKey = "tag" // GitKey ... GitKey = "git" // StepIDKey ... StepIDKey = "stepid" // ShortKey ... ShortKey = "short" // ToolMode ... ToolMode = "toolmode" // FormatKey ... FormatKey = "format" // OutputFormatRaw ... OutputFormatRaw = "raw" // OutputFormatJSON ... OutputFormatJSON = "json" // StepYMLKey ... StepYMLKey = "step-yml" )
const ( string = "share.json" )ShareFilename
Variables ¶
This section is empty.
Functions ¶
func Activate ¶
func Activate(stepLibURI, id, version, destination, destinationStepYML string, updateLibrary bool, log stepman.Logger) error
Activate ...
func Collections ¶
func Collections() ([]models.SteplibInfoModel, error)
Collections returns SteplibInfoModels about the locally configured step collections.
func GuideTextForShareCreate ¶
GuideTextForShareCreate ...
func GuideTextForShareFinish ¶
GuideTextForShareFinish ...
func GuideTextForShareStart ¶
GuideTextForShareStart ...
func GuideTextForStepAudit ¶
GuideTextForStepAudit ...
func QueryStepInfo ¶
QueryStepInfo returns a matching step info. In cases of git and path sources the step.yml is read, otherwise the step is looked up in a step library.
func QueryStepInfoFromGit ¶
func QueryStepInfoFromGit(gitURL, tagOrBranch string) (models.StepInfoModel, error)
QueryStepInfoFromGit returns step info from git source.
func QueryStepInfoFromLibrary ¶
func QueryStepInfoFromLibrary(library, id, version string, log stepman.Logger) (models.StepInfoModel, error)
QueryStepInfoFromLibrary returns a step version based on the version string, which can be latest or locked to major or minor versions
func QueryStepInfoFromPath ¶
func QueryStepInfoFromPath(dir string) (models.StepInfoModel, error)
QueryStepInfoFromPath returns step info from a local path source
func WriteShareSteplibToFile ¶
func WriteShareSteplibToFile(share ShareModel) error
WriteShareSteplibToFile ...
Types ¶
type OutputModel ¶
type OutputModel struct { Data *([]models.SteplibInfoModel) `json:"data,omitempty" yaml:"data,omitempty"` Error string `json:"error,omitempty" yaml:"error,omitempty"` }
OutputModel ...
type ShareModel ¶
type ShareModel struct {}
ShareModel ...
func ReadShareSteplibFromFile ¶
func ReadShareSteplibFromFile() (ShareModel, error)
ReadShareSteplibFromFile ...
func (ShareModel) ShareBranchName ¶
func (share ShareModel) ShareBranchName() string
ShareBranchName ...
type VersionOutputModel ¶
type VersionOutputModel struct { Version string `json:"version,omitempty"` OS string `json:"os,omitempty"` GO string `json:"go,omitempty"` BuildNumber string `json:"build_number,omitempty"` Commit string `json:"commit,omitempty"` FullVersion bool `json:"-"` }
VersionOutputModel ...