Documentation
¶
Index ¶
- Constants
- func CleanContainerImage(image string) string
- func NewInt32(val int32) *int32
- func NewInt64(val int64) *int64
- type Cart
- type Customer
- type Email
- type Etcd
- type FinalizableDeployment
- type FinalizableService
- type GatewayAdmin
- type GatewayAdminIngress
- type GatewayAdminService
- type GatewayClient
- type GatewayClientIngress
- type GatewayClientService
- type Inventory
- type K8sCommerceReconciler
- type MicroserviceDeployment
- type OthersBought
- type Payment
- type Product
- type ReconcilableDeployment
- type Shipping
- type SimilarProducts
- type Store
- type User
- type Warehouse
Constants ¶
const (
EtcdImage = "quay.io/coreos/etcd:latest"
)
Variables ¶
This section is empty.
Functions ¶
func CleanContainerImage ¶
CleanContainerImage removes beginning http:// or https://
Types ¶
type Cart ¶
type Cart interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
Cart interface.
type Customer ¶
type Customer interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
Customer interface.
type Email ¶
type Email interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
Email interface.
type Etcd ¶
type Etcd interface { CreateClientService(cr *cachev1alpha1.K8sCommerce) *corev1.Service CreateHeadlessService(cr *cachev1alpha1.K8sCommerce) *corev1.Service CreatePodService(cr *cachev1alpha1.K8sCommerce, id int32) *corev1.Service CreatePod(cr *cachev1alpha1.K8sCommerce, id int32) *corev1.Pod }
Etcd interface.
type FinalizableDeployment ¶
type FinalizableDeployment interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
type FinalizableService ¶
type FinalizableService interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
type GatewayAdmin ¶
type GatewayAdmin interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
GatewayAdmin interface.
func NewGatewayAdmin ¶
func NewGatewayAdmin() GatewayAdmin
NewGatewayAdmin creates a new gatewayAdmin.
type GatewayAdminIngress ¶
type GatewayAdminIngress interface {
Create(cr *cachev1alpha1.K8sCommerce) *networking.Ingress
}
GatewayAdminIngress interface used to create the kubernetes ingress.
func NewGatewayAdminIngress ¶
func NewGatewayAdminIngress() GatewayAdminIngress
NewIngress instantiates an real implementation of the interface.
type GatewayAdminService ¶
type GatewayAdminService interface {
Create(cr *cachev1alpha1.K8sCommerce) *corev1.Service
}
GatewayAdminService interface.
func NewGatewayAdminService ¶
func NewGatewayAdminService() GatewayAdminService
NewGatewayAdminService creates a real implementation of the Service interface.
type GatewayClient ¶
type GatewayClient interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
GatewayClient interface.
func NewGatewayClient ¶
func NewGatewayClient() GatewayClient
NewGatewayClient creates a new gatewayClient.
type GatewayClientIngress ¶
type GatewayClientIngress interface {
Create(cr *cachev1alpha1.K8sCommerce) *networking.Ingress
}
GatewayClientIngress interface used to create the kubernetes ingress.
func NewGatewayClientIngress ¶
func NewGatewayClientIngress() GatewayClientIngress
NewIngress instantiates an real implementation of the interface.
type GatewayClientService ¶
type GatewayClientService interface {
Create(cr *cachev1alpha1.K8sCommerce) *corev1.Service
}
GatewayClientService interface.
func NewGatewayClientService ¶
func NewGatewayClientService() GatewayClientService
NewGatewayClientService creates a real implementation of the Service interface.
type Inventory ¶
type Inventory interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
Inventory interface.
type K8sCommerceReconciler ¶
K8sCommerceReconciler reconciles a K8sCommerce object
func (*K8sCommerceReconciler) Reconcile ¶
func (r *K8sCommerceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile
func (*K8sCommerceReconciler) SetupWithManager ¶
func (r *K8sCommerceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type MicroserviceDeployment ¶
type MicroserviceDeployment interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
func NewMicroserviceDeployment ¶
func NewMicroserviceDeployment(ms *cachev1alpha1.MicroService) MicroserviceDeployment
type OthersBought ¶
type OthersBought interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
OthersBought interface.
func NewOthersBought ¶
func NewOthersBought() OthersBought
NewOthersBought creates a new othersBought.
type Payment ¶
type Payment interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
Payment interface.
type Product ¶
type Product interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
Product interface.
type ReconcilableDeployment ¶
type ReconcilableDeployment interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
reconcilers
type Shipping ¶
type Shipping interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
Shipping interface.
type SimilarProducts ¶
type SimilarProducts interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
SimilarProducts interface.
func NewSimilarProducts ¶
func NewSimilarProducts() SimilarProducts
NewSimilarProducts creates a new similarProducts.
type Store ¶
type Store interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
Store interface.
type User ¶
type User interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
User interface.
type Warehouse ¶
type Warehouse interface {
Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}
Warehouse interface.
Source Files
¶
- cart.go
- commerce.go
- customer.go
- deployments.go
- email.go
- etcd.go
- finalizers.go
- gatewayadmin.go
- gatewayadminingress.go
- gatewayadminservice.go
- gatewayclient.go
- gatewayclientingress.go
- gatewayclientservice.go
- interface.go
- inventory.go
- namespace.go
- othersbought.go
- payment.go
- product.go
- reconcilers.go
- shipping.go
- similarproducts.go
- store.go
- user.go
- warehouse.go