entclient

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

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) DelDevURL added in v1.9.0

func (c Client) DelDevURL(envID, urlID string) error

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)

func (Client) UpsertDevURL added in v1.9.0

func (c Client) UpsertDevURL(envID, port, access string) 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