service

package
v0.0.0-...-80e21b9 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type PathService

type PathService struct {
	// contains filtered or unexported fields
}

func NewPathService

func NewPathService(conf *config.App) *PathService

func (*PathService) NormalizePath

func (s *PathService) NormalizePath(path string) string

func (*PathService) ParsePath

func (s *PathService) ParsePath(c *fiber.Ctx) (string, error)

func (*PathService) ParsePathParts

func (s *PathService) ParsePathParts(c *fiber.Ctx) (string, string, string, error)

type RepoService

type RepoService struct {
	// contains filtered or unexported fields
}

func NewRepoService

func NewRepoService(conf *config.App, storage *Storage, ps *PathService) *RepoService

func (*RepoService) GetRepositories

func (s *RepoService) GetRepositories() map[string][]*entity.Artifact

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage() *Storage

func (*Storage) File

func (s *Storage) File(path string) string

func (*Storage) FileExists

func (s *Storage) FileExists(path string) bool

func (*Storage) GetRoot

func (s *Storage) GetRoot() string

func (*Storage) WriteFromRequest

func (s *Storage) WriteFromRequest(c *fiber.Ctx, path string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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