Documentation
¶
Overview ¶
Copyright (c) 2016-2020 Uber Technologies, Inc.
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 (c) 2016-2020 Uber Technologies, Inc.
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 ¶
- type Client
- func (c *Client) Download(namespace string, name string, dst io.Writer) error
- func (c *Client) List(prefix string, opts ...backend.ListOption) (*backend.ListResult, error)
- func (c *Client) Stat(namespace string, name string) (*core.BlobInfo, error)
- func (c *Client) Upload(namespace string, name string, src io.Reader) error
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements a backend.Client for shadow mode. See the README for full details on what shadow mode means.
func NewClient ¶
func NewClient(config Config, masterAuthConfig backend.AuthConfig, stats tally.Scope) (*Client, error)
NewClient creates a new shadow Client
func (*Client) Download ¶
Download gets the data from the backend and then writes it to the output writer.
func (*Client) List ¶
func (c *Client) List(prefix string, opts ...backend.ListOption) (*backend.ListResult, error)
List lists names with start with prefix.