Documentation ¶
Index ¶
- Variables
- type BackendLogger
- func (b BackendLogger) Delete(ctx context.Context, path string) error
- func (b BackendLogger) DeleteIf(ctx context.Context, path string, expected backend.Version) error
- func (b BackendLogger) GetMetadata(ctx context.Context, path string) (backend.Metadata, error)
- func (b BackendLogger) List(ctx context.Context, dirPath string) (backend.ListIter, error)
- func (b BackendLogger) Read(ctx context.Context, path string) (backend.ReadReply, error)
- func (b BackendLogger) ReadIfModified(ctx context.Context, path string, version int64) (backend.ReadReply, error)
- func (b BackendLogger) SetTagsIf(ctx context.Context, path string, expected backend.Version, t backend.Tags) (backend.Metadata, error)
- func (b BackendLogger) Write(ctx context.Context, path string, value []byte, t backend.Tags) (backend.Metadata, error)
- func (b BackendLogger) WriteIf(ctx context.Context, path string, value []byte, expected backend.Version, ...) (backend.Metadata, error)
- func (b BackendLogger) WriteIfNotExists(ctx context.Context, path string, value []byte, t backend.Tags) (backend.Metadata, error)
- type DelayBackend
- func (b *DelayBackend) Delete(ctx context.Context, path string) error
- func (b *DelayBackend) DeleteIf(ctx context.Context, path string, expected backend.Version) error
- func (b *DelayBackend) GetMetadata(ctx context.Context, path string) (backend.Metadata, error)
- func (b *DelayBackend) List(ctx context.Context, dirPath string) (backend.ListIter, error)
- func (b *DelayBackend) Read(ctx context.Context, path string) (backend.ReadReply, error)
- func (b *DelayBackend) ReadIfModified(ctx context.Context, path string, version int64) (backend.ReadReply, error)
- func (b *DelayBackend) SetTagsIf(ctx context.Context, path string, expected backend.Version, t backend.Tags) (backend.Metadata, error)
- func (b *DelayBackend) Write(ctx context.Context, path string, value []byte, t backend.Tags) (backend.Metadata, error)
- func (b *DelayBackend) WriteIf(ctx context.Context, path string, value []byte, expected backend.Version, ...) (backend.Metadata, error)
- func (b *DelayBackend) WriteIfNotExists(ctx context.Context, path string, value []byte, t backend.Tags) (backend.Metadata, error)
- type DelayOptions
- type Latency
Constants ¶
This section is empty.
Variables ¶
View Source
var GCSDelays = DelayOptions{ MetaRead: Latency{22 * time.Millisecond, 7 * time.Millisecond}, MetaWrite: Latency{31 * time.Millisecond, 8 * time.Millisecond}, ObjRead: Latency{57 * time.Millisecond, 7 * time.Millisecond}, ObjWrite: Latency{70 * time.Millisecond, 15 * time.Millisecond}, List: Latency{10 * time.Millisecond, 3 * time.Millisecond}, SameObjWritePs: 1, }
Functions ¶
This section is empty.
Types ¶
type BackendLogger ¶
type BackendLogger struct {
// contains filtered or unexported fields
}
func NewBackendLogger ¶
func (BackendLogger) GetMetadata ¶
func (BackendLogger) ReadIfModified ¶
type DelayBackend ¶
type DelayBackend struct {
// contains filtered or unexported fields
}
func NewDelayBackend ¶
func NewDelayBackend( inner backend.Backend, clock clockwork.Clock, opts DelayOptions, ) *DelayBackend
func (*DelayBackend) GetMetadata ¶
func (*DelayBackend) ReadIfModified ¶
type DelayOptions ¶
Click to show internal directories.
Click to hide internal directories.