ws

package
v0.0.0-...-4ffe290 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Echo

func Echo(w http.ResponseWriter, r *http.Request)

func Pipe

func Pipe(w http.ResponseWriter, r *http.Request)

func Ws

func Ws(w http.ResponseWriter, r *http.Request)

Types

type Cluster

type Cluster struct {
	ClusterName string `json:"clusterName,omitempty"`
	AwsProfile  string `json:"awsProfile,omitempty`
}

type ClusterStatus

type ClusterStatus struct {
	ClusterName               string                       `json:"clusterName,omitempty"`
	AwsProfile                string                       `json:"awsProfile,omitempty`
	AwsInstances              *ec2.DescribeInstancesOutput `json:"awsInstances,omitempty"`
	AwsMasterAutoscalingGroup *autoscaling.Group           `json:"awsMasterAutoscalingGroup,omitempty"`
	AwsWorkerAutoscalingGroup *autoscaling.Group           `json:"awsWorkerAutoscalingGroup,omitempty"`
	Nodes                     *corev1.NodeList             `json:"nodes,omitempty"`
	Pods                      *corev1.PodList              `json:"pods,omitempty"`
}

type WsMessage

type WsMessage struct {
	Op            string        `json:"op"`
	Message       interface{}   `json:"message"`
	Cluster       Cluster       `json:"cluster,omitempty"`
	ClusterStatus ClusterStatus `json:"clusterStatus,omitempty"`
	Slots         []slots.Slot  `json:"slots,omitempty"`
}

type WsResource

type WsResource struct {
	WsMessage WsMessage
}

func (*WsResource) ToWs

func (wsr *WsResource) ToWs(request *restful.Request, response *restful.Response)

func (WsResource) WebService

func (wsr WsResource) WebService() *restful.WebService

Jump to

Keyboard shortcuts

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