deployment

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigName = "conductor-deployment.json"

Variables

View Source
var DeploymentRunDir = dirs.Join(dirs.SelfRuntimeDir, "deployments")

Functions

func DeploymentConfigUnit

func DeploymentConfigUnit(name string) string

func DeploymentDirByName

func DeploymentDirByName(name string) string

func DeploymentUnit

func DeploymentUnit(name string) string

Types

type Deployment

type Deployment struct {
	*service.Service
	ServiceDir           string          `json:"service_dir"`
	ServiceId            string          `json:"service_id"`
	DeploymentName       string          `json:"conductor_deployment"`
	PodName              string          `json:"pod_name"`
	TemplatedPod         string          `json:"templated_pod"`
	TemplatedConfigMap   string          `json:"templated_config_map"`
	TemplatedProxyConfig json.RawMessage `json:"templated_proxy_config"`
	PodIpAddress         string          `json:"pod_ip_address"`
}

func LoadDeployment

func LoadDeployment(fname string) (*Deployment, error)

func LoadDeploymentDir

func LoadDeploymentDir(dir string) (*Deployment, error)

func NewDeploymentFromService

func NewDeploymentFromService(service *service.Service, deployment_name string) *Deployment

func ReadDeployment

func ReadDeployment(dir, deployment_id string) (*Deployment, error)

func (*Deployment) FindPodIPAddress

func (depl *Deployment) FindPodIPAddress() (string, error)

func (*Deployment) RunHooks

func (depl *Deployment) RunHooks(ctx context.Context, when string, extend_timeout time.Duration) error

func (*Deployment) Save

func (depl *Deployment) Save(fname string) error

func (*Deployment) StartStopPod

func (depl *Deployment) StartStopPod(start bool, dir string) error

func (*Deployment) TemplateAll

func (depl *Deployment) TemplateAll() error

func (*Deployment) TemplatePod

func (depl *Deployment) TemplatePod() error

func (*Deployment) TemplateProxyConfig

func (depl *Deployment) TemplateProxyConfig() error

func (*Deployment) Vars

func (depl *Deployment) Vars() []string

Jump to

Keyboard shortcuts

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