Documentation ¶
Index ¶
- func GetAllTranslatorTypes() []string
- func ReadApplicationManifest(path string, serviceName string) ([]manifest.Application, []string, error)
- func Translate(p plantypes.Plan) (irtypes.IR, error)
- type Any2KubeTranslator
- func (any2KubeTranslator *Any2KubeTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
- func (*Any2KubeTranslator) GetTranslatorType() plantypes.TranslationTypeValue
- func (any2KubeTranslator *Any2KubeTranslator) Translate(services []plantypes.Service, plan plantypes.Plan) (irtypes.IR, error)
- type CfManifestTranslator
- func (cfManifestTranslator *CfManifestTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
- func (*CfManifestTranslator) GetTranslatorType() plantypes.TranslationTypeValue
- func (cfManifestTranslator *CfManifestTranslator) Translate(services []plantypes.Service, plan plantypes.Plan) (irtypes.IR, error)
- type ComposeTranslator
- func (c *ComposeTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
- func (c *ComposeTranslator) GetTranslatorType() plantypes.TranslationTypeValue
- func (c *ComposeTranslator) Translate(services []plantypes.Service, plan plantypes.Plan) (irtypes.IR, error)
- type DockerfileTranslator
- func (dockerfileTranslator *DockerfileTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
- func (dockerfileTranslator *DockerfileTranslator) GetTranslatorType() plantypes.TranslationTypeValue
- func (dockerfileTranslator *DockerfileTranslator) Translate(services []plantypes.Service, plan plantypes.Plan) (irtypes.IR, error)
- type Translator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllTranslatorTypes ¶ added in v0.2.0
func GetAllTranslatorTypes() []string
GetAllTranslatorTypes returns all translator types
func ReadApplicationManifest ¶
func ReadApplicationManifest(path string, serviceName string) ([]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 (any2KubeTranslator *Any2KubeTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
GetServiceOptions - output a plan based on the input directory contents
func (*Any2KubeTranslator) GetTranslatorType ¶
func (*Any2KubeTranslator) GetTranslatorType() plantypes.TranslationTypeValue
GetTranslatorType returns translator type
type CfManifestTranslator ¶
type CfManifestTranslator struct { }
CfManifestTranslator implements Translator interface for CfManifest files
func (*CfManifestTranslator) GetServiceOptions ¶
func (cfManifestTranslator *CfManifestTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
GetServiceOptions - output a plan based on the input directory contents
func (*CfManifestTranslator) GetTranslatorType ¶
func (*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 (dockerfileTranslator *DockerfileTranslator) GetServiceOptions(inputPath string, plan plantypes.Plan) ([]plantypes.Service, error)
GetServiceOptions - output a plan based on the input directory contents
func (*DockerfileTranslator) GetTranslatorType ¶
func (dockerfileTranslator *DockerfileTranslator) GetTranslatorType() plantypes.TranslationTypeValue
GetTranslatorType returns 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 translator that translates files and converts it to ir representation
func GetTranslators ¶ added in v0.2.0
func GetTranslators() []Translator
GetTranslators returns translator for given format