client

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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
}

func NewClient

func NewClient(apiClient pb.JamsyncAPIClient, projectId uint64, branchId uint64) *Client

func (*Client) BrowseProject

func (c *Client) BrowseProject(path string) (*pb.BrowseProjectResponse, error)

func (*Client) DiffLocalToRemote

func (c *Client) DiffLocalToRemote(ctx context.Context, fileMetadata *pb.FileMetadata) (*pb.FileMetadataDiff, error)

func (*Client) DiffRemoteToLocal

func (c *Client) DiffRemoteToLocal(ctx context.Context, fileMetadata *pb.FileMetadata) (*pb.FileMetadataDiff, error)

func (*Client) DownloadFile

func (c *Client) DownloadFile(ctx context.Context, filePath string, localReader io.ReadSeeker, localWriter io.Writer) error

func (*Client) DownloadFiles

func (c *Client) DownloadFiles(ctx context.Context, paths <-chan string, results chan<- error, numFiles int64)

func (*Client) ProjectConfig

func (c *Client) ProjectConfig() *pb.ProjectConfig

func (*Client) UpdateFile

func (c *Client) UpdateFile(ctx context.Context, path string, data []byte) error

func (*Client) UploadFile

func (c *Client) UploadFile(ctx context.Context, filePath string, sourceReader io.Reader) error

func (*Client) UploadFiles

func (c *Client) UploadFiles(ctx context.Context, paths <-chan string, results chan<- error, numFiles int64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL