Documentation ¶
Overview ¶
roles models represent and manipulate roles within a Galaxy instance Relevant api endpoints are: `/api/roles`
Index ¶
- Constants
- type Role
- func Get(ctx context.Context, g *blend4go.GalaxyInstance, id blend4go.GalaxyID, ...) (*Role, error)
- func GetName(ctx context.Context, g *blend4go.GalaxyInstance, name string) (*Role, error)
- func List(ctx context.Context, g *blend4go.GalaxyInstance, deleted bool) ([]*Role, error)
- func NewRole(ctx context.Context, name string) (*Role, error)
Constants ¶
View Source
const BasePath = "/api/roles"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Role ¶
type Role struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Type string `json:"type,omitempty"` Deleted bool `json:"-"` // contains filtered or unexported fields }
func Get ¶ added in v0.3.1
func Get(ctx context.Context, g *blend4go.GalaxyInstance, id blend4go.GalaxyID, deleted bool) (*Role, error)
Displays information about a role.
func List ¶ added in v0.3.1
Displays a collection (list) of roles. deleted - If true, show deleted roles
func (*Role) GetBasePath ¶ added in v0.3.1
func (*Role) SetGalaxyInstance ¶ added in v0.3.1
func (r *Role) SetGalaxyInstance(instance *blend4go.GalaxyInstance)
Click to show internal directories.
Click to hide internal directories.