Documentation ¶
Index ¶
- func LogToChannel(ctx context.Context, ch chan string, req *rest.Request)
- type Cluster
- func (c *Cluster) Connect() error
- func (c *Cluster) GetContext() string
- func (c *Cluster) GetNamespaceEvent() NamespaceEvent
- func (c *Cluster) GetNamespaces() (*v1.NamespaceList, error)
- func (c *Cluster) GetPodEvent() PodEvent
- func (c *Cluster) GetPods(namespace string) (*v1.PodList, error)
- func (c *Cluster) RunK8mpassCommand(fn api.K8mpassCommand, namespace string) tea.Cmd
- func (c *Cluster) RunK8mpassCondition(fn api.K8mpassCondition, namespace string) bool
- func (c *Cluster) SendLogsToChannel(ctx context.Context, nameSpace string, podName string, ch chan string) error
- func (c *Cluster) StopWatchingPods()
- func (c *Cluster) WatchNamespaces(resourceVersion string) error
- func (c *Cluster) WatchPods(ctx context.Context, namespace string, resourceVersion string) error
- type EventType
- type ICluster
- type ILogService
- type INamespaceService
- type IPodService
- type NamespaceEvent
- type PodEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func (*Cluster) GetContext ¶
func (*Cluster) GetNamespaceEvent ¶
func (c *Cluster) GetNamespaceEvent() NamespaceEvent
func (*Cluster) GetNamespaces ¶
func (c *Cluster) GetNamespaces() (*v1.NamespaceList, error)
func (*Cluster) GetPodEvent ¶
func (*Cluster) RunK8mpassCommand ¶
func (*Cluster) RunK8mpassCondition ¶
func (c *Cluster) RunK8mpassCondition(fn api.K8mpassCondition, namespace string) bool
func (*Cluster) SendLogsToChannel ¶
func (*Cluster) StopWatchingPods ¶
func (c *Cluster) StopWatchingPods()
func (*Cluster) WatchNamespaces ¶
type ILogService ¶
type INamespaceService ¶
type INamespaceService interface { GetNamespaces() (*v1.NamespaceList, error) GetNamespaceEvent() NamespaceEvent WatchNamespaces(resourceVersion string) error }
type IPodService ¶
type IPodService interface { GetPods(namespace string) (*v1.PodList, error) GetPodEvent() PodEvent WatchPods(ctx context.Context, namespace string, resourceVersion string) error StopWatchingPods() RunK8mpassCondition(fn api.K8mpassCondition, namespace string) bool RunK8mpassCommand(fn api.K8mpassCommand, namespace string) tea.Cmd }
type NamespaceEvent ¶
Click to show internal directories.
Click to hide internal directories.