Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DepLabelName is label applied to deployment DepLabelName = "kratos/deployment" // CronLabelName is label applied to cronjob CronLabelName = "kratos/cronjob" // SecretLabelName is the label applied to secrets SecretLabelName = "kratos/secret" // ConfigMapsLabelName is the label applied to configmaps ConfigMapsLabelName = "kratos/configmaps" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Clientset kubernetes.Interface RestConfig *rest.Config ConfigMaps Cronjob Deployment Ingress Secrets Service }
Client contain the kubernetes clientset and the supported Kubernetes objects
func (*Client) CheckVersionDepency ¶
CheckVersionDepency check if depency are meet
type ConfigMaps ¶
type ConfigMaps interface { CreateUpdate(string, string) error Delete(string, string) error List(string) ([]corev1.ConfigMap, error) }
ConfigMaps is the interface for configMaps
type Cronjob ¶
type Cronjob interface { CreateUpdate(string, string) error Delete(string, string) error List(string) ([]batchv1.CronJob, error) }
Cronjob is the interface for cronjob
type Deployment ¶
type Deployment interface { CreateUpdate(string, string) error Delete(string, string) error List(string) ([]appsv1.Deployment, error) }
Deployment is the interface for deployment
type Ingress ¶
type Ingress interface { CheckIngressClassExist(string) error CreateUpdate(string, string) error Delete(string, string) error List(string) ([]netv1.Ingress, error) }
Ingress is the interface
type Secrets ¶
type Secrets interface { CreateUpdate(string, string) error Delete(string, string) error DeleteConfig(string, string) error Get(string, string) (*corev1.Secret, error) List(string) ([]corev1.Secret, error) SaveConfig(string, string, string, string) error }
Secrets is the interface for secrets
Click to show internal directories.
Click to hide internal directories.