Documentation ¶
Index ¶
Constants ¶
const ( // CfManifestPathType defines the source artifact type of cf manifest CfManifestPathType transformertypes.PathType = "CfManifest" // CfRunningManifestPathType defines the source artifact type of a manifest of a running instance CfRunningManifestPathType transformertypes.PathType = "CfRunningManifest" )
const ( // ContainerBuildArtifactType represents the container build artifact type ContainerBuildArtifactType transformertypes.ArtifactType = "ContainerBuild" // BuildArtifactPathType defines the build artifact path BuildArtifactPathType transformertypes.PathType = "BuildArtifact" )
const ( // ContainerImageBuildShScriptPathType represents the image build script path type ContainerImageBuildShScriptPathType transformertypes.PathType = "ContainerImageBuildShScript" // ContainerImageBuildBatScriptPathType represents the image build script path type ContainerImageBuildBatScriptPathType transformertypes.PathType = "ContainerImageBuildBatScript" // ContainerImageBuildShScriptContextPathType represents the image build script path type ContainerImageBuildShScriptContextPathType transformertypes.PathType = "ContainerImageBuildShScriptContextScript" // ContainerImageBuildBatScriptContextPathType represents the image build script path type ContainerImageBuildBatScriptContextPathType transformertypes.PathType = "ContainerImageBuildBatScriptContextScript" )
const ( // ContainerImagesPushShScriptPathType represents the image push script path type ContainerImagesPushShScriptPathType transformertypes.PathType = "ContainerImagesPushShScript" // ContainerImagesPushBatScriptPathType represents the image push script path type ContainerImagesPushBatScriptPathType transformertypes.PathType = "ContainerImagesPushBatScript" )
const ( // DockerfilePathType defines the source artifact type of dockerfile DockerfilePathType transformertypes.PathType = "Dockerfile" // DockerfileContextPathType defines the source artifact type of dockerfile context DockerfileContextPathType transformertypes.PathType = "DockerfileContext" )
const ( // GradleConfigType stores the gradle config GradleConfigType transformertypes.ConfigType = "Gradle" // GradleBuildFilePathType stores the Gradle Build File file Path GradleBuildFilePathType transformertypes.PathType = "GradleBuildFile" )
const ( // JarArtifactType defines the jar artifact type JarArtifactType transformertypes.ArtifactType = "Jar" // JarConfigType defines the jar config type JarConfigType transformertypes.ConfigType = "Jar" // JarPathType defines jar path type JarPathType transformertypes.PathType = "Jar" // WarArtifactType defines war artifact type WarArtifactType transformertypes.ArtifactType = "War" // WarConfigType defines the war config type WarConfigType transformertypes.ConfigType = "War" // WarPathType defines the war path type WarPathType transformertypes.PathType = "War" // EarArtifactType defines the ear artifact type EarArtifactType transformertypes.ArtifactType = "Ear" // EarConfigType defines the ear config type EarConfigType transformertypes.ConfigType = "Ear" // EarPathType defines the ear path type EarPathType transformertypes.PathType = "Ear" // BuildContainerFileType defines the build container file type BuildContainerFileType transformertypes.PathType = "BuildContainerFile" // JarPackaging defines jar packaging JarPackaging JavaPackaging = "jar" // WarPackaging defines war packaging WarPackaging JavaPackaging = "war" // EarPackaging defines ear packaging EarPackaging JavaPackaging = "ear" )
const ( // KubernetesYamlsArtifactType is the name of the Kubernetes artifact type KubernetesYamlsArtifactType transformertypes.ArtifactType = "KubernetesYamls" // KubernetesYamlsInSourceArtifactType is the name of the Kubernetes artifact type KubernetesYamlsInSourceArtifactType transformertypes.ArtifactType = "KubernetesYamlsInSource" // KubernetesOrgYamlsInSourceArtifactType is the name of the Kubernetes original yamls artifact type KubernetesOrgYamlsInSourceArtifactType transformertypes.ArtifactType = "KubernetesOrgYamlsInSource" // KubernetesYamlsPathType is points to the kubernetes Yamls KubernetesYamlsPathType transformertypes.PathType = "KubernetesYamls" )
const ( // MavenConfigType stores the maven config MavenConfigType transformertypes.ConfigType = "Maven" // MavenPomPathType stores the Maven POM file Path MavenPomPathType transformertypes.PathType = "MavenPom" )
const ( // CloudFoundryConfigType represents the cloud foundry service configuration CloudFoundryConfigType transformertypes.ConfigType = "CloudFoundryService" )
const ( // ContainerConfigType represents container config type ContainerConfigType transformertypes.ConfigType = "Container" )
const ( // ContainerImageBuildScriptArtifactType represents the image build script artifact type ContainerImageBuildScriptArtifactType transformertypes.ArtifactType = "ContainerImageBuildScript" )
const ( // ContainerImagesPushScriptArtifactType represents the image push script artifact type ContainerImagesPushScriptArtifactType transformertypes.ArtifactType = "ContainerImagesPushScript" )
const ( // ContainerizationOptionsConfigType represents containerization options config type ContainerizationOptionsConfigType transformertypes.ConfigType = "ContainerizationOptions" )
const DockerfileArtifactType transformertypes.ArtifactType = "Dockerfile"
DockerfileArtifactType represents the Dockerfile artifact type
const DockerfileForServiceArtifactType transformertypes.ArtifactType = "DockerfileForService"
DockerfileForServiceArtifactType represents the Dockerfile artifact type with service information for populating IR
const ( // DockerfileTemplateConfigConfigType stores the imagename for the dockerfile DockerfileTemplateConfigConfigType transformertypes.ConfigType = "DockerfileTemplateConfig" )
const ( // ImageNameConfigType stores the imagename ImageNameConfigType transformertypes.ConfigType = "ImageName" )
const NewImagesArtifactType transformertypes.ArtifactType = "NewImages"
NewImagesArtifactType represents New Image Artifact Type
const NewImagesConfigType transformertypes.ConfigType = "NewImages"
NewImagesConfigType represents New Image Config type
const ServiceArtifactType transformertypes.ArtifactType = "Service"
ServiceArtifactType stores the service artifact type name
const ServiceConfigType transformertypes.ConfigType = "Service"
ServiceConfigType stores service config type name
const ( // ServiceDirPathType points to the service context directory ServiceDirPathType transformertypes.PathType = "ServiceDirPath" )
const ( // SpringBootConfigType stores the springboot config SpringBootConfigType transformertypes.ConfigType = "SpringBoot" )
Variables ¶
var ( // ConfigTypes stores the various config types ConfigTypes map[string]reflect.Type )
Functions ¶
This section is empty.
Types ¶
type CloudFoundryConfig ¶
type CloudFoundryConfig struct { ServiceName string `yaml:"serviceName,omitempty"` ImageName string `yaml:"imageName,omitempty"` }
CloudFoundryConfig stores the configurations
type ContainerizationOptionsConfig ¶
type ContainerizationOptionsConfig []string
ContainerizationOptionsConfig stores the containerization options config
func (*ContainerizationOptionsConfig) Merge ¶
func (co *ContainerizationOptionsConfig) Merge(newcoobj interface{}) bool
Merge implements the Config interface allowing artifacts to be merged
type EarArtifactConfig ¶
type EarArtifactConfig struct { DeploymentFile string `yaml:"deploymentFile"` JavaVersion string `yaml:"javaVersion"` BuildContainerName string `yaml:"buildContainerName"` DeploymentFileDirInBuildContainer string `yaml:"deploymentFileDirInBuildContainer"` EnvVariables map[string]string `yaml:"envVariables"` }
EarArtifactConfig defines a EarArtifactConfig struct
type GradleConfig ¶
type GradleConfig struct { ArtifactType JavaPackaging `yaml:"artifactType" json:"artifactType"` AppName string `yaml:"appName" json:"appName"` GradleWPresent bool `yaml:"gradleWPresent" json:"gradleWPresent"` }
GradleConfig stores gradle related configuration information
func (*GradleConfig) Merge ¶
func (gc *GradleConfig) Merge(newgcobj interface{}) bool
Merge implements the Config interface allowing artifacts to be merged
type ImageName ¶
type ImageName struct {
ImageName string `yaml:"imageName" json:"imageName"`
}
ImageName is the struct storing the ImageName
type JarArtifactConfig ¶
type JarArtifactConfig struct { DeploymentFile string `yaml:"deploymentFile"` JavaVersion string `yaml:"javaVersion"` BuildContainerName string `yaml:"buildContainerName"` DeploymentFileDirInBuildContainer string `yaml:"deploymentFileDirInBuildContainer"` EnvVariables map[string]string `yaml:"envVariables"` Port int32 `yaml:"port"` }
JarArtifactConfig defines a JarArtifactConfig struct
type MavenConfig ¶
type MavenConfig struct { MavenAppName string `yaml:"mavenAppName,omitempty" json:"mavenAppName,omitempty"` ArtifactType JavaPackaging `yaml:"artifactType"` MavenProfiles []string `yaml:"mavenProfiles,omitempty" json:"mavenProfiles,omitempty"` MvnwPresent bool `yaml:"mvnwPresent" json:"mvnwPresent"` }
MavenConfig stores maven related configuration information
func (*MavenConfig) Merge ¶
func (mc *MavenConfig) Merge(newmcobj interface{}) bool
Merge implements the Config interface allowing artifacts to be merged
type NewImages ¶
type NewImages struct {
ImageNames []string `yaml:"imageNames" json:"imageNames"`
}
NewImages represents the strut having configuration about new images
type ServiceConfig ¶
type ServiceConfig struct {
ServiceName string `yaml:"serviceName"`
}
ServiceConfig stores config related to service
type SpringBootConfig ¶
type SpringBootConfig struct { SpringBootVersion string `yaml:"springBootVersion,omitempty" json:"springBootVersion,omitempty"` SpringBootAppName string `yaml:"springBootAppName,omitempty" json:"springBootAppName,omitempty"` SpringBootProfiles *[]string `yaml:"springBootProfiles,omitempty" json:"springBootProfiles,omitempty"` }
SpringBootConfig stores spring boot related configuration information
func (*SpringBootConfig) Merge ¶
func (sb *SpringBootConfig) Merge(newsbobj interface{}) bool
Merge implements the Config interface allowing artifacts to be merged
type VCAPService ¶
type VCAPService struct { ServiceName string `json:"name"` ServiceCredentials map[string]interface{} `json:"credentials"` }
VCAPService defines the VCAP service data from JSON
type WarArtifactConfig ¶
type WarArtifactConfig struct { DeploymentFile string `yaml:"deploymentFile"` JavaVersion string `yaml:"javaVersion"` BuildContainerName string `yaml:"buildContainerName"` DeploymentFileDirInBuildContainer string `yaml:"deploymentFileDirInBuildContainer"` EnvVariables map[string]string `yaml:"envVariables"` }
WarArtifactConfig defines a WarArtifactConfig struct