controllers

package
v0.0.0-...-c8bc4d7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright 2023 KhulnaSoft, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	ErrGetMeshsyncCode       = "1001"
	ErrCreateMeshsyncCode    = "1002"
	ErrReconcileMeshsyncCode = "1003"
	ErrGetBrokerCode         = "1004"
	ErrCreateBrokerCode      = "1005"
	ErrReconcileBrokerCode   = "1006"
	ErrReconcileCRCode       = "1007"
	ErrDeleteMeshsyncCode    = "1008"
	ErrDeleteBrokerCode      = "1009"
	ErrCheckHealthCode       = "1010"
	ErrGetEndpointCode       = "1011"
	ErrUpdateResourceCode    = "1012"
	ErrMarshalCode           = "11049"
)

Error codes @Aisuko Is there any way to make this more flexible?

Variables

This section is empty.

Functions

func ErrCheckHealth

func ErrCheckHealth(err error) error

func ErrCreateBroker

func ErrCreateBroker(err error) error

func ErrCreateMeshsync

func ErrCreateMeshsync(err error) error

func ErrDeleteBroker

func ErrDeleteBroker(err error) error

func ErrDeleteMeshsync

func ErrDeleteMeshsync(err error) error

func ErrGetBroker

func ErrGetBroker(err error) error

func ErrGetEndpoint

func ErrGetEndpoint(err error) error

func ErrGetMeshsync

func ErrGetMeshsync(err error) error

Error definitions

func ErrMarshal

func ErrMarshal(err error) error

func ErrReconcileBroker

func ErrReconcileBroker(err error) error

func ErrReconcileCR

func ErrReconcileCR(err error) error

func ErrReconcileMeshsync

func ErrReconcileMeshsync(err error) error

func ErrUpdateResource

func ErrUpdateResource(err error) error

Types

type BrokerReconciler

type BrokerReconciler struct {
	client.Client
	KubeConfig *rest.Config
	Clientset  *kubernetes.Clientset
	Log        logr.Logger
	Scheme     *runtime.Scheme
}

BrokerReconciler reconciles a Broker object

func (*BrokerReconciler) Cleanup

func (r *BrokerReconciler) Cleanup() error

func (*BrokerReconciler) Reconcile

func (r *BrokerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*BrokerReconciler) SetupWithManager

func (r *BrokerReconciler) SetupWithManager(mgr ctrl.Manager) error

type MeshSyncReconciler

type MeshSyncReconciler struct {
	client.Client
	KubeConfig *rest.Config
	Clientset  *kubernetes.Clientset
	Log        logr.Logger
	Scheme     *runtime.Scheme
}

MeshSyncReconciler reconciles a MeshSync object

func (*MeshSyncReconciler) Cleanup

func (r *MeshSyncReconciler) Cleanup() error

func (*MeshSyncReconciler) Reconcile

func (r *MeshSyncReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=meshplay.khulnasoft.com,resources=meshsyncs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=meshplay.khulnasoft.com,resources=meshsyncs/status,verbs=get;update;patch

func (*MeshSyncReconciler) SetupWithManager

func (r *MeshSyncReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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