Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { ContainerBuildType plantypes.ContainerBuildTypeValue RepoInfo plantypes.RepoInfo ImageNames []string New bool NewFiles map[string]string //[filename][filecontents] ExposedPorts []int UserID int AccessedDirs []string }
Container defines structure of a container
func NewContainer ¶
func NewContainer(containerBuildType plantypes.ContainerBuildTypeValue, imagename string, new bool) Container
NewContainer creates a new container
func NewContainerFromImageInfo ¶
func NewContainerFromImageInfo(i collecttypes.ImageInfo) Container
NewContainerFromImageInfo creates a new container from image info
func (*Container) AddAccessedDirs ¶
AddAccessedDirs adds accessed directories to container
func (*Container) AddExposedPort ¶
AddExposedPort adds an exposed port to a container
func (*Container) AddImageName ¶
AddImageName adds image name to a container
type IR ¶
type IR struct { RootDir string Name string Services map[string]Service Storages []Storage Containers []Container Roles []Role RoleBindings []RoleBinding ServiceAccounts []ServiceAccount Kubernetes plan.KubernetesOutput TargetClusterSpec collecttypes.ClusterMetadataSpec CachedObjects []runtime.Object Values outputtypes.HelmValues IngressTLSSecretName string TektonResources tekton.Resources // AddCopySourcesWarning adds a warning to the README // that copysources may not work correctly when using the UI for translation. // TODO: fix copysources.sh for move2kube-ui and remove this. AddCopySourcesWarning bool }
IR is the intermediate representation
func (*IR) AddContainer ¶
AddContainer adds a conatainer to IR
func (*IR) GetContainer ¶
GetContainer returns container which has the imagename
func (*IR) IsIngressTLSEnabled ¶
IsIngressTLSEnabled checks if TLS is enabled for the ingress.
type PolicyRule ¶
PolicyRule holds the details about the policy rules for the service account resources
type Role ¶
type Role struct { Name string PolicyRules []PolicyRule }
Role holds the details about the role resource
type RoleBinding ¶
RoleBinding holds the details about the role binding resource
type Service ¶
type Service struct { corev1.PodSpec Name string BackendServiceName string // Optional field when ingress name is not the same as backend service name Annotations map[string]string Labels map[string]string Replicas int Networks []string ServiceRelPath string //Ingress fan-out path OnlyIngress bool Daemon bool //Gets converted to DaemonSet }
Service defines structure of an IR service
func NewServiceFromPlanService ¶
NewServiceFromPlanService initializes a service with just the plan object parameters.
func NewServiceWithName ¶
NewServiceWithName initializes a service with just the name.
func (*Service) HasValidAnnotation ¶
HasValidAnnotation returns if an annotation is set for the service
type ServiceAccount ¶
ServiceAccount holds the details about the service account resource
type Storage ¶
type Storage struct { Name string Annotations map[string]string // Optional field to store arbitrary metadata corev1.PersistentVolumeClaimSpec //This promotion contains the volumeName which is used by configmap, secrets and pvc. StorageType StorageKindType //Type of storage cfgmap, secret, pvc SecretType corev1.SecretType // Optional field to store the type of secret data Content map[string][]byte //Optional field meant to store content for cfgmap or secret StringData map[string]string //Optional field to store string content for cfmap or secret }
Storage defines structure of a storage
type StorageKindType ¶
type StorageKindType string
StorageKindType defines storage type kind
const ( // SecretKind defines storage type of Secret SecretKind StorageKindType = "Secret" // ConfigMapKind defines storage type of ConfigMap ConfigMapKind StorageKindType = "ConfigMap" // PVCKind defines storage type of PersistentVolumeClaim PVCKind StorageKindType = "PersistentVolumeClaim" // PullSecretKind defines storage type of pull secret PullSecretKind StorageKindType = "PullSecret" )