Documentation ¶
Overview ¶
Package client implements a simple client service talking to services running anywhere (GCP, InProcess, etc).
Index ¶
- func New(config upspin.Config) upspin.Client
- type Client
- func (c *Client) Create(name upspin.PathName) (upspin.File, error)
- func (c *Client) Delete(name upspin.PathName) error
- func (c *Client) DirServer(name upspin.PathName) (upspin.DirServer, error)
- func (c *Client) Get(name upspin.PathName) ([]byte, error)
- func (c *Client) Glob(pattern string) ([]*upspin.DirEntry, error)
- func (c *Client) Lookup(name upspin.PathName, followFinal bool) (*upspin.DirEntry, error)
- func (c *Client) MakeDirectory(name upspin.PathName) (*upspin.DirEntry, error)
- func (c *Client) Open(name upspin.PathName) (upspin.File, error)
- func (c *Client) Put(name upspin.PathName, data []byte) (*upspin.DirEntry, error)
- func (c *Client) PutDuplicate(oldName, newName upspin.PathName) (*upspin.DirEntry, error)
- func (c *Client) PutLink(oldName, linkName upspin.PathName) (*upspin.DirEntry, error)
- func (c *Client) Rename(oldName, newName upspin.PathName) (*upspin.DirEntry, error)
- func (c *Client) SetTime(name upspin.PathName, t upspin.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements upspin.Client.
func (*Client) MakeDirectory ¶
MakeDirectory implements upspin.Client.
func (*Client) PutDuplicate ¶
PutDuplicate implements upspin.Client. If one of the two files is later modified, the copy and the original will differ.
Directories ¶
Path | Synopsis |
---|---|
Package clientutil implements common utilities shared by clients and those who act as clients, such as a DirServer being a client of a StoreServer.
|
Package clientutil implements common utilities shared by clients and those who act as clients, such as a DirServer being a client of a StoreServer. |
Package file implements the File interface used in client.Open and client.Create.
|
Package file implements the File interface used in client.Open and client.Create. |
Click to show internal directories.
Click to hide internal directories.