controllers

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2023 Layer5, 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 added in v0.2.1

func ErrCheckHealth(err error) error

func ErrCreateBroker added in v0.2.1

func ErrCreateBroker(err error) error

func ErrCreateMeshsync

func ErrCreateMeshsync(err error) error

func ErrDeleteBroker added in v0.2.1

func ErrDeleteBroker(err error) error

func ErrDeleteMeshsync added in v0.2.1

func ErrDeleteMeshsync(err error) error

func ErrGetBroker added in v0.2.1

func ErrGetBroker(err error) error

func ErrGetEndpoint added in v0.2.1

func ErrGetEndpoint(err error) error

func ErrGetMeshsync

func ErrGetMeshsync(err error) error

Error definitions

func ErrMarshal added in v0.6.14

func ErrMarshal(err error) error

func ErrReconcileBroker added in v0.2.1

func ErrReconcileBroker(err error) error

func ErrReconcileCR added in v0.2.1

func ErrReconcileCR(err error) error

func ErrReconcileMeshsync added in v0.2.1

func ErrReconcileMeshsync(err error) error

func ErrUpdateResource added in v0.2.4

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 added in v0.2.19

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 added in v0.2.19

func (r *MeshSyncReconciler) Cleanup() error

func (*MeshSyncReconciler) Reconcile

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

+kubebuilder:rbac:groups=meshery.layer5.io,resources=meshsyncs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=meshery.layer5.io,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