Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePassword ¶
Types ¶
type Application ¶
type Application struct { Client kubernetes.Interface Config *ApplicationConfig Resources []KubernetesResource }
func NewApplication ¶
func NewApplication(client kubernetes.Interface, config *ApplicationConfig, resources []KubernetesResource) *Application
func (*Application) Deploy ¶
func (a *Application) Deploy() error
type ApplicationConfig ¶
type ApplicationConfig struct { Name string Labels map[string]string Namespace string Pvc PvcConfig Deployment DeploymentConfig Svc SvcConfig Secret SecretConfig }
type DeploymentConfig ¶
type KubernetesResource ¶
type KubernetesResource int
const ( Deployment KubernetesResource = iota Service ConfigMap Secret PVC )
type PvcConfig ¶
type PvcConfig struct { AccessMode corev1.PersistentVolumeAccessMode Size string }
type SecretConfig ¶
type SecretConfig struct { SecretName string SecretType corev1.SecretType SecretData map[string][]byte }
Click to show internal directories.
Click to hide internal directories.