info

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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