entclient

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: GPL-3.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL *url.URL
	Token   string
}

func (Client) DialWush

func (c Client) DialWush(env Environment, opts *WushOptions, cmd string, args ...string) (*websocket.Conn, error)

func (Client) Envs

func (c Client) Envs(user *User, org Org) ([]Environment, error)

func (Client) Me

func (c Client) Me() (*User, error)

func (Client) Orgs

func (c Client) Orgs() ([]Org, error)

type Environment

type Environment struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

type Org

type Org struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Members []User `json:"members"`
}

type User

type User struct {
	ID    string `json:"id"`
	Email string `json:"email"`
}

type WushOptions

type WushOptions struct {
	TTY   bool
	Stdin bool
}

Jump to

Keyboard shortcuts

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