pilot

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	pbpilot.PilotServiceClient
}

func NewClient

func NewClient() (*Client, error)

func (*Client) HandleSubtaskWithTimeout added in v0.4.0

func (c *Client) HandleSubtaskWithTimeout(ctx context.Context, in *pbtypes.SubTaskMessage, opts ...grpc.CallOption) (*pbtypes.Empty, error)

func (*Client) PingDroneWithTimeout added in v0.4.0

func (c *Client) PingDroneWithTimeout(ctx context.Context, in *pbtypes.DroneEndpoint, opts ...grpc.CallOption) (*pbtypes.Empty, error)

func (*Client) PingFrontgateWithTimeout added in v0.4.0

func (c *Client) PingFrontgateWithTimeout(ctx context.Context, in *pbtypes.FrontgateId, opts ...grpc.CallOption) (*pbtypes.Empty, error)

func (*Client) PingMetadataBackendWithTimeout added in v0.4.0

func (c *Client) PingMetadataBackendWithTimeout(ctx context.Context, in *pbtypes.FrontgateId, opts ...grpc.CallOption) (*pbtypes.Empty, error)

func (*Client) RunCommandOnDroneWithTimeout added in v0.4.0

func (c *Client) RunCommandOnDroneWithTimeout(ctx context.Context, in *pbtypes.RunCommandOnDroneRequest, opts ...grpc.CallOption) (*pbtypes.String, error)

func (*Client) RunCommandOnFrontgateNodeWithTimeout added in v0.4.0

func (c *Client) RunCommandOnFrontgateNodeWithTimeout(ctx context.Context, in *pbtypes.RunCommandOnFrontgateRequest, opts ...grpc.CallOption) (*pbtypes.String, error)

func (*Client) SetDroneConfigWithTimeout added in v0.4.0

func (c *Client) SetDroneConfigWithTimeout(ctx context.Context, in *pbtypes.SetDroneConfigRequest, opts ...grpc.CallOption) (*pbtypes.Empty, error)

func (*Client) SetFrontgateConfigWithTimeout added in v0.4.0

func (c *Client) SetFrontgateConfigWithTimeout(ctx context.Context, in *pbtypes.FrontgateConfig, opts ...grpc.CallOption) (*pbtypes.Empty, error)

func (*Client) WaitSubtask

func (c *Client) WaitSubtask(ctx context.Context, taskId string, timeout time.Duration, waitInterval time.Duration) error

type TLSClient added in v0.2.1

type TLSClient struct {
	pbpilot.PilotServiceForFrontgateClient
}

func NewTLSClient added in v0.2.1

func NewTLSClient(tlsConfig *tls.Config) (*TLSClient, error)

Jump to

Keyboard shortcuts

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