info

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentInfo

type DeploymentInfo struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type DeploymentsRequest

type DeploymentsRequest struct {
	Namespace string `json:"namespace"`
	Clientset *kubernetes.Clientset
	Context   context.Context
}

func NewDeployments

func NewDeployments() *DeploymentsRequest

func (*DeploymentsRequest) ParseRequest

func (n *DeploymentsRequest) ParseRequest(msgMap map[string]interface{}) error

func (*DeploymentsRequest) SendResponse

func (n *DeploymentsRequest) SendResponse() error

type DeploymentsSendResponse

type DeploymentsSendResponse struct {
	Namespace   string           `json:"namespace"`
	Deployments []DeploymentInfo `json:"deployments"`
}

type Info

type Info struct {
	ClientSet *kubernetes.Clientset
	Context   context.Context
}

func NewInfo

func NewInfo(clientset *kubernetes.Clientset, ctx context.Context) *Info

func (Info) ParseInfoRequest

func (i Info) ParseInfoRequest(infoRequest string) error

type InfoRequest

type InfoRequest struct {
	Namespace  NamespaceRequest
	Deployment DeploymentsRequest
	Version    VersionRequest
}

type InfoSystem

type InfoSystem interface {
	ParseRequest(mappedString map[string]interface{}) error
	SendResponse() error
}

type NamespaceRequest

type NamespaceRequest struct {
	InfoType  string `json:"info_type"`
	Clientset *kubernetes.Clientset
	Context   context.Context
}

func NewNamespaces

func NewNamespaces(clientset *kubernetes.Clientset, ctx context.Context) *NamespaceRequest

func (*NamespaceRequest) ParseRequest

func (n *NamespaceRequest) ParseRequest(msgMap map[string]interface{}) error

func (*NamespaceRequest) SendResponse

func (n *NamespaceRequest) SendResponse() error

type NamespaceSendResponse

type NamespaceSendResponse struct {
	Namespaces []string `json:"namespaces"`
}

type VersionRequest

type VersionRequest struct {
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
}

func NewVersion

func NewVersion() *VersionRequest

func (*VersionRequest) ParseRequest

func (n *VersionRequest) ParseRequest(msgMap map[string]interface{}) error

func (*VersionRequest) SendResponse

func (n *VersionRequest) SendResponse() error

type VersionSendResponse

type VersionSendResponse struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Version   string `json:"version"`
}

Jump to

Keyboard shortcuts

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