client

package
v2.0.0-...-07333c2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 13 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(serverAddress string, serverCertificate string, clientCertificate string, clientKey string) *Client

func (*Client) Attr

func (c *Client) Attr(name string) (starlark.Value, error)

Attr implements starlark.HasAttrs

func (*Client) AttrNames

func (*Client) AttrNames() []string

func (*Client) Close

func (c *Client) Close() error

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) Freeze

func (*Client) Freeze()

func (*Client) GetWorkers

func (c *Client) GetWorkers() ([]string, error)

func (*Client) Hash

func (*Client) Hash() (uint32, error)

func (*Client) Ping

func (c *Client) Ping(client *rpc2.Client, req proto.PingReq, resp *proto.PingResp) error

Ping implements proto.CommonService

func (*Client) Remote

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

func (*Client) String

func (*Client) String() string

func (*Client) Truth

func (*Client) Truth() starlark.Bool

func (*Client) Type

func (*Client) Type() string

type Remote

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

func (*Remote) Attr

func (r *Remote) Attr(name string) (starlark.Value, error)

func (*Remote) AttrNames

func (*Remote) AttrNames() []string

func (*Remote) Freeze

func (*Remote) Freeze()

func (*Remote) GetInfo

func (r *Remote) GetInfo() (*proto.GetInfoResp, error)

func (*Remote) Hash

func (*Remote) Hash() (uint32, error)

func (*Remote) Ping

func (r *Remote) Ping() (string, error)

func (*Remote) ReadFile

func (r *Remote) ReadFile(filename string) ([]byte, error)

func (*Remote) RunScript

func (r *Remote) RunScript(script string) ([]byte, error)

func (*Remote) String

func (*Remote) String() string

func (*Remote) Truth

func (*Remote) Truth() starlark.Bool

func (*Remote) Type

func (*Remote) Type() string

func (*Remote) WriteFile

func (r *Remote) WriteFile(filename string, content []byte) error

Jump to

Keyboard shortcuts

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