histories

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: 3 Imported by: 0

Documentation

Overview

histories models represent and manipulate histories and their contents within a Galaxy instance Relevant api endpoints are: `/api/histories`, `/api/histories/{id}/contents/`

Index

Constants

View Source
const BasePath = "/api/histories"

Variables

This section is empty.

Functions

This section is empty.

Types

type History added in v0.1.7

type History struct {
	Id              blend4go.GalaxyID              `json:"id,omitempty"`
	Importable      bool                           `json:"importable,omitempty"`
	CreateTime      string                         `json:"create_time,omitempty"`
	ContentsUrl     string                         `json:"contents_url,omitempty"`
	Size            uint                           `json:"size,omitempty"`
	UserId          blend4go.GalaxyID              `json:"user_id,omitempty"`
	UsernameAndSlug string                         `json:"username_and_slug,omitempty"`
	Annotation      string                         `json:"annotation,omitempty"`
	StateDetails    map[string]uint                `json:"state_details,omitempty"`
	State           string                         `json:"state,omitempty"`
	Empty           bool                           `json:"empty,omitempty"`
	UpdateTime      string                         `json:"update_time,omitempty"`
	Tags            []string                       `json:"tags,omitempty"`
	Deleted         bool                           `json:"deleted,omitempty"`
	GenomeBuild     string                         `json:"genome_build,omitempty"`
	Slug            string                         `json:"slug,omitempty"`
	Name            string                         `json:"name,omitempty"`
	Url             string                         `json:"url,omitempty"`
	StateIds        map[string][]blend4go.GalaxyID `json:"state_ids,omitempty"`
	Published       bool                           `json:"published,omitempty"`
	ModelClass      string                         `json:"model_class,omitempty"`
	Purged          bool                           `json:"purged,omitempty"`
	// contains filtered or unexported fields
}

func Get added in v0.1.7

Get the history with id

func GetMostRecent added in v0.1.7

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

Get the most recently used history

func GetPublished added in v0.1.7

func GetPublished(ctx context.Context, g *blend4go.GalaxyInstance) ([]*History, error)

Get all histories that are published

func GetSharedWithMe added in v0.1.7

func GetSharedWithMe(ctx context.Context, g *blend4go.GalaxyInstance) ([]*History, error)

Get all histories that are shared with the current user

func List added in v0.1.7

func List(ctx context.Context, g *blend4go.GalaxyInstance) ([]*History, error)

List histories for the current user

func ListDeleted added in v0.1.7

func ListDeleted(ctx context.Context, g *blend4go.GalaxyInstance) ([]*History, error)

List deleted histories for the current user

func NewHistory added in v0.1.10

func NewHistory(ctx context.Context, g *blend4go.GalaxyInstance, name string) (*History, error)

Create a new history

func (*History) Delete added in v0.1.7

func (h *History) Delete(ctx context.Context, purge bool) error

Delete the history with the given id

func (*History) GetBasePath added in v0.1.7

func (h *History) GetBasePath() string

func (*History) GetID added in v0.1.7

func (h *History) GetID() blend4go.GalaxyID

func (*History) SetGalaxyInstance added in v0.1.7

func (h *History) SetGalaxyInstance(g *blend4go.GalaxyInstance)

func (*History) SetID added in v0.1.7

func (h *History) SetID(id blend4go.GalaxyID)

func (*History) Undelete added in v0.1.7

func (h *History) Undelete(ctx context.Context) error

Undelete history (that hasn’t been purged) with the given id

func (*History) Update added in v0.1.7

func (h *History) Update(ctx context.Context) error

Update the values for the history

type HistoryDatasetAssociation

type HistoryDatasetAssociation struct {
	Id          string `json:"id,omitempty"`
	Accessible  bool   `json:"accessible,omitempty"`
	TypeId      string `json:"type_id,omitempty"`
	FileName    string `json:"file_name,omitempty"`
	Resubmitted bool   `json:"resubmitted,omitempty"`
	CreateTime  string `json:"create_time,omitempty"`
	CreatingJob string `json:"creating_job,omitempty"`
	DatasetId   string `json:"dataset_id,omitempty"`
	FileSize    uint   `json:"file_size,omitempty"`
	FileExt     string `json:"file_ext,omitempty"`
	MiscInfo    string `json:"misc_info,omitempty"`
	HdaLdda     string `json:"hda_ldda,omitempty"`
	DownloadUrl string `json:"download_url,omitempty"`
	State       string `json:"state,omitempty"`
	//DisplayTypes         attr    `json:"display_types,omitempty"`
	//DisplayApps          attr    `json:"display_apps,omitempty"`
	MetadataDbkey string   `json:"metadata_dbkey,omitempty"`
	Type          string   `json:"type,omitempty"`
	MiscBlurb     string   `json:"misc_blurb,omitempty"`
	Peek          string   `json:"peek,omitempty"`
	UpdateTime    string   `json:"update_time,omitempty"`
	DataType      string   `json:"data_type,omitempty"`
	Tags          []string `json:"tags,omitempty"`
	Deleted       bool     `json:"deleted,omitempty"`
	HistoryId     string   `json:"history_id,omitempty"`
	//MetaFiles          attr    `json:"meta_files,omitempty"`
	GenomeBuild       string `json:"genome_build,omitempty"`
	MetadataSequences uint   `json:"metadata_sequences,omitempty"`
	Hid               uint   `json:"hid,omitempty"`
	ModelClass        string `json:"model_class,omitempty"`
	MetadataDataLines uint   `json:"metadata_data_lines,omitempty"`
	Annotation        string `json:"annotation,omitempty"`
	//Permissions        attr    `json:"permissions,omitempty"`
	HistoryContentType string `json:"history_content_type,omitempty"`
	Name               string `json:"name,omitempty"`
	Extension          string `json:"extension,omitempty"`
	Visible            bool   `json:"visible,omitempty"`
	Url                string `json:"url,omitempty"`
	Uuid               string `json:"uuid,omitempty"`
	//Visualizations     attr    `json:"visualizations,omitempty"`
	Rerunnable bool   `json:"rerunnable,omitempty"`
	Purged     bool   `json:"purged,omitempty"`
	ApiType    string `json:"api_type,omitempty"`
}

type HistoryDatasetCollectionAssociation

type HistoryDatasetCollectionAssociation struct {
	Id                    string        `json:"id,omitempty"`
	HistoryContentType    string        `json:"history_content_type,omitempty"`
	PopulatedStateMessage string        `json:"populated_state_message,omitempty"`
	Name                  string        `json:"name,omitempty"`
	Populated             bool          `json:"populated,omitempty"`
	Deleted               bool          `json:"deleted,omitempty"`
	Type                  string        `json:"type,omitempty"`
	HistoryId             string        `json:"history_id,omitempty"`
	Tags                  []string      `json:"tags,omitempty"`
	Visible               bool          `json:"visible,omitempty"`
	JobSourceId           string        `json:"job_source_id,omitempty"`
	JobSourceType         string        `json:"job_source_type,omitempty"`
	CollectionType        string        `json:"collection_type,omitempty"`
	Url                   string        `json:"url,omitempty"`
	ModelClass            string        `json:"model_class,omitempty"`
	Hid                   uint          `json:"hid,omitempty"`
	ElementCount          uint          `json:"element_count,omitempty"`
	PopulatedState        string        `json:"populated_state,omitempty"`
	Elements              []interface{} `json:"elements,omitempty"`
}

Jump to

Keyboard shortcuts

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