Documentation ¶
Overview ¶
repositories models represent and manipulate repositories within a Galaxy instance Relevant api endpoints are: `/api/tool_shed_repositories`
Index ¶
- Constants
- Variables
- func CheckForUpdates(ctx context.Context, g *blend4go.GalaxyInstance, repoID blend4go.GalaxyID) error
- func ResetMetadataAll(ctx context.Context, g *blend4go.GalaxyInstance) error
- func Uninstall(ctx context.Context, g *blend4go.GalaxyInstance, toolShedUrl string, ...) error
- func UninstallID(ctx context.Context, g *blend4go.GalaxyInstance, id string, ...) error
- type Repository
- func (r *Repository) GetBasePath() string
- func (r *Repository) GetID() blend4go.GalaxyID
- func (r *Repository) Reload() error
- func (r *Repository) SetGalaxyInstance(g *blend4go.GalaxyInstance)
- func (r *Repository) SetID(id blend4go.GalaxyID)
- func (r *Repository) Tools(ctx context.Context) ([]*tools.Tool, error)
Constants ¶
View Source
const BasePath = "/api/tool_shed_repositories"
Variables ¶
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 Get(ctx context.Context, g *blend4go.GalaxyInstance, id blend4go.GalaxyID) (*Repository, error)
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 List(ctx context.Context, g *blend4go.GalaxyInstance) ([]*Repository, error)
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)
Click to show internal directories.
Click to hide internal directories.