Documentation ¶
Index ¶
- type ArtifactService
- func (s ArtifactService) Create(artifact interface{}) (*models.Artifact, error)
- func (s ArtifactService) Delete(id string) error
- func (s ArtifactService) Get(id string) (*models.Artifact, error)
- func (s ArtifactService) List() ([]models.Artifact, error)
- func (s ArtifactService) Update(id string, artifact interface{}) (*models.Artifact, error)
- type AuthService
- type ItemService
- func (s ItemService) Create(item interface{}) (*models.Item, error)
- func (s ItemService) Delete(id string) error
- func (s ItemService) Get(id string) (*models.Item, error)
- func (s ItemService) List() ([]models.Item, error)
- func (s ItemService) Update(id string, item interface{}) (*models.Item, error)
- type LibraryService
- func (s LibraryService) Create(library interface{}) (*models.Library, error)
- func (s LibraryService) Delete(id string) error
- func (s LibraryService) Get(id string) (*models.Library, error)
- func (s LibraryService) List() ([]models.Library, error)
- func (s LibraryService) Update(id string, library interface{}) (*models.Library, error)
- type OrganizationService
- func (s OrganizationService) Create(organization interface{}) (*models.Organization, error)
- func (s OrganizationService) Delete(id string) error
- func (s OrganizationService) Get(id string) (*models.Organization, error)
- func (s OrganizationService) List() ([]models.Organization, error)
- func (s OrganizationService) Update(id string, organization interface{}) (*models.Organization, error)
- type RoleService
- func (s RoleService) Create(role interface{}) (*models.Role, error)
- func (s RoleService) Delete(id string) error
- func (s RoleService) Get(id string) (*models.Role, error)
- func (s RoleService) List() ([]models.Role, error)
- func (s RoleService) Update(id string, role interface{}) (*models.Role, error)
- type UserService
- func (s UserService) Create(user interface{}) (*models.User, error)
- func (s UserService) Delete(id string) error
- func (s UserService) Get(id string) (*models.User, error)
- func (s UserService) List() ([]models.User, error)
- func (s UserService) Update(id string, user interface{}) (*models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactService ¶
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.
type AuthService ¶
AuthService encapulates high-level library logic.
func NewAuthService ¶
func NewAuthService(s *r.Session) *AuthService
NewAuthService instantiates a new library service.
type ItemService ¶
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.
type LibraryService ¶
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.
type OrganizationService ¶
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 ¶
func (s OrganizationService) Get(id string) (*models.Organization, error)
Get will return a organization resource with the given id.
func (OrganizationService) List ¶
func (s OrganizationService) List() ([]models.Organization, error)
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 ¶
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.
type UserService ¶
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.