commerce

package
v0.0.0-...-b3d719d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2022 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EtcdImage = "quay.io/coreos/etcd:latest"
)

Variables

This section is empty.

Functions

func CleanContainerImage

func CleanContainerImage(image string) string

CleanContainerImage removes beginning http:// or https://

func NewInt32

func NewInt32(val int32) *int32

NewInt32 converts int32 to a pointer.

func NewInt64

func NewInt64(val int64) *int64

NewInt64 converts int64 to a pointer.

Types

type Cart

type Cart interface {
	Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}

Cart interface.

func NewCart

func NewCart() Cart

NewCart creates a new cart.

type Customer

type Customer interface {
	Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}

Customer interface.

func NewCustomer

func NewCustomer() Customer

NewCustomer creates a new customer.

type Email

type Email interface {
	Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}

Email interface.

func NewEmail

func NewEmail() Email

NewEmail creates a new email.

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.

func NewEtcd

func NewEtcd() Etcd

NewEtcd creates a new etcd.

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.

func NewInventory

func NewInventory() Inventory

NewInventory creates a new inventory.

type K8sCommerceReconciler

type K8sCommerceReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
}

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
}

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.

func NewPayment

func NewPayment() Payment

NewPayment creates a new payment.

type Product

type Product interface {
	Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}

Product interface.

func NewProduct

func NewProduct() Product

NewProduct creates a new product.

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.

func NewShipping

func NewShipping() Shipping

NewShipping creates a new shipping.

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.

func NewStore

func NewStore() Store

NewStore creates a new store.

type User

type User interface {
	Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}

User interface.

func NewUser

func NewUser() User

NewUser creates a new user.

type Warehouse

type Warehouse interface {
	Create(cr *cachev1alpha1.K8sCommerce) *appsv1.Deployment
}

Warehouse interface.

func NewWarehouse

func NewWarehouse() Warehouse

NewWarehouse creates a new warehouse.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL