Versions in this module Expand all Collapse all v0 v0.0.2 Feb 13, 2020 v0.0.1 Feb 13, 2020 Changes in this version + type Auth struct + Scope string + Token string + type Client struct + func NewClient(target string, creds credentials.TransportCredentials) (*Client, error) + func (c *Client) AddProject(ctx context.Context, name string, auth Auth) (*pb.GetProjectReply, error) + func (c *Client) AddTeam(ctx context.Context, name string, auth Auth) (*pb.AddTeamReply, error) + func (c *Client) AddToken(ctx context.Context, project string, auth Auth) (*pb.AddTokenReply, error) + func (c *Client) Close() error + func (c *Client) GetProject(ctx context.Context, name string, auth Auth) (*pb.GetProjectReply, error) + func (c *Client) GetTeam(ctx context.Context, teamID string, auth Auth) (*pb.GetTeamReply, error) + func (c *Client) InviteToTeam(ctx context.Context, teamID, email string, auth Auth) (*pb.InviteToTeamReply, error) + func (c *Client) LeaveTeam(ctx context.Context, teamID string, auth Auth) error + func (c *Client) ListBucketPath(ctx context.Context, project, pth string, auth Auth) (*pb.ListBucketPathReply, error) + func (c *Client) ListProjects(ctx context.Context, auth Auth) (*pb.ListProjectsReply, error) + func (c *Client) ListTeams(ctx context.Context, auth Auth) (*pb.ListTeamsReply, error) + func (c *Client) ListTokens(ctx context.Context, project string, auth Auth) (*pb.ListTokensReply, error) + func (c *Client) Login(ctx context.Context, email string) (*pb.LoginReply, error) + func (c *Client) Logout(ctx context.Context, auth Auth) error + func (c *Client) PullBucketPath(ctx context.Context, bucketPath string, writer io.Writer, auth Auth, ...) error + func (c *Client) PushBucketPath(ctx context.Context, project, bucketPath string, reader io.Reader, auth Auth, ...) (result path.Resolved, root path.Path, err error) + func (c *Client) RemoveBucketPath(ctx context.Context, pth string, auth Auth) error + func (c *Client) RemoveProject(ctx context.Context, name string, auth Auth) error + func (c *Client) RemoveTeam(ctx context.Context, teamID string, auth Auth) error + func (c *Client) RemoveToken(ctx context.Context, tokenID string, auth Auth) error + func (c *Client) Switch(ctx context.Context, auth Auth) error + func (c *Client) Whoami(ctx context.Context, auth Auth) (*pb.WhoamiReply, error) + type PullBucketPathOption func(*PullBucketPathOptions) + func WithPullProgress(ch chan<- int64) PullBucketPathOption + type PullBucketPathOptions struct + Progress chan<- int64 + type PushBucketPathOption func(*PushBucketPathOptions) + func WithPushProgress(ch chan<- int64) PushBucketPathOption + type PushBucketPathOptions struct + Progress chan<- int64