Documentation
¶
Index ¶
- Constants
- Variables
- func CGIFunctionServiceUnit(name string, instance string) string
- func CGIFunctionServiceUnitSingle(name string) string
- func CGIFunctionSocketUnit(name string) string
- func DeploymentConfigUnit(name string) string
- func DeploymentDirByName(name string, allow_dir bool, allow_service_name bool) (string, string, error)
- func DeploymentDirByNameOnly(name string) string
- func DeploymentMainUnit(s *service.Service, part_name string, deployment_name string) string
- func DeploymentRunPath(name string) string
- func DeploymentServiceUnit(name string) string
- func DeploymentSocketConfigUnit(name string) string
- func DeploymentSocketPath(name string) string
- func DeploymentSocketUnit(name string) string
- func DeploymentSocketUnitOrBlank(s *service.Service, part_name string, deployment_name string) string
- type Deployment
- func List(opts ListOpts) ([]*Deployment, error)
- func LoadDeployment(deployment_dir, fname string) (*Deployment, error)
- func LoadDeploymentDir(dir string) (*Deployment, error)
- func NewDeploymentFromService(service *service.Service, deployment_name string, seed *DeploymentSeed) *Deployment
- func ReadDeployment(dir, deployment_id string) (*Deployment, error)
- func ReadDeploymentByName(name string, allow_dir_in_name, allow_service_name bool) (*Deployment, error)
- func (depl *Deployment) ConfigUnit() string
- func (depl *Deployment) FindPodIPAddress(ctx context.Context) (string, error)
- func (depl *Deployment) FindPodIPAddressContainer(id string) (string, error)
- func (depl *Deployment) FindPodIPAddressOnce() (string, error)
- func (depl *Deployment) KubePlayPod(op KubePlayOperation, dir string) error
- func (depl *Deployment) MainUnit() string
- func (depl *Deployment) ProxyConfig(ctx context.Context, config_name string) (caddy.ConfigItems, error)
- func (depl *Deployment) Save(fname string) error
- func (depl *Deployment) ServiceUnit() string
- func (depl *Deployment) SocketActivated() bool
- func (depl *Deployment) SocketConfigUnit() string
- func (depl *Deployment) SocketUnit() string
- func (depl *Deployment) TemplateAll(ctx context.Context) error
- func (depl *Deployment) TemplateProxyConfig(ctx context.Context, config_name string) error
- func (depl *Deployment) Vars() []string
- type DeploymentFunction
- type DeploymentPod
- type DeploymentSeed
- type KubePlayOperation
- type ListOpts
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 CGIFunctionServiceUnit ¶ added in v0.0.29
func CGIFunctionServiceUnitSingle ¶ added in v0.0.45
func CGIFunctionSocketUnit ¶ added in v0.0.29
func DeploymentConfigUnit ¶
func DeploymentDirByName ¶
func DeploymentDirByNameOnly ¶ added in v0.0.59
func DeploymentMainUnit ¶ added in v0.0.85
func DeploymentRunPath ¶ added in v0.0.85
func DeploymentServiceUnit ¶ added in v0.0.85
func DeploymentSocketConfigUnit ¶ added in v0.0.85
func DeploymentSocketPath ¶ added in v0.0.29
func DeploymentSocketUnit ¶ added in v0.0.85
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"`
DeploymentDir string `json:"-"`
PartName string `json:"part_name"`
PartId string `json:"part_id"`
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"`
Function *DeploymentFunction `json:"function,omitempty"`
ProxyConfigValue caddy.ConfigItems `json:"_proxy_config"`
}
func List ¶ added in v0.0.88
func List(opts ListOpts) ([]*Deployment, error)
func LoadDeployment ¶
func LoadDeployment(deployment_dir, 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, allow_dir_in_name, allow_service_name bool) (*Deployment, error)
func (*Deployment) ConfigUnit ¶ added in v0.0.85
func (depl *Deployment) ConfigUnit() string
func (*Deployment) FindPodIPAddress ¶
func (depl *Deployment) FindPodIPAddress(ctx context.Context) (string, error)
func (*Deployment) FindPodIPAddressContainer ¶ added in v0.0.65
func (depl *Deployment) FindPodIPAddressContainer(id string) (string, error)
func (*Deployment) FindPodIPAddressOnce ¶ added in v0.0.64
func (depl *Deployment) FindPodIPAddressOnce() (string, error)
func (*Deployment) KubePlayPod ¶ added in v0.0.91
func (depl *Deployment) KubePlayPod(op KubePlayOperation, dir string) error
func (*Deployment) MainUnit ¶ added in v0.0.85
func (depl *Deployment) MainUnit() string
func (*Deployment) ProxyConfig ¶ added in v0.0.45
func (depl *Deployment) ProxyConfig(ctx context.Context, config_name string) (caddy.ConfigItems, error)
func (*Deployment) Save ¶
func (depl *Deployment) Save(fname string) error
func (*Deployment) ServiceUnit ¶ added in v0.0.85
func (depl *Deployment) ServiceUnit() string
func (*Deployment) SocketActivated ¶ added in v0.0.85
func (depl *Deployment) SocketActivated() bool
func (*Deployment) SocketConfigUnit ¶ added in v0.0.85
func (depl *Deployment) SocketConfigUnit() string
func (*Deployment) SocketUnit ¶ added in v0.0.85
func (depl *Deployment) SocketUnit() string
func (*Deployment) TemplateAll ¶
func (depl *Deployment) TemplateAll(ctx context.Context) error
func (*Deployment) TemplateProxyConfig ¶
func (depl *Deployment) TemplateProxyConfig(ctx context.Context, config_name string) error
func (*Deployment) Vars ¶
func (depl *Deployment) Vars() []string
type DeploymentFunction ¶ added in v0.0.29
type DeploymentFunction struct {
*service.ServiceFunction
}
func (*DeploymentFunction) ProxyConfig ¶ added in v0.0.45
func (f *DeploymentFunction) ProxyConfig(ctx context.Context, depl *Deployment) (caddy.ConfigItems, error)
type DeploymentPod ¶ added in v0.0.20
type DeploymentPod struct {
*service.ServicePod
IPAddress string `json:"ip_address"`
}
func (*DeploymentPod) ProxyConfig ¶ added in v0.0.45
func (pod *DeploymentPod) ProxyConfig(depl *Deployment) (caddy.ConfigItems, error)
func (*DeploymentPod) TemplatePod ¶ added in v0.0.20
func (pod *DeploymentPod) TemplatePod(ctx context.Context, depl *Deployment) error
type DeploymentSeed ¶ added in v0.0.20
type DeploymentSeed struct {
ServiceDir string `json:"service_dir"`
ServiceId string `json:"service_id"`
PartName string `json:"part_name"`
PartId string `json:"part_id"`
IsPod bool `json:"is_pod"`
IsFunction bool `json:"is_function"`
Pod *service.ServicePod `json:"-"`
Function *service.ServiceFunction `json:"-"`
}
func ReadSeed ¶ added in v0.0.20
func ReadSeed(fname string) (*DeploymentSeed, error)
func SeedFromService ¶ added in v0.0.20
func (DeploymentSeed) Prefix ¶ added in v0.0.20
func (seed DeploymentSeed) Prefix() string
type KubePlayOperation ¶ added in v0.0.91
type KubePlayOperation = int
const ( PodCreate KubePlayOperation = iota PodStart PodStop )
Click to show internal directories.
Click to hide internal directories.