dstack

package
v0.0.0-...-603914b Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

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

func (*APIError) Error

func (e *APIError) Error() string

type Client

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

func NewClient

func NewClient(baseURL string, authToken string, timeout time.Duration) (*Client, error)

func (*Client) GetUpstream

func (c *Client) GetUpstream(ctx context.Context, id string) (sshproxy.Upstream, error)

GetUpstream implements sshproxy.GetUpstreamCallback

type ErrorDetail

type ErrorDetail struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
}

type ErrorResponse

type ErrorResponse struct {
	Detail []ErrorDetail `json:"detail"`
}

type GetUpstreamRequest

type GetUpstreamRequest struct {
	ID string `json:"id"`
}

type GetUpstreamResponse

type GetUpstreamResponse struct {
	Hosts          []UpstreamHost `json:"hosts"`
	AuthorizedKeys []string       `json:"authorized_keys"`
}

type TextErrorResponse

type TextErrorResponse struct {
	Detail string `json:"detail"`
}

type UpstreamHost

type UpstreamHost struct {
	Host       string `json:"host"`
	Port       int    `json:"port"`
	User       string `json:"user"`
	PrivateKey string `json:"private_key"`
}

Jump to

Keyboard shortcuts

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