Documentation ¶
Index ¶
- type Filesystem
- func (l *Filesystem) Info(_ context.Context, _ string) string
- func (l *Filesystem) Initialized(_ context.Context, _ string) (bool, error)
- func (l *Filesystem) Read(_ context.Context, _ string, state *crafter.VersionedCraftingState) error
- func (l *Filesystem) Reset(_ context.Context, _ string) error
- func (l *Filesystem) Write(_ context.Context, _ string, state *crafter.VersionedCraftingState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
func New ¶
func New(statePath string) (*Filesystem, error)
Filesystem crafter does not require passing a stateID as it only supports a single state file This also allow us to not to require users to provide a stateID when using the filesystem crafter and keep the current UX
func (*Filesystem) Initialized ¶
func (*Filesystem) Read ¶
func (l *Filesystem) Read(_ context.Context, _ string, state *crafter.VersionedCraftingState) error
func (*Filesystem) Write ¶
func (l *Filesystem) Write(_ context.Context, _ string, state *crafter.VersionedCraftingState) error
Click to show internal directories.
Click to hide internal directories.