kubehandler

package
v0.0.0-...-feee898 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCm

func DeleteCm(s *discordgo.Session, m *discordgo.MessageCreate, cm string, namespace string)

DeleteCm function to delete services

func DeleteDeployment

func DeleteDeployment(s *discordgo.Session, m *discordgo.MessageCreate, deploy string, namespace string)

DeleteDeployment function to delete deployments

func DeleteIngress

func DeleteIngress(s *discordgo.Session, m *discordgo.MessageCreate, ingress string, namespace string)

DeleteIngress function to delete ingress

func DeleteNamespace

func DeleteNamespace(s *discordgo.Session, m *discordgo.MessageCreate, namespace string)

DeleteNamespace function to delete namespace

func DeleteSvc

func DeleteSvc(s *discordgo.Session, m *discordgo.MessageCreate, svc string, namespace string)

DeleteSvc function to delete services

func GetConfigMap

func GetConfigMap(s *discordgo.Session, m *discordgo.MessageCreate, namespace string)

GetConfigMap function to get configmap

func GetDeploy

func GetDeploy(s *discordgo.Session, m *discordgo.MessageCreate, namespace string)

GetDeploy function to get deployments

func GetIngress

func GetIngress(s *discordgo.Session, m *discordgo.MessageCreate, namespace string)

GetIngress function to get Ingress

func GetNamespace

func GetNamespace(s *discordgo.Session, m *discordgo.MessageCreate)

GetNamespace function to get namespaces

func GetNodes

func GetNodes(s *discordgo.Session, m *discordgo.MessageCreate)

GetNodes function to get Nodes

func GetPodLogs

func GetPodLogs(s *discordgo.Session, m *discordgo.MessageCreate, podName string, namespace string)

GetPodLogs function to get logs from pods

func GetPods

func GetPods(s *discordgo.Session, m *discordgo.MessageCreate, namespace string)

GetPods function to get pods

func GetSvc

func GetSvc(s *discordgo.Session, m *discordgo.MessageCreate, namespace string)

GetSvc function to get Services

func UpdateDeployment

func UpdateDeployment(s *discordgo.Session, m *discordgo.MessageCreate, namespace string, deploy string, replicas string)

UpdateDeployment function to scale replicas

Types

type Config

type Config struct {
	InCluster  bool
	Kubeconfig string
}

Config struct to store env vars

func New

func New() *Config

New function to read env values

Jump to

Keyboard shortcuts

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