client

package
v0.0.0-...-2bc12df Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package client provides helpers for interacting with the wash socket HTTP API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Info(path string) (apitypes.Entry, error)
	List(path string) ([]apitypes.Entry, error)
	Metadata(path string) (map[string]interface{}, error)
	Stream(path string) (io.ReadCloser, error)
	Exec(path string, command string, args []string, opts apitypes.ExecOptions) (<-chan apitypes.ExecPacket, error)
	History(bool) (chan apitypes.Activity, error)
	ActivityJournal(index int, follow bool) (io.ReadCloser, error)
	Clear(path string) ([]string, error)
	// A "nil" schema means that the schema's unknown.
	Schema(path string) (*apitypes.EntrySchema, error)
	Screenview(name string, params analytics.Params) error
	Delete(path string) (bool, error)
	Signal(path string, signal string) error
}

Client represents a Wash API client.

func ForUNIXSocket

func ForUNIXSocket(pathToSocket string) Client

ForUNIXSocket returns a client suitable for making wash API calls over a UNIX domain socket.

Jump to

Keyboard shortcuts

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