groups

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

Documentation

Overview

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

Index

Constants

View Source
const BasePath = "/api/groups"

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Id      blend4go.GalaxyID `json:"id,omitempty"`
	Name    string            `json:"name,omitempty"`
	Users   userGroupAssociations
	Roles   roleGroupAssociations
	Deleted bool
	// contains filtered or unexported fields
}

func Get

func Get(ctx context.Context, g *blend4go.GalaxyInstance, id blend4go.GalaxyID, deleted bool) (*Group, error)

Get group

func GetName

func GetName(ctx context.Context, g *blend4go.GalaxyInstance, name string) (*Group, error)

GetName get group by name

func List

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

List groups deleted - If true, show deleted groups

func NewGroup

func NewGroup(ctx context.Context, name string) (*Group, error)

func (*Group) Delete

func (g *Group) Delete(ctx context.Context) error

func (*Group) GetBasePath

func (g *Group) GetBasePath() string

func (*Group) GetID

func (g *Group) GetID() blend4go.GalaxyID

func (*Group) SetGalaxyInstance

func (g *Group) SetGalaxyInstance(instance *blend4go.GalaxyInstance)

func (*Group) SetID

func (g *Group) SetID(id blend4go.GalaxyID)

func (*Group) Update

func (g *Group) Update(ctx context.Context) error

Jump to

Keyboard shortcuts

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