sessions

package
v0.0.0-...-7db06d3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerStatus

func ContainerStatus(ctx context.Context, cs *kubernetes.Clientset, sessionID string) (map[string]cmp.ComponentState, error)

func CreateDeploy

func CreateDeploy(ctx context.Context, cs *kubernetes.Clientset, cc *clientv3.Client, sessionID string, components []cmp.Component) error

func DeleteDeploy

func DeleteDeploy(ctx context.Context, cs *kubernetes.Clientset, cc *clientv3.Client, sessionID string) error

func GetSessionLogs

func GetSessionLogs(ctx context.Context, cs *kubernetes.Clientset, sessionID string, componentID string) (io.ReadCloser, error)

func InitSession

func InitSession(ctx context.Context, cc *clientv3.Client, kcs *kubernetes.Clientset, sessionID string) error

func ToggleDeploy

func ToggleDeploy(ctx context.Context, cs *kubernetes.Clientset, cc *clientv3.Client, sessionID string) error

Types

type SessionInfo

type SessionInfo struct {
	SessionState SessionState    `json:"sessionState"`
	Components   []cmp.Component `json:"components"`
}

func RefreshDeploy

func RefreshDeploy(ctx context.Context, cs *kubernetes.Clientset, cc *clientv3.Client, sessionID string) (*SessionInfo, error)

type SessionState

type SessionState string
const (
	Initialized SessionState = "initialized"
	Running     SessionState = "running"
	Stopped     SessionState = "stopped"
)

Jump to

Keyboard shortcuts

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