avcli

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 5

README

av-cli

Linux Installation:
  1. Download the binary from the Releases section.
  2. Give the file executable permissions and rename it to "av".
  3. Move the file to somewhere in your path.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetID added in v1.1.0

func NetID(ctx context.Context) string

TODO don't use a string

func NewSSHClient

func NewSSHClient(address string) (*ssh.Client, error)

NewSSHClient .

Types

type Auth

type Auth struct {
	Token string
	User  string
}

func (Auth) GetRequestMetadata

func (a Auth) GetRequestMetadata(ctx context.Context, in ...string) (map[string]string, error)

func (Auth) RequireTransportSecurity

func (Auth) RequireTransportSecurity() bool

type Client

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

func NewClient

func NewClient(addr string, a Auth, opts ...grpc.DialOption) (*Client, error)

func (*Client) CloseMonitoringIssue

func (c *Client) CloseMonitoringIssue(ctx context.Context, in *ID, opts ...grpc.CallOption) (*empty.Empty, error)

func (*Client) CopyRoom added in v1.1.0

func (c *Client) CopyRoom(ctx context.Context, in *CopyRoomRequest, opts ...grpc.CallOption) (*empty.Empty, error)

func (*Client) FixTime

func (c *Client) FixTime(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_FixTimeClient, error)

func (*Client) Float

func (c *Client) Float(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_FloatClient, error)

func (*Client) RemoveDeviceFromMonitoring added in v1.1.0

func (c *Client) RemoveDeviceFromMonitoring(ctx context.Context, in *ID, opts ...grpc.CallOption) (*empty.Empty, error)

func (*Client) Screenshot

func (c *Client) Screenshot(ctx context.Context, in *ID, opts ...grpc.CallOption) (*ScreenshotResult, error)

func (*Client) SetLogLevel

func (c *Client) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*empty.Empty, error)

func (*Client) Sink

func (c *Client) Sink(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_SinkClient, error)

func (*Client) Swab

func (c *Client) Swab(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_SwabClient, error)

type DataService added in v1.1.0

type DataService interface {
	Building(context.Context, string) ([]Pi, error)
	Room(context.Context, string) ([]Pi, error)
	Device(context.Context, string) (Pi, error)
	CopyRoom(ctx context.Context, from, to string) error
}

type Pi added in v1.1.0

type Pi struct {
	ID      string
	Address string
	Type    string
}

Jump to

Keyboard shortcuts

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