Documentation ¶
Overview ¶
Package service provides a interface and base type for starting and proxying to services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvVar ¶
type EnvVar struct { Name string `yaml:"name" json:"name"` Value string `yaml:"value" json:"value"` }
EnvVar key value pair to pass envionment values to a service.
type Manifest ¶
type Manifest struct { ApiVersion string `yaml:"apiVersion" json:"apiVersion"` Spec Service `yaml:"spec" json:"spec"` DateChanged time.Time }
ServiceManifest struct matching the a service deployment manifest file.
func ReadService ¶
ReadService reads a service manifest from supplied file.
type Service ¶
type Service struct { Name string `yaml:"name" json:"name"` Port int `yaml:"port" json:"port"` Domain string `yaml:"domain" json:"domain"` Image string `yaml:"image" json:"image"` VolumeMount string `yaml:"volumeMount" json:"volumeMount"` Env []EnvVar `yaml:"env" json:"env"` Active bool `yaml:"active" json:"active"` }
Service holds information to start, identify and proxy traffic to a containarized service.
Click to show internal directories.
Click to hide internal directories.