models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapModel

type ConfigMapModel struct {
	Name      string
	Namespace string
	Service   string
	TunnelID  string
	Domain    string
}

func ConfigMap

func ConfigMap(model ConfigMapModel) *ConfigMapModel

func (*ConfigMapModel) GetConfigMap

func (cm *ConfigMapModel) GetConfigMap() (*corev1.ConfigMap, error)

type DeploymentModel

type DeploymentModel struct {
	Name            string
	Namespace       string
	Replicas        int32
	TunnelID        string
	Image           string
	ImagePullPolicy corev1.PullPolicy
	Command         []string
	Args            []string
	Secret          *corev1.Secret
	ConfigMap       *corev1.ConfigMap
}

func Deployment

func Deployment(model DeploymentModel) *DeploymentModel

func (*DeploymentModel) GetDeployment

func (d *DeploymentModel) GetDeployment() *appsv1.Deployment

type SecretModel

type SecretModel struct {
	Name         string
	Namespace    string
	TunnelToken  string
	AccountTag   string
	TunnelSecret string
	TunnelID     string
}

func Secret

func Secret(model SecretModel) *SecretModel

func (*SecretModel) GetSecret

func (s *SecretModel) GetSecret() (*corev1.Secret, error)

Jump to

Keyboard shortcuts

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