Documentation
¶
Index ¶
- type Builtin
- func (s *Builtin) Close() error
- func (s *Builtin) CreateVolume(name string, spec *apis.VolumeSpec) error
- func (s *Builtin) DeleteVolume(name string) error
- func (s *Builtin) DeleteVolumeMetadata(name string) error
- func (s *Builtin) FetchVolumeMetadata(name string) (*apis.VolumeMetadata, error)
- func (s *Builtin) ListVolumeMetadata() (map[string]*apis.VolumeMetadata, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builtin ¶
type Builtin struct {
// contains filtered or unexported fields
}
func NewBuiltin ¶
New creates a new instance of the Storage struct with the provided logger and path.
func (*Builtin) Close ¶
Close releases any resources held by the DB instance, such as the file lock. It should be called when the DB instance is no longer needed to ensure proper cleanup.
func (*Builtin) CreateVolume ¶
func (s *Builtin) CreateVolume(name string, spec *apis.VolumeSpec) error
CreateVolume creates a volume entry
func (*Builtin) DeleteVolume ¶
DeleteVolume deletes the volume and its metadata for the specified volume name
func (*Builtin) DeleteVolumeMetadata ¶
DeleteVolumeMetadata deletes the volume metadata for the specified volume name
func (*Builtin) FetchVolumeMetadata ¶
func (s *Builtin) FetchVolumeMetadata(name string) (*apis.VolumeMetadata, error)
FetchVolumeMetadata retrieves the volume metadata for the specified volume name
func (*Builtin) ListVolumeMetadata ¶
func (s *Builtin) ListVolumeMetadata() (map[string]*apis.VolumeMetadata, error)
ListVolumeMetadataMap retrieves a map of all volume metadata entries, where the keys are the volume names and the values are the corresponding volume metadata.