terminal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 18 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL, username, token string) *Client

func (*Client) Connect

func (c *Client) Connect(session *Session, cols, rows int) (*Conn, error)

func (*Client) OpenSession

func (c *Client) OpenSession(agentID int) (*Session, error)

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func (*Conn) Close

func (tc *Conn) Close()

func (*Conn) Exec

func (tc *Conn) Exec(ctx context.Context, command string) error

func (*Conn) RunInteractive

func (tc *Conn) RunInteractive(ctx context.Context) error

type Session

type Session struct {
	Token  string `json:"token"`
	NodeID string `json:"nodeId"`
}

Session holds the session token and node ID from TeamCity's agent terminal plugin

Jump to

Keyboard shortcuts

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