Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTTYnameapace = "sealyun-tty" DefaultApiserver = "https://kubernetes.default.svc.cluster.local:443" //or https://10.96.0.1:443 DefaultKubeTTYimage = "fanux/fist-tty-tools:v1.0.0" DefaultPrefix = "tid-" ClassPathNamespace = "MY_NAMESPACE" ServiceAccountName = "MY_SA_NAME" DefaultNamespace = "sealyun" DefaultServiceAccount = "admin" )
consts
Variables ¶
View Source
var (
DefaultTTYDeployReplicas = int32(1)
)
vars
View Source
var ( //TerminalPort is cmd port param TerminalPort uint16 )
Functions ¶
Types ¶
type Heartbeater ¶
type Heartbeater interface { //terminal deployment is in sealyun-tty namespace UpdateTimestamp() error //need delete deployment and service in sealyun-tty if it timeout CleanTerminalJob() error }
Heartbeater is
func NewHeartbeater ¶
func NewHeartbeater(tid string, namespace string) Heartbeater
NewHeartbeater is
type Terminal ¶
type Terminal struct { //input field User string `json:"user,omitempty"` UserToken string `json:"userToken,omitempty"` Apiserver string `json:"apiServer,omitempty"` // just using default apiserver Namespace string `json:"namespace,omitempty"` // the kubeconfig default context namespace WithoutToken bool `json:"withoutToken,omitempty"` // if true, mount the kubeconfig file, using ttyd instead the start-terminal.sh TTYKubeImage string `json:"ttyKubeImage,omitempty"` //default is "fanux/fist-tty-tools:v1.0.0" //output append field TerminalID string `json:"terminalID,omitempty"` EndPoint string `json:"endPoint,omitempty"` }
Terminal is
Click to show internal directories.
Click to hide internal directories.