Documentation ¶
Index ¶
- type FileProvider
- type InMemoryFileProvider
- func (p *InMemoryFileProvider) Delete(file string) error
- func (p *InMemoryFileProvider) DeletedFiles() []string
- func (p *InMemoryFileProvider) Get(file string) ([]byte, error)
- func (p *InMemoryFileProvider) List() ([]string, error)
- func (p *InMemoryFileProvider) ModifiedFiles() []string
- func (p *InMemoryFileProvider) Put(file string, content []byte) error
- func (p *InMemoryFileProvider) Rename(from, to string) error
- func (p *InMemoryFileProvider) ToInput() (rules.Input, error)
- type RenameConflictError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileProvider ¶
type InMemoryFileProvider ¶
type InMemoryFileProvider struct {
// contains filtered or unexported fields
}
func NewInMemoryFileProvider ¶
func NewInMemoryFileProvider(files map[string][]byte) *InMemoryFileProvider
func NewInMemoryFileProviderFromFS ¶ added in v0.26.0
func NewInMemoryFileProviderFromFS(paths ...string) (*InMemoryFileProvider, error)
func (*InMemoryFileProvider) Delete ¶ added in v0.26.0
func (p *InMemoryFileProvider) Delete(file string) error
func (*InMemoryFileProvider) DeletedFiles ¶ added in v0.26.0
func (p *InMemoryFileProvider) DeletedFiles() []string
func (*InMemoryFileProvider) Get ¶ added in v0.26.0
func (p *InMemoryFileProvider) Get(file string) ([]byte, error)
func (*InMemoryFileProvider) List ¶ added in v0.26.0
func (p *InMemoryFileProvider) List() ([]string, error)
func (*InMemoryFileProvider) ModifiedFiles ¶ added in v0.26.0
func (p *InMemoryFileProvider) ModifiedFiles() []string
func (*InMemoryFileProvider) Put ¶ added in v0.26.0
func (p *InMemoryFileProvider) Put(file string, content []byte) error
func (*InMemoryFileProvider) Rename ¶ added in v0.26.0
func (p *InMemoryFileProvider) Rename(from, to string) error
type RenameConflictError ¶ added in v0.28.0
func (RenameConflictError) Error ¶ added in v0.28.0
func (e RenameConflictError) Error() string
Click to show internal directories.
Click to hide internal directories.