storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackUp

func BackUp(repoPath, backUpPath string) error

func Restore

func Restore(repoPath, backUpPath string) error

Types

type Repo

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

func NewRepository

func NewRepository(path string) *Repo

func (*Repo) Path

func (r *Repo) Path() string

type Storage

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

func NewStorage

func NewStorage() (*Storage, error)

func (*Storage) CreateRepository

func (s *Storage) CreateRepository(ctx *gin.Context, userName, repoName string) (*Repo, error)

func (*Storage) GetRepository

func (s *Storage) GetRepository(userName, repoName string) (*Repo, error)

func (*Storage) Path

func (s *Storage) Path() string

func (*Storage) RemoveRepository

func (s *Storage) RemoveRepository(ctx *gin.Context, userName, repoName string) error

Jump to

Keyboard shortcuts

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