artifacts

package
v0.3.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	// ContainerBuildArtifactType represents the container build artifact type
	ContainerBuildArtifactType transformertypes.ArtifactType = "ContainerBuild"
	// BuildArtifactPathType defines the build artifact path
	BuildArtifactPathType transformertypes.PathType = "BuildArtifact"
)
View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
const (
	// GradleConfigType stores the gradle config
	GradleConfigType transformertypes.ConfigType = "Gradle"
	// GradleBuildFilePathType stores the Gradle Build File file Path
	GradleBuildFilePathType transformertypes.PathType = "GradleBuildFile"
)
View Source
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"
)
View Source
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"
)
View Source
const (
	// MavenConfigType stores the maven config
	MavenConfigType transformertypes.ConfigType = "Maven"
	// MavenPomPathType stores the Maven POM file Path
	MavenPomPathType transformertypes.PathType = "MavenPom"
)
View Source
const (
	// CloudFoundryConfigType represents the cloud foundry service configuration
	CloudFoundryConfigType transformertypes.ConfigType = "CloudFoundryService"
)
View Source
const (
	// ContainerConfigType represents container config type
	ContainerConfigType transformertypes.ConfigType = "Container"
)
View Source
const (
	// ContainerImageBuildScriptArtifactType represents the image build script artifact type
	ContainerImageBuildScriptArtifactType transformertypes.ArtifactType = "ContainerImageBuildScript"
)
View Source
const (
	// ContainerImagesPushScriptArtifactType represents the image push script artifact type
	ContainerImagesPushScriptArtifactType transformertypes.ArtifactType = "ContainerImagesPushScript"
)
View Source
const (
	// ContainerizationOptionsConfigType represents containerization options config type
	ContainerizationOptionsConfigType transformertypes.ConfigType = "ContainerizationOptions"
)
View Source
const DockerfileArtifactType transformertypes.ArtifactType = "Dockerfile"

DockerfileArtifactType represents the Dockerfile artifact type

View Source
const DockerfileForServiceArtifactType transformertypes.ArtifactType = "DockerfileForService"

DockerfileForServiceArtifactType represents the Dockerfile artifact type with service information for populating IR

View Source
const (
	// DockerfileTemplateConfigConfigType stores the imagename for the dockerfile
	DockerfileTemplateConfigConfigType transformertypes.ConfigType = "DockerfileTemplateConfig"
)
View Source
const (
	// ImageNameConfigType stores the imagename
	ImageNameConfigType transformertypes.ConfigType = "ImageName"
)
View Source
const NewImagesArtifactType transformertypes.ArtifactType = "NewImages"

NewImagesArtifactType represents New Image Artifact Type

View Source
const NewImagesConfigType transformertypes.ConfigType = "NewImages"

NewImagesConfigType represents New Image Config type

View Source
const ServiceArtifactType transformertypes.ArtifactType = "Service"

ServiceArtifactType stores the service artifact type name

View Source
const ServiceConfigType transformertypes.ConfigType = "Service"

ServiceConfigType stores service config type name

View Source
const (
	// ServiceDirPathType points to the service context directory
	ServiceDirPathType transformertypes.PathType = "ServiceDirPath"
)
View Source
const (
	// SpringBootConfigType stores the springboot config
	SpringBootConfigType transformertypes.ConfigType = "SpringBoot"
)

Variables

View Source
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"`
}

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 JavaPackaging

type JavaPackaging string

JavaPackaging represents JavaPackaging type

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"`
}

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

func (*NewImages) Merge

func (ni *NewImages) Merge(newniobj interface{}) bool

Merge implements the Config interface allowing artifacts to be merged

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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL