Documentation

Overview

    Package client implements a simple client service talking to services running anywhere (GCP, InProcess, etc).

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func New

    func New(config upspin.Config) upspin.Client

      New creates a Client that uses the given configuration to access the various Upspin servers.

      Types

      type Client

      type Client struct {
      	// contains filtered or unexported fields
      }

        Client implements upspin.Client.

        func (*Client) Create

        func (c *Client) Create(name upspin.PathName) (upspin.File, error)

          Create implements upspin.Client.

          func (*Client) Delete

          func (c *Client) Delete(name upspin.PathName) error

            Delete implements upspin.Client.

            func (*Client) DirServer

            func (c *Client) DirServer(name upspin.PathName) (upspin.DirServer, error)

              DirServer implements upspin.Client.

              func (*Client) Get

              func (c *Client) Get(name upspin.PathName) ([]byte, error)

                Get implements upspin.Client.

                func (*Client) Glob

                func (c *Client) Glob(pattern string) ([]*upspin.DirEntry, error)

                  Glob implements upspin.Client.

                  func (*Client) Lookup

                  func (c *Client) Lookup(name upspin.PathName, followFinal bool) (*upspin.DirEntry, error)

                    Lookup implements upspin.Client.

                    func (*Client) MakeDirectory

                    func (c *Client) MakeDirectory(name upspin.PathName) (*upspin.DirEntry, error)

                      MakeDirectory implements upspin.Client.

                      func (*Client) Open

                      func (c *Client) Open(name upspin.PathName) (upspin.File, error)

                        Open implements upspin.Client.

                        func (*Client) Put

                        func (c *Client) Put(name upspin.PathName, data []byte) (*upspin.DirEntry, error)

                          Put implements upspin.Client.

                          func (*Client) PutDuplicate

                          func (c *Client) PutDuplicate(oldName, newName upspin.PathName) (*upspin.DirEntry, error)

                            PutDuplicate implements upspin.Client. If one of the two files is later modified, the copy and the original will differ.

                            func (c *Client) PutLink(oldName, linkName upspin.PathName) (*upspin.DirEntry, error)

                              PutLink implements upspin.Client.

                              func (*Client) PutSequenced

                              func (c *Client) PutSequenced(name upspin.PathName, seq int64, data []byte) (*upspin.DirEntry, error)

                                PutSequenced implements upspin.Client.

                                func (*Client) Rename

                                func (c *Client) Rename(oldName, newName upspin.PathName) (*upspin.DirEntry, error)

                                  Rename implements upspin.Client.

                                  func (*Client) SetTime

                                  func (c *Client) SetTime(name upspin.PathName, t upspin.Time) error

                                    SetTime implements upspin.Client.

                                    Source Files

                                    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.