models

package
v1.29.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 188

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReadOnlyError = errors.New("AssetPath is read-only")

Functions

This section is empty.

Types

type AssetPath

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

func NewAssetPath

func NewAssetPath(location string) *AssetPath

func (*AssetPath) Base

func (p *AssetPath) Base() string

func (*AssetPath) CreateFile

func (p *AssetPath) CreateFile(ctx context.Context, data io.ReadSeeker, acl vfs.ACL) error

func (*AssetPath) Join

func (p *AssetPath) Join(relativePath ...string) vfs.Path

func (*AssetPath) Path

func (p *AssetPath) Path() string

func (*AssetPath) ReadDir

func (p *AssetPath) ReadDir() ([]vfs.Path, error)

func (*AssetPath) ReadFile

func (p *AssetPath) ReadFile(ctx context.Context) ([]byte, error)

ReadFile implements Path::ReadFile

func (*AssetPath) ReadTree

func (p *AssetPath) ReadTree(ctx context.Context) ([]vfs.Path, error)

func (*AssetPath) Remove

func (p *AssetPath) Remove(ctx context.Context) error

func (*AssetPath) RemoveAll added in v1.28.0

func (p *AssetPath) RemoveAll(ctx context.Context) error

func (*AssetPath) RemoveAllVersions added in v1.16.3

func (p *AssetPath) RemoveAllVersions(ctx context.Context) error

func (*AssetPath) String

func (p *AssetPath) String() string

func (*AssetPath) WriteFile

func (p *AssetPath) WriteFile(ctx context.Context, data io.ReadSeeker, acl vfs.ACL) error

func (*AssetPath) WriteTo added in v1.10.0

func (p *AssetPath) WriteTo(out io.Writer) (int64, error)

WriteTo implements io.WriterTo

Jump to

Keyboard shortcuts

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