Documentation
¶
Index ¶
- type State
- func (s *State) GetMetadata(ctx context.Context, path string) (coreobjectstore.Metadata, error)
- func (s *State) GetMetadataBySHA256(ctx context.Context, sha256 string) (coreobjectstore.Metadata, error)
- func (s *State) GetMetadataBySHA256Prefix(ctx context.Context, sha256 string) (coreobjectstore.Metadata, error)
- func (s *State) InitialWatchStatement() (string, string)
- func (s *State) ListMetadata(ctx context.Context) ([]coreobjectstore.Metadata, error)
- func (s *State) PutMetadata(ctx context.Context, metadata coreobjectstore.Metadata) (coreobjectstore.UUID, error)
- func (s *State) RemoveMetadata(ctx context.Context, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
State implements the domain objectstore state.
func NewState ¶
func NewState(factory coredatabase.TxnRunnerFactory) *State
NewState returns a new State instance.
func (*State) GetMetadata ¶
GetMetadata returns the persistence metadata for the specified path.
func (*State) GetMetadataBySHA256 ¶
func (s *State) GetMetadataBySHA256(ctx context.Context, sha256 string) (coreobjectstore.Metadata, error)
GetMetadataBySHA256 returns the persistence metadata for the object with SHA256 starting with the provided prefix.
func (*State) GetMetadataBySHA256Prefix ¶
func (s *State) GetMetadataBySHA256Prefix(ctx context.Context, sha256 string) (coreobjectstore.Metadata, error)
GetMetadataBySHA256Prefix returns the persistence metadata for the object with SHA256 starting with the provided prefix.
func (*State) InitialWatchStatement ¶
InitialWatchStatement returns the initial watch statement for the persistence path.
func (*State) ListMetadata ¶
ListMetadata returns the persistence metadata.
func (*State) PutMetadata ¶
func (s *State) PutMetadata(ctx context.Context, metadata coreobjectstore.Metadata) (coreobjectstore.UUID, error)
PutMetadata adds a new specified path for the persistence metadata.
Click to show internal directories.
Click to hide internal directories.