deployment

package
v0.0.26 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ConfigName = "conductor-deployment.json"
View Source
const SeedName = "conductor-deployment-seed.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
	Seed                 *DeploymentSeed `json:"-"`
	ServiceDir           string          `json:"service_dir"`
	ServiceId            string          `json:"service_id"`
	DeploymentName       string          `json:"conductor_deployment"`
	PartName             string          `json:"part_name"`
	PodName              string          `json:"pod_name"`
	TemplatedPod         string          `json:"templated_pod"`
	TemplatedConfigMap   string          `json:"templated_config_map"`
	TemplatedProxyConfig json.RawMessage `json:"templated_proxy_config"`
	Pod                  *DeploymentPod  `json:"pod,omitempty"`
}

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, seed *DeploymentSeed) *Deployment

func ReadDeployment

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

func ReadDeploymentByName added in v0.0.15

func ReadDeploymentByName(name 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) TemplateProxyConfig

func (depl *Deployment) TemplateProxyConfig() error

func (*Deployment) Vars

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

type DeploymentPod added in v0.0.20

type DeploymentPod struct {
	*service.ServicePod
	IPAddress string `json:"ip_address"`
}

func (*DeploymentPod) TemplatePod added in v0.0.20

func (pod *DeploymentPod) TemplatePod(depl *Deployment) error

type DeploymentSeed added in v0.0.20

type DeploymentSeed struct {
	ServiceDir string `json:"service_dir"`
	PartName   string `json:"part_name"`
}

func ReadSeed added in v0.0.20

func ReadSeed(fname string) (*DeploymentSeed, error)

func SeedFromService added in v0.0.20

func SeedFromService(service *service.Service, part string) (*DeploymentSeed, error)

func (DeploymentSeed) Prefix added in v0.0.20

func (seed DeploymentSeed) Prefix() string

Jump to

Keyboard shortcuts

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