Documentation ¶
Overview ¶
libraries models represent and manipulate libraries within a Galaxy instance Relevant api endpoints are: `/api/libraries`
Index ¶
- Constants
- type Library
- func (l *Library) Contents(ctx context.Context) ([]*LibraryItem, error)
- func (l *Library) Delete(ctx context.Context) error
- func (l *Library) GetBasePath() string
- func (l *Library) GetID() blend4go.GalaxyID
- func (l *Library) Permissions(ctx context.Context) (*LibraryPermissions, error)
- func (l *Library) SetGalaxyInstance(g *blend4go.GalaxyInstance)
- func (l *Library) SetID(id blend4go.GalaxyID)
- func (l *Library) SetPermissions(ctx context.Context, permissions *LibraryPermissions) error
- func (l *Library) Undelete(ctx context.Context) error
- func (l *Library) Update(ctx context.Context) error
- type LibraryItem
- type LibraryPermissions
Constants ¶
View Source
const BasePath = "/api/libraries"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Library ¶
type Library struct { Id blend4go.GalaxyID `json:"id,omitempty"` Deleted bool `json:"deleted,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Synopsis string `json:"synopsis,omitempty"` RootFolderId blend4go.GalaxyID `json:"root_folder_id,omitempty"` CreateTime string `json:"create_time,omitempty"` Public bool `json:"public,omitempty"` CreateTimePretty string `json:"create_time_pretty,omitempty"` CanUserAdd bool `json:"can_user_add,omitempty"` CanUserModify bool `json:"can_user_modify,omitempty"` CanUserManage bool `json:"can_user_manage,omitempty"` ModelClass string `json:"model_class,omitempty"` // contains filtered or unexported fields }
func Get ¶
func Get(ctx context.Context, g *blend4go.GalaxyInstance, id blend4go.GalaxyID, deleted bool) (*Library, error)
returns detailed information about a library
func NewLibrary ¶
func NewLibrary(ctx context.Context, g *blend4go.GalaxyInstance, name, description, synopsis string) (*Library, error)
Creates a new library.
func (*Library) Contents ¶
func (l *Library) Contents(ctx context.Context) ([]*LibraryItem, error)
Return a list of library files and folders.
func (*Library) GetBasePath ¶
func (*Library) Permissions ¶
func (l *Library) Permissions(ctx context.Context) (*LibraryPermissions, error)
Load all permissions for the given library id and return it.
func (*Library) SetGalaxyInstance ¶
func (l *Library) SetGalaxyInstance(g *blend4go.GalaxyInstance)
func (*Library) SetPermissions ¶
func (l *Library) SetPermissions(ctx context.Context, permissions *LibraryPermissions) error
Set permissions of the given library to the given role ids.
type LibraryItem ¶
Click to show internal directories.
Click to hide internal directories.