repositories

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

repositories models represent and manipulate repositories within a Galaxy instance Relevant api endpoints are: `/api/tool_shed_repositories`

Index

Constants

View Source
const BasePath = "/api/tool_shed_repositories"

Variables

View Source
var NON_TERMINAL_REPOSITORY_STATES = map[string]bool{
	"New":                                true,
	"Cloning":                            true,
	"Setting tool versions":              true,
	"Installing repository dependencies": true,
	"Installing tool dependencies":       true,
	"Loading proprietary datatypes":      true,
}

Functions

func CheckForUpdates

func CheckForUpdates(ctx context.Context, g *blend4go.GalaxyInstance, repoID blend4go.GalaxyID) error

Check for updates to the specified repository, or all installed repositories.

func ResetMetadataAll

func ResetMetadataAll(ctx context.Context, g *blend4go.GalaxyInstance) error

func Uninstall

func Uninstall(ctx context.Context, g *blend4go.GalaxyInstance, toolShedUrl string, owner string, name string, changesetRevision string, removeFromDisk bool) error

Uninstall a specified repository revision from a specified tool shed from Galaxy

func UninstallID added in v0.1.5

func UninstallID(ctx context.Context, g *blend4go.GalaxyInstance, id string, removeFromDisk bool) error

Uninstall a specified repository id

Types

type Repository

type Repository struct {
	Id                         blend4go.GalaxyID `json:"id,omitempty"`
	Status                     string            `json:"status,omitempty"`
	Name                       string            `json:"name"`
	Deleted                    bool              `json:"deleted,omitempty"`
	CtxRev                     string            `json:"ctx_rev,omitempty"`
	ErrorMessage               string            `json:"error_message,omitempty"`
	InstalledChangesetRevision string            `json:"installed_changeset_revision,omitempty"`
	ToolShed                   string            `json:"tool_shed"`
	DistToShed                 bool              `json:"dist_to_shed,omitempty"`
	Url                        string            `json:"url,omitempty"`
	Uninstalled                bool              `json:"uninstalled,omitempty"`
	Owner                      string            `json:"owner"`
	ChangesetRevision          string            `json:"changeset_revision"`
	IncludeDatatypes           bool              `json:"include_datatypes,omitempty"`
	ToolShedStatus             struct {
		LatestInstallableRevision string `json:"latest_installable_revision"`
		RevisionUpdate            string `json:"revision_update"`
		RevisionUpgrade           string `json:"revision_upgrade"`
		RepositoryDeprecated      string `json:"repository_deprecated"`
	} `json:"tool_shed_status,omitempty"`
	// contains filtered or unexported fields
}

func Get added in v0.1.5

func Install

func Install(ctx context.Context, g *blend4go.GalaxyInstance, toolShedUrl string, owner string, name string, changesetRevision string, installToolDependencies bool, installRepositoryDependencies bool, installResolverDependencies bool, toolPanelSectionId blend4go.GalaxyID, newToolPanelSectionLabel string, wait uint) ([]*Repository, error)

Install a specified repository revision from a specified tool shed into Galaxy

func List

func (*Repository) GetBasePath added in v0.1.4

func (r *Repository) GetBasePath() string

func (*Repository) GetID added in v0.1.4

func (r *Repository) GetID() blend4go.GalaxyID

func (*Repository) Reload

func (r *Repository) Reload() error

func (*Repository) SetGalaxyInstance added in v0.1.4

func (r *Repository) SetGalaxyInstance(g *blend4go.GalaxyInstance)

func (*Repository) SetID added in v0.1.4

func (r *Repository) SetID(id blend4go.GalaxyID)

func (*Repository) Tools added in v0.2.3

func (r *Repository) Tools(ctx context.Context) ([]*tools.Tool, error)

list Tools provided by Repository

Jump to

Keyboard shortcuts

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