template

package
v0.9.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name          string         `json:"name"`
	URL           string         `json:"url,omitempty"`
	RegistryLogin *RegistryLogin `json:"registry_login,omitempty"`
	Pods          []Pod          `json:"pods,omitempty"`
}

Application represents application configuration

type EnvVar

type EnvVar struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

EnvVar represents an environment variable

type NexlayerYAML

type NexlayerYAML struct {
	Application Application `json:"application"`
}

NexlayerYAML represents the structure of a Nexlayer Deployment YAML file for templates

type Pod

type Pod struct {
	Name         string            `json:"name"`
	Image        string            `json:"image"`
	ServicePorts []int             `json:"service_ports,omitempty"`
	Env          map[string]string `json:"env,omitempty"`
	Volumes      []Volume          `json:"volumes,omitempty"`
}

Pod represents a pod configuration

type RegistryLogin

type RegistryLogin struct {
	URL                 string `json:"url"`
	Registry            string `json:"registry"`
	Username            string `json:"username"`
	Password            string `json:"password,omitempty"`
	PersonalAccessToken string `json:"personal_access_token,omitempty"`
}

RegistryLogin represents registry authentication information

type Volume

type Volume struct {
	Name        string `json:"name"`
	MountPath   string `json:"mount_path"`
	StorageType string `json:"storage_type"`
}

Volume represents a volume configuration

Jump to

Keyboard shortcuts

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