Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DEPENDENCY the dependencies tag DEPENDENCY = "DEPENDENCY" // ENVS the environment variables tag ENVS = "ENVS" // EXPOSED the exposed ports tag EXPOSED = "EXPOSED" // RESOURCES the used resources tag RESOURCES = "RESOURCES" // TAGS the extra tags used for our images TAGS = "TAGS" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies []Dependency
Dependencies array of dependency objects
func GetDepenedencies ¶
func GetDepenedencies(dockerfile string) (*Dependencies, error)
GetDepenedencies fetch the container dependencies from the Dockerfile
type Dependency ¶
type Dependency struct {
Name string `json:"name,omitempty"`
Image string `json:"image,omitempty"`
Ports []string `json:"ports,omitempty"`
About string `json:"about,omitempty"`
Mandatory string `json:"mandatory,omitempty"`
}
Dependency object for the Dockerfile
type Env ¶
type Env struct {
Name string `json:"name,omitempty"`
About string `json:"about,omitempty"`
Mandatory string `json:"mandatory,omitempty"`
}
Env is the Environment Variable object for the Dockerfile
type Others ¶
Other all other tags regardless of their type in the dockerfile
func GetOtherTags ¶
GetOtherTags gets all the dockerfile labels
type Port ¶
type Port struct {
Name string `json:"name,omitempty"`
About string `json:"about,omitempty"`
Scheme string `json:"scheme,omitempty"`
Protocol string `json:"protocol,omitempty"`
}
Port is the exposed port object for the Dockerfile
type Ports ¶
type Ports []Port
Ports that should be exposed by the container application
func GetExposedPorts ¶
GetExposedPorts fetch the texposed ports from the Dockerfile
type Resources ¶
Resources is the exposed port object for the Dockerfile (only one resource object per dockerfile )
func GetResources ¶
GetResources fetch the container resources from the Dockerfile
Click to show internal directories.
Click to hide internal directories.