files

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CanvasYAMLPath  = "canvas.yaml"
	ConsoleYAMLPath = "console.yaml"
)

Variables

View Source
var ErrFileDeleted = errors.New("file deleted")
View Source
var ErrFileNotFound = errors.New("file not found")

Functions

func IsSpecFilePath

func IsSpecFilePath(path string) bool

func NormalizePath

func NormalizePath(path string) string

Types

type AppFileReader

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

func NewAppFileReader

func NewAppFileReader(db *gorm.DB, git git.Provider, canvas *models.Canvas, userID uuid.UUID) *AppFileReader

func (*AppFileReader) Read

func (r *AppFileReader) Read(ctx context.Context, path string) (reader io.ReadCloser, err error)

func (*AppFileReader) ReadFromStaging

func (r *AppFileReader) ReadFromStaging(ctx context.Context, path string) (reader io.ReadCloser, err error)

func (*AppFileReader) ReadFromVersion

func (r *AppFileReader) ReadFromVersion(ctx context.Context, path string, versionID uuid.UUID) (reader io.ReadCloser, err error)

Jump to

Keyboard shortcuts

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