store

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MainBranch = "master"

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

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

func NewFileSystem

func NewFileSystem(folderPath string) (*FileSystem, error)

func (*FileSystem) GetFileDescriptor

func (fs *FileSystem) GetFileDescriptor(filepath string) (*desc.FileDescriptor, error)

type GitRepo

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

func NewGitRepo

func NewGitRepo(url string, tagVersion string, rootGitFolderPath string, protosLocation string) (*GitRepo, error)

func (*GitRepo) GetFileDescriptor

func (repo *GitRepo) GetFileDescriptor(filepath string) (*desc.FileDescriptor, error)

Function that returns proto content given a filepath. filepath is the relative path from protosLocation specified in the constructor.

type Storer

type Storer interface {
	GetFileDescriptor(filepath string) (*desc.FileDescriptor, error)
}

Jump to

Keyboard shortcuts

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