Documentation ¶
Index ¶
Constants ¶
View Source
const ( PlatformKubernetes = "kubernetes" PlatformDockerCompose = "docker-compose" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesPlatform ¶
type KubernetesPlatform struct { Services Services BuildDir string Env Environment }
func MakeKubernetesPlatform ¶
func MakeKubernetesPlatform(buildDir, env, pathToServicesFile, pathToSecretsFile, pathToEnvFile string) (*KubernetesPlatform, error)
MakeKubernetesPlatform constructor
func (*KubernetesPlatform) Run ¶
func (k8s *KubernetesPlatform) Run(serviceNames ...Name) error
Run service in kubernetes platform
func (*KubernetesPlatform) Setup ¶
func (k8s *KubernetesPlatform) Setup(serviceNames ...Name) error
type Platform ¶
Platform is component for creating required artifacts and interacting with specific platform
func MakePlatform ¶
func MakePlatform(platform, buildDir, env, pathToServicesFile, pathToSecretsFile, pathToEnvFile string) (Platform, error)
MakePlatform returns specific platform
type Service ¶
type Service struct { Name Name `json:"name"` Project string `json:"project"` Source string `json:"source"` Image string `json:"image"` IsPublic bool `json:"isPublic"` Subscribe []Name `json:"subscribe"` Require Services `json:"require"` Secrets Secrets `json:"secrets"` EnvVars EnvVars `json:"env"` }
Service represents service configuration
Click to show internal directories.
Click to hide internal directories.