client

package
v0.0.0-...-e1ff556 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMDSClient

func NewMDSClient(port int) metadata.MetadataServiceClient

Types

type Client

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

func New

func New(mdsPort int, pefetchThreshold int) *Client

func (*Client) ClearCache

func (c *Client) ClearCache()

func (*Client) CreateFile

func (c *Client) CreateFile(name string, data []byte) (int, error)

func (*Client) CreateFileWithStream

func (c *Client) CreateFileWithStream(name string, data []byte) (int, error)

func (*Client) DeleteAllData

func (c *Client) DeleteAllData()

func (*Client) GetFile

func (c *Client) GetFile(name string) ([]byte, error)

func (*Client) GetFileFromPort

func (c *Client) GetFileFromPort(port int32, name string) ([]byte, error)

func (*Client) GetFileFromPortWithStream

func (c *Client) GetFileFromPortWithStream(port int32, name string) ([]byte, error)

func (*Client) GetFileWithStream

func (c *Client) GetFileWithStream(name string) ([]byte, error)

func (*Client) GrepOnFileServer

func (c *Client) GrepOnFileServer(fileName string, word string, port int32) (int, error)

func (*Client) MkDir

func (c *Client) MkDir(name string) error

func (*Client) OpenDir

func (c *Client) OpenDir(name string) (string, error)

open a directory

func (*Client) ReadDir

func (c *Client) ReadDir(name string, index int, useCache bool) (*metadata.FileInfo, error)

type ClientCache

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

this client cache will the used for caching metadata as part of the metadata prefetching optimization

Jump to

Keyboard shortcuts

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