Documentation
¶
Index ¶
- Constants
- Variables
- func DeploymentConfigUnit(name string) string
- func DeploymentDirByName(name string) string
- func DeploymentUnit(name string) string
- type Deployment
- func LoadDeployment(fname string) (*Deployment, error)
- func LoadDeploymentDir(dir string) (*Deployment, error)
- func NewDeploymentFromService(service *service.Service, deployment_name string) *Deployment
- func ReadDeployment(dir, deployment_id string) (*Deployment, error)
- func ReadDeploymentByName(name string) (*Deployment, error)
- func (depl *Deployment) FindPodIPAddress() (string, error)
- func (depl *Deployment) RunHooks(ctx context.Context, when string, extend_timeout time.Duration) error
- func (depl *Deployment) Save(fname string) error
- func (depl *Deployment) StartStopPod(start bool, dir string) error
- func (depl *Deployment) TemplateAll() error
- func (depl *Deployment) TemplatePod() error
- func (depl *Deployment) TemplateProxyConfig() error
- func (depl *Deployment) Vars() []string
Constants ¶
View Source
const ConfigName = "conductor-deployment.json"
Variables ¶
View Source
var DeploymentRunDir = dirs.Join(dirs.SelfRuntimeDir, "deployments")
Functions ¶
func DeploymentConfigUnit ¶
func DeploymentDirByName ¶
func DeploymentUnit ¶
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 ReadDeploymentByName ¶ added in v0.0.15
func ReadDeploymentByName(name string) (*Deployment, error)
func (*Deployment) FindPodIPAddress ¶
func (depl *Deployment) FindPodIPAddress() (string, 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
Click to show internal directories.
Click to hide internal directories.