services

package
v0.0.0-...-c8feaad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactService

type ArtifactService struct {
	Session *r.Session
	Table   r.Term
}

ArtifactService encapulates high-level artifact logic.

func NewArtifactService

func NewArtifactService(s *r.Session) *ArtifactService

NewArtifactService instantiates a new artifact service.

func (ArtifactService) Create

func (s ArtifactService) Create(artifact interface{}) (*models.Artifact, error)

Create will create a new artifact resource.

func (ArtifactService) Delete

func (s ArtifactService) Delete(id string) error

Delete will remove the artifact with the given id.

func (ArtifactService) Get

func (s ArtifactService) Get(id string) (*models.Artifact, error)

Get will return a artifact resource with the given id.

func (ArtifactService) List

func (s ArtifactService) List() ([]models.Artifact, error)

List will retrieve the all artifact resources.

func (ArtifactService) Update

func (s ArtifactService) Update(id string, artifact interface{}) (*models.Artifact, error)

Update will update the artifact resource with the given

type AuthService

type AuthService struct {
	Session *r.Session
}

AuthService encapulates high-level library logic.

func NewAuthService

func NewAuthService(s *r.Session) *AuthService

NewAuthService instantiates a new library service.

type ItemService

type ItemService struct {
	Session *r.Session
	Table   r.Term
}

ItemService encapulates high-level item logic.

func NewItemService

func NewItemService(s *r.Session) *ItemService

NewItemService instantiates a new item service.

func (ItemService) Create

func (s ItemService) Create(item interface{}) (*models.Item, error)

Create will create a new item resource.

func (ItemService) Delete

func (s ItemService) Delete(id string) error

Delete will remove the item with the given id.

func (ItemService) Get

func (s ItemService) Get(id string) (*models.Item, error)

Get will return a item resource with the given id.

func (ItemService) List

func (s ItemService) List() ([]models.Item, error)

List will retrieve the all item resources.

func (ItemService) Update

func (s ItemService) Update(id string, item interface{}) (*models.Item, error)

Update will update the item resource with the given id.

type LibraryService

type LibraryService struct {
	Session *r.Session
	Table   r.Term
}

LibraryService encapulates high-level library logic.

func NewLibraryService

func NewLibraryService(s *r.Session) *LibraryService

NewLibraryService instantiates a new library service.

func (LibraryService) Create

func (s LibraryService) Create(library interface{}) (*models.Library, error)

Create will create a new library resource.

func (LibraryService) Delete

func (s LibraryService) Delete(id string) error

Delete will remove the library with the given id.

func (LibraryService) Get

func (s LibraryService) Get(id string) (*models.Library, error)

Get will return a library resource with the given id.

func (LibraryService) List

func (s LibraryService) List() ([]models.Library, error)

List will retrieve the all library resources.

func (LibraryService) Update

func (s LibraryService) Update(id string, library interface{}) (*models.Library, error)

Update will update the library resource with the given id.

type OrganizationService

type OrganizationService struct {
	Session *r.Session
	Table   r.Term
}

OrganizationService encapulates high-level organization logic.

func NewOrganizationService

func NewOrganizationService(s *r.Session) *OrganizationService

NewOrganizationService instantiates a new organization service.

func (OrganizationService) Create

func (s OrganizationService) Create(organization interface{}) (*models.Organization, error)

Create will create a new organization resource.

func (OrganizationService) Delete

func (s OrganizationService) Delete(id string) error

Delete will remove the organization with the given id.

func (OrganizationService) Get

Get will return a organization resource with the given id.

func (OrganizationService) List

List will retrieve the all organization resources.

func (OrganizationService) Update

func (s OrganizationService) Update(id string, organization interface{}) (*models.Organization, error)

Update will update the organization resource with the given id.

type RoleService

type RoleService struct {
	Session *r.Session
	Table   r.Term
}

RoleService encapulates high-level role logic.

func NewRoleService

func NewRoleService(s *r.Session) *RoleService

NewRoleService instantiates a new role service.

func (RoleService) Create

func (s RoleService) Create(role interface{}) (*models.Role, error)

Create will create a new role resource.

func (RoleService) Delete

func (s RoleService) Delete(id string) error

Delete will remove the role with the given id.

func (RoleService) Get

func (s RoleService) Get(id string) (*models.Role, error)

Get will return a role resource with the given id.

func (RoleService) List

func (s RoleService) List() ([]models.Role, error)

List will retrieve the all role resources.

func (RoleService) Update

func (s RoleService) Update(id string, role interface{}) (*models.Role, error)

Update will update the role resource with the given id.

type UserService

type UserService struct {
	Session *r.Session
	Table   r.Term
}

UserService encapulates high-level user logic.

func NewUserService

func NewUserService(s *r.Session) *UserService

NewUserService instantiates a new user service.

func (UserService) Create

func (s UserService) Create(user interface{}) (*models.User, error)

Create will create a new user resource.

func (UserService) Delete

func (s UserService) Delete(id string) error

Delete will remove the user with the given id.

func (UserService) Get

func (s UserService) Get(id string) (*models.User, error)

Get will return a user resource with the given id.

func (UserService) List

func (s UserService) List() ([]models.User, error)

List will retrieve the all user resources.

func (UserService) Update

func (s UserService) Update(id string, user interface{}) (*models.User, error)

Update will update the user resource with the given id.

Jump to

Keyboard shortcuts

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