Documentation ¶
Index ¶
Constants ¶
View Source
const DraftLabelKey = "draft"
DraftLabelKey is the label selector key on a pod that allows
us to identify which draft app a pod is associated with
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App encapsulates information about an application to connect to
Name is the name of the application Namespace is the Kubernetes namespace it is deployed in Container is the name the name of the application container to connect to
func DeployedApplication ¶
DeployedApplication returns deployment information about the deployed instance
of the source code given a path to your draft.toml file and the name of the draft environment
func (*App) Connect ¶
func (a *App) Connect(clientset kubernetes.Interface, clientConfig *restclient.Config, containerName string) (*Connection, error)
Connect tunnels to a Kubernetes pod running the application and returns the connection information
type Connection ¶
type Connection struct { ContainerConnections []*ContainerConnection PodName string Clientset kubernetes.Interface }
Connection encapsulated information to connect to an application
func (*Connection) RequestLogStream ¶
func (c *Connection) RequestLogStream(namespace string, containerName string, logLines int64) (io.ReadCloser, error)
RequestLogStream returns a stream of the application pod's logs
type ContainerConnection ¶ added in v0.11.0
ContainerConnection encapsulates a connection to a container in a pod
Click to show internal directories.
Click to hide internal directories.