roles

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

Documentation

Overview

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

Index

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 GetName added in v0.3.1

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

GetName get role by name

func List added in v0.3.1

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

Displays a collection (list) of roles. deleted - If true, show deleted roles

func NewRole added in v0.3.1

func NewRole(ctx context.Context, name string) (*Role, error)

func (*Role) GetBasePath added in v0.3.1

func (r *Role) GetBasePath() string

func (*Role) GetID added in v0.3.1

func (r *Role) GetID() blend4go.GalaxyID

func (*Role) SetGalaxyInstance added in v0.3.1

func (r *Role) SetGalaxyInstance(instance *blend4go.GalaxyInstance)

func (*Role) SetID added in v0.3.1

func (r *Role) SetID(id blend4go.GalaxyID)

func (*Role) Update added in v0.3.1

func (r *Role) Update(ctx context.Context) error

Jump to

Keyboard shortcuts

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