templates

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MongoDBStandalone templateFile = "templates/msvc/mongodb/helm-mongodb-standalone.yml.tpl"

	MySqlStandalone templateFile = "templates/msvc/mysql/helm-mongodb-standalone.yml.tpl"
	MysqlCluster    templateFile = "templates/msvc/mysql/helm-cluster.yml.tpl"

	RedisStandalone   templateFile = "templates/msvc/redis/helm-mongodb-standalone.yml.tpl"
	RedisACLConfigMap templateFile = "templates/msvc/redis/acl-configmap.yml.tpl"

	MongoDBCluster   templateFile = "templates/mongodb-helm-one-node-cluster.yml.tpl"
	Deployment       templateFile = "templates/app.yml.tpl"
	Service          templateFile = "templates/service.yml.tpl"
	Secret           templateFile = "templates/corev1/secret.yml.tpl"
	AccountWireguard templateFile = "templates/account-deploy.yml.tpl"
	CommonMsvc       templateFile = "templates/msvc-common-service.yml.tpl"
	CommonMres       templateFile = "templates/mres-common.yml.tpl"

	ServerlessLambda templateFile = "templates/serverless/lambda.yml.tpl"

	ElasticSearch templateFile = "templates/msvc/elasticsearch/elastic-helm.yml.tpl"
	Kibana        templateFile = "templates/msvc/elasticsearch/kibana-helm.yml.tpl"
	OpenSearch    templateFile = "templates/msvc/opensearch/helm.yml.tpl"
	InfluxDB      templateFile = "templates/msvc/influx/helm.yml.tpl"

	Project templateFile = "templates/project.yml.tpl"

	RedpandaOneNodeCluster templateFile = "templates/msvc/redpanda/one-node-cluster.yml.tpl"

	HelmIngressNginx     templateFile = "templates/ingress-nginx/helm.yml.tpl"
	AccountIngressBridge templateFile = "templates/ingress-nginx/ingress-bridge.tpl.yml"

	ProjectRBAC   templateFile = "templates/project-rbac.yml.tpl"
	ProjectHarbor templateFile = "templates/project-harbor.yml.tpl"

	MsvcHelmZookeeper templateFile = "templates/msvc/zookeeper/helm.yml.tpl"

	MsvcHelmNeo4jStandalone templateFile = "templates/msvc/neo4j/helm-mongodb-standalone.yml.tpl"

	AwsEbsCsiDriver    templateFile = "templates/csi/aws-ebs-csi-driver.yml.tpl"
	AwsEbsStorageClass templateFile = "templates/csi/aws-storage-class.yml.tpl"

	DigitaloceanCSIDriver    templateFile = "templates/csi/digitalocean/csi-driver.yml.tpl"
	DigitaloceanStorageClass templateFile = "templates/csi/digitalocean/storage-class.yml.tpl"

	ClusterIssuer templateFile = "templates/cluster-issuer.yml.tpl"
)

Variables

View Source
var Clusters = struct {
	Job templateFile
}{
	Job: "templates/clustersv1/job.yml.tpl",
}
View Source
var CoreV1 = struct {
	ExternalNameSvc    templateFile
	Ingress            templateFile
	DockerConfigSecret templateFile
	Secret             templateFile
	Namespace          templateFile
	ConfigMap          templateFile
	Deployment         templateFile
}{
	ExternalNameSvc:    "templates/corev1/external-name-service.yml.tpl",
	Ingress:            "templates/corev1/ingress.yml.tpl",
	DockerConfigSecret: "templates/corev1/docker-config-secret.yml.tpl",
	Secret:             "templates/corev1/secret.yml.tpl",
	Namespace:          "templates/corev1/namespace.yml.tpl",
	ConfigMap:          "templates/corev1/configmap.yml.tpl",
}
View Source
var CrdsV1 = struct {
	App           templateFile
	Secret        templateFile
	AccountRouter templateFile
}{
	App:           "templates/app.yml.tpl",
	Secret:        "templates/crdsv1/secret.yml.tpl",
	AccountRouter: "templates/crdsv1/account-router.yml.tpl",
}
View Source
var Wireguard = struct {
	Config        templateFile
	Deploy        templateFile
	DeploySvc     templateFile
	CoreDns       templateFile
	CoreDnsSvc    templateFile
	DeviceConfig  templateFile
	DeviceService templateFile
	DnsConfig     templateFile
}{
	Config:        "templates/wireguardv1/config.tmpl.conf",
	Deploy:        "templates/wireguardv1/deploy.yml.tpl",
	DeploySvc:     "templates/wireguardv1/deploy-svc.yml.tpl",
	CoreDns:       "templates/wireguardv1/coredns.yml.tpl",
	CoreDnsSvc:    "templates/wireguardv1/coredns-svc.yml.tpl",
	DeviceConfig:  "templates/wireguardv1/device-config.tmpl.conf",
	DeviceService: "templates/wireguardv1/device-service.yml.tpl",
	DnsConfig:     "templates/wireguardv1/dns-config.yml.tpl",
}

Functions

func Parse

func Parse(f templateFile, values any) ([]byte, error)

func ParseBytes

func ParseBytes(b []byte, values any) ([]byte, error)

func WithFunctions

func WithFunctions(t *template.Template) *template.Template

Types

This section is empty.

Jump to

Keyboard shortcuts

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