services

package
v0.0.0-...-c715d86 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleService

type ModuleService struct {
	Registry registry.Registry
}

func NewModuleService

func NewModuleService(r registry.Registry) *ModuleService

func (*ModuleService) Exists

func (s *ModuleService) Exists(rs app.RequestScope, namespace, name, provider, version string) (bool, error)

func (*ModuleService) Get

func (s *ModuleService) Get(rs app.RequestScope, namespace, name, provider, version string) (*models.Module, error)

func (*ModuleService) GetData

func (s *ModuleService) GetData(rs app.RequestScope, namespace, name, provider, version string) (io.Reader, error)

func (*ModuleService) Publish

func (s *ModuleService) Publish(rs app.RequestScope, namespace, name, provider, version string, data io.Reader) error

func (*ModuleService) Query

func (s *ModuleService) Query(rs app.RequestScope, namespace, name, provider string, verified bool, offset, limit int) ([]models.Module, int, error)

func (*ModuleService) QueryVersions

func (s *ModuleService) QueryVersions(rs app.RequestScope, namespace, name, provider string) ([]models.Module, error)

Jump to

Keyboard shortcuts

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