Documentation ¶
Overview ¶
Copyright 2021 CodeNotary, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 CodeNotary, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 CodeNotary, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 CodeNotary, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 CodeNotary, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 CodeNotary, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- type Options
- func (opts *Options) Valid() bool
- func (opts *Options) WithParallelUploads(parallelUploads int) *Options
- func (opts *Options) WithRetryDelayExp(retryDelayExp float64) *Options
- func (opts *Options) WithRetryDelayJitter(retryDelayJitter float64) *Options
- func (opts *Options) WithRetryMaxDelay(retryMaxDelay time.Duration) *Options
- func (opts *Options) WithRetryMinDelay(retryMinDelay time.Duration) *Options
- type RemoteStorageAppendable
- func (r *RemoteStorageAppendable) Close() error
- func (r *RemoteStorageAppendable) OpenAppendable(options *singleapp.Options, appname string, activeChunk bool) (appendable.Appendable, error)
- func (r *RemoteStorageAppendable) OpenInitialAppendable(opts *multiapp.Options, singleAppOpts *singleapp.Options) (appendable.Appendable, int64, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrIllegalArguments = errors.New("illegal arguments") ErrMissingRemoteChunk = errors.New("missing data on the remote storage") ErrInvalidLocalStorage = errors.New("invalid local storage") ErrInvalidRemoteStorage = errors.New("invalid remote storage") ErrInvalidChunkState = errors.New("invalid chunk state") ErrChunkUploaded = errors.New("already uploaded chunk is not writable") ErrCompressionNotSupported = errors.New("compression is currently not supported") ErrCantDownload = errors.New("can not download chunk") ErrCorruptedMetadata = errors.New("corrupted metadata in a remote chunk") )
Functions ¶
This section is empty.
Types ¶
type Options ¶
func DefaultOptions ¶
func DefaultOptions() *Options
func (*Options) WithParallelUploads ¶
func (*Options) WithRetryDelayExp ¶
func (*Options) WithRetryDelayJitter ¶
func (*Options) WithRetryMaxDelay ¶
type RemoteStorageAppendable ¶
type RemoteStorageAppendable struct { *multiapp.MultiFileAppendable // contains filtered or unexported fields }
func Open ¶
func Open(path string, remotePath string, storage remotestorage.Storage, opts *Options) (*RemoteStorageAppendable, error)
func (*RemoteStorageAppendable) Close ¶
func (r *RemoteStorageAppendable) Close() error
func (*RemoteStorageAppendable) OpenAppendable ¶
func (r *RemoteStorageAppendable) OpenAppendable(options *singleapp.Options, appname string, activeChunk bool) (appendable.Appendable, error)
func (*RemoteStorageAppendable) OpenInitialAppendable ¶
func (r *RemoteStorageAppendable) OpenInitialAppendable(opts *multiapp.Options, singleAppOpts *singleapp.Options) (appendable.Appendable, int64, error)