Documentation
¶
Index ¶
- Constants
- Variables
- func IsSpecFilePath(path string) bool
- func NormalizePath(path string) string
- type AppFileReader
- func (r *AppFileReader) Read(ctx context.Context, path string) (reader io.ReadCloser, err error)
- func (r *AppFileReader) ReadFromStaging(ctx context.Context, path string) (reader io.ReadCloser, err error)
- func (r *AppFileReader) ReadFromVersion(ctx context.Context, path string, versionID uuid.UUID) (reader io.ReadCloser, err error)
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 NormalizePath ¶
Types ¶
type AppFileReader ¶
type AppFileReader struct {
// contains filtered or unexported fields
}
func NewAppFileReader ¶
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)
Click to show internal directories.
Click to hide internal directories.