Documentation ¶
Index ¶
- func ReadApplicationManifest(path string, serviceName string, ...) ([]manifest.Application, []string, error)
- func Translate(p plantypes.Plan) (irtypes.IR, error)
- type Any2KubeTranslator
- type CfManifestTranslator
- func (c CfManifestTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
- func (c CfManifestTranslator) GetTranslatorType() plantypes.TranslationTypeValue
- func (c CfManifestTranslator) Translate(services []plantypes.Service, p plantypes.Plan) (irtypes.IR, error)
- type ComposeTranslator
- type DockerfileTranslator
- func (c DockerfileTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
- func (c DockerfileTranslator) GetTranslatorType() plantypes.TranslationTypeValue
- func (c DockerfileTranslator) Translate(services []plantypes.Service, p plantypes.Plan) (irtypes.IR, error)
- type KnativeTranslator
- type KubeTranslator
- type Translator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadApplicationManifest ¶
func ReadApplicationManifest(path string, serviceName string, artifactType plantypes.TargetArtifactTypeValue) ([]manifest.Application, []string, error)
ReadApplicationManifest reads an application manifest
Types ¶
type Any2KubeTranslator ¶
type Any2KubeTranslator struct { }
Any2KubeTranslator implements Translator interface for loading any source folder that can be containerized
func (Any2KubeTranslator) GetServiceOptions ¶
func (c Any2KubeTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
GetServiceOptions - output a plan based on the input directory contents
func (Any2KubeTranslator) GetTranslatorType ¶
func (c Any2KubeTranslator) GetTranslatorType() plantypes.TranslationTypeValue
GetTranslatorType returns translator type
type CfManifestTranslator ¶
type CfManifestTranslator struct { }
CfManifestTranslator implements Translator interface for CfManifest files
func (CfManifestTranslator) GetServiceOptions ¶
func (c CfManifestTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
GetServiceOptions - output a plan based on the input directory contents
func (CfManifestTranslator) GetTranslatorType ¶
func (c CfManifestTranslator) GetTranslatorType() plantypes.TranslationTypeValue
GetTranslatorType returns the translator type
type ComposeTranslator ¶
type ComposeTranslator struct { }
ComposeTranslator implements Translator interface
func (ComposeTranslator) GetServiceOptions ¶
func (c ComposeTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
GetServiceOptions returns the service options for inputPath
func (ComposeTranslator) GetTranslatorType ¶
func (c ComposeTranslator) GetTranslatorType() plantypes.TranslationTypeValue
GetTranslatorType returns the translator type
type DockerfileTranslator ¶
type DockerfileTranslator struct { }
DockerfileTranslator implements Translator interface for using preexisting dockerfiles
func (DockerfileTranslator) GetServiceOptions ¶
func (c DockerfileTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
GetServiceOptions - output a plan based on the input directory contents
func (DockerfileTranslator) GetTranslatorType ¶
func (c DockerfileTranslator) GetTranslatorType() plantypes.TranslationTypeValue
GetTranslatorType returns translator type
type KnativeTranslator ¶
type KnativeTranslator struct { }
KnativeTranslator implements Translator interface
func (KnativeTranslator) GetServiceOptions ¶
func (c KnativeTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
GetServiceOptions returns the service options for the inputPath
func (KnativeTranslator) GetTranslatorType ¶
func (c KnativeTranslator) GetTranslatorType() plantypes.TranslationTypeValue
GetTranslatorType returns the translator type
type KubeTranslator ¶
type KubeTranslator struct { }
KubeTranslator implements Translator interface
func (KubeTranslator) GetServiceOptions ¶
func (c KubeTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
GetServiceOptions returns the possible service options for the inputPath
func (KubeTranslator) GetTranslatorType ¶
func (c KubeTranslator) GetTranslatorType() plantypes.TranslationTypeValue
GetTranslatorType returns the translator type
type Translator ¶
type Translator interface { GetTranslatorType() plantypes.TranslationTypeValue GetServiceOptions(inputPath string, p plantypes.Plan) ([]plantypes.Service, error) Translate(services []plantypes.Service, p plantypes.Plan) (irtypes.IR, error) // contains filtered or unexported methods }
Translator interface defines loader that translates files and converts it to ir representation
func GetSourceLoaders ¶
func GetSourceLoaders() []Translator
GetSourceLoaders returns loader for given format