Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct { Meta EnvironmentMeta `json:"metadata"` Spec EnvironmentSpec `json:"spec"` }
func (*Environment) Find ¶
func (environment *Environment) Find(targetType, target string) *Target
type EnvironmentMeta ¶
type EnvironmentMeta struct {
Name string `json:"name"`
}
type EnvironmentSpec ¶
type EnvironmentSpec struct {
Targets []Target `json:"targets"`
}
type Registry ¶
type Registry struct {
Services []Service `json:"services"`
}
func GetRegistry ¶
func GetRegistryVM ¶
type Service ¶
type Service struct { Meta ServiceMeta `json:"metadata"` Spec ServiceSpec `json:"spec"` }
func (*Service) Find ¶
func (service *Service) Find(environment string) *Environment
type ServiceMeta ¶
type ServiceMeta struct {
Name string `json:"name"`
}
type ServiceSpec ¶
type ServiceSpec struct {
Environments []Environment `json:"environments"`
}
type Target ¶
type Target struct { Meta TargetMeta `json:"metadata"` // The spec of targets is potentially in flux, handle this by // taking in a map Spec objx.Map `json:"spec,omitempty"` }
type TargetMeta ¶
Click to show internal directories.
Click to hide internal directories.