Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CICDTransformer ¶
type CICDTransformer struct {
// contains filtered or unexported fields
}
CICDTransformer creates the necessary tekton artifacts needed for CI/CD.
func (*CICDTransformer) Transform ¶
func (cicd *CICDTransformer) Transform(ir irtypes.IR) error
Transform creates tekton resources needed for CI/CD
func (*CICDTransformer) WriteObjects ¶
func (cicd *CICDTransformer) WriteObjects(outDirectory string) error
WriteObjects writes the CI/CD artifacts to files
type ComposeTransformer ¶
ComposeTransformer implements Transformer interface
func (*ComposeTransformer) Transform ¶
func (kt *ComposeTransformer) Transform(ir irtypes.IR) error
Transform translates intermediate representation to destination objects
func (*ComposeTransformer) WriteObjects ¶
func (kt *ComposeTransformer) WriteObjects(outpath string) error
WriteObjects writes Transformed objects to filesystem
type K8sTransformer ¶
type K8sTransformer struct { RootDir string TransformedObjects []runtime.Object Containers []irtypes.Container Values outputtypes.HelmValues TargetClusterSpec collecttypes.ClusterMetadataSpec Helm bool Name string IgnoreUnsupportedKinds bool ServicePaths map[string]string // TODO: fix copysources.sh for move2kube-ui and remove this AddCopySourcesWarning bool }
K8sTransformer implements Transformer interface
func NewK8sTransformer ¶
func NewK8sTransformer() *K8sTransformer
NewK8sTransformer creates a new instance of K8sTransformer
func (*K8sTransformer) Transform ¶
func (kt *K8sTransformer) Transform(ir irtypes.IR) error
Transform translates intermediate representation to destination objects
func (*K8sTransformer) WriteObjects ¶
func (kt *K8sTransformer) WriteObjects(outpath string) error
WriteObjects writes Transformed objects to filesystem
type KnativeTransformer ¶
type KnativeTransformer struct { RootDir string TransformedObjects []runtime.Object Containers []irtypes.Container Values outputtypes.HelmValues TargetClusterSpec collecttypes.ClusterMetadataSpec Name string IgnoreUnsupportedKinds bool }
KnativeTransformer implements Transformer interface
func (*KnativeTransformer) Transform ¶
func (kt *KnativeTransformer) Transform(ir irtypes.IR) error
Transform translates intermediate representation to destination objects
func (*KnativeTransformer) WriteObjects ¶
func (kt *KnativeTransformer) WriteObjects(outpath string) error
WriteObjects writes Transformed objects to filesystem
type Transformer ¶
type Transformer interface { // Transform translates intermediate representation to destination objects Transform(ir irtypes.IR) error // WriteObjects writes Transformed objects to filesystem WriteObjects(outDirectory string) error }
Transformer translates intermediate representation to destination artifacts
func GetTransformer ¶
func GetTransformer(ir irtypes.IR) Transformer
GetTransformer returns a transformer that is suitable for an IR