entclient

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 10 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) DialWsep added in v1.8.0

func (c Client) DialWsep(ctx context.Context, env Environment) (*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)

func (Client) PushActivity added in v1.8.0

func (c Client) PushActivity(source string, envID string) error

func (Client) SSHKey added in v1.8.0

func (c Client) SSHKey() (*SSHKey, 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 SSHKey added in v1.8.0

type SSHKey struct {
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
}

type User

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

Jump to

Keyboard shortcuts

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