Documentation
¶
Index ¶
- func CopyDir(src string, dst string) (err error)
- func CopyFile(src, dst string) (err error)
- func Deploy(sandboxName string, procName string, model *mod.Model) error
- func Init() (err error)
- func Run() (err error)
- type DeploymentTemplate
- type EgressServiceTemplate
- type ExternalTemplate
- type IngressServiceTemplate
- type SandboxTemplate
- type ScenarioTemplate
- type ServicePortTemplate
- type ServiceTemplate
- type VirtEngine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.
func CopyFile ¶
CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.
Types ¶
type DeploymentTemplate ¶
type DeploymentTemplate struct {
Enabled string
Name string
ReplicaCount string
ApiVersion string
MatchLabels []string
TemplateLabels []string
ContainerName string
ContainerImageRepository string
ContainerImagePullPolicy string
ContainerEnvEnabled string
ContainerEnv []string
ContainerCommandEnabled string
ContainerCommand []string
ContainerCommandArg []string
GpuEnabled string
GpuType string
GpuCount string
PlacementId string
CpuEnabled string
CpuMin string
CpuMax string
MemoryEnabled string
MemoryMin string
MemoryMax string
}
DeploymentTemplate - Deployment Template
type EgressServiceTemplate ¶
type EgressServiceTemplate struct {
Name string
MeSvcName string
IP string
Port string
Protocol string
}
EgressServiceTemplate - Egress Service Template
type ExternalTemplate ¶
type ExternalTemplate struct {
Enabled string
Selector []string
IngressServiceMap []IngressServiceTemplate
EgressServiceMap []EgressServiceTemplate
}
ExternalTemplate - External Template
type IngressServiceTemplate ¶
IngressServiceTemplate - Ingress Service Template
type SandboxTemplate ¶
type SandboxTemplate struct {
InstanceId string
SandboxName string
Namespace string
HostUrl string
UserSwagger string
HttpsOnly bool
AuthEnabled bool
IsMepService bool
MepName string
AppEnablement string
Env []string
}
SandboxTemplate -helm values.yaml template
type ScenarioTemplate ¶
type ScenarioTemplate struct {
Name string
Deployment DeploymentTemplate
Service ServiceTemplate
External ExternalTemplate
Namespace string
}
ScenarioTemplate -helm values.yaml template
type ServicePortTemplate ¶
ServicePortTemplate - Service Port Template
type ServiceTemplate ¶
type ServiceTemplate struct {
Enabled string
Name string
Namespace string
Labels []string
Selector []string
Type string
Ports []ServicePortTemplate
MeServiceEnabled string
MeServiceName string
}
ServiceTemplate - Service Template
type VirtEngine ¶
type VirtEngine struct {
// contains filtered or unexported fields
}