Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CfInstanceApps ¶
type CfInstanceApps struct {
CfResources []CfResource `json:"resources"`
}
CfInstanceApps for reading cf running instance metadata
type CfResource ¶
type CfResource struct {
CfAppEntity CfSourceApplication `json:"entity"`
}
CfResource reads entity
type CfSourceApplication ¶
type CfSourceApplication struct { Name string `json:"name"` Buildpack string `json:"buildpack"` DetectedBuildpack string `json:"detected_buildpack"` Memory int64 `json:"memory"` Instances int `json:"instances"` DockerImage string `json:"dockerimage"` Ports []int32 `json:"ports"` Env map[string]string `json:"environment_json,omitempty"` }
CfSourceApplication reads source application
type ContainerConfig ¶
type ContainerConfig struct { EPorts map[string]interface{} `json:"ExposedPorts"` User string `json:"User"` Env []string `json:"Env"` WorkingDir string `json:"WorkingDir"` }
ContainerConfig loads container config
type DCService ¶
type DCService struct {
Image string `yaml:"image,omitempty"`
}
DCService reads service
type DockerCompose ¶
type DockerCompose struct { Version string `yaml:"version"` DCServices map[string]DCService `yaml:"services"` }
DockerCompose reads docker compose files
type DockerImage ¶
type DockerImage struct { RepoTags []string `json:"RepoTags"` CConfig ContainerConfig `json:"ContainerConfig"` }
DockerImage loads docker image
Click to show internal directories.
Click to hide internal directories.