controllers

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHash added in v0.0.2

func ComputeHash(obj interface{}) string

ComputeHash computes hash value of a interface

func PathExists

func PathExists(path string) (bool, error)

PathExists checks if the target path exist or not

Types

type ErrorSlice

type ErrorSlice []error

ErrorSlice is a collection of errors

func (ErrorSlice) String

func (e ErrorSlice) String() (result string)

String returns a readable string

func (ErrorSlice) ToError

func (e ErrorSlice) ToError() error

ToError turns to an error object

type ReleaserReconciler

type ReleaserReconciler struct {
	client.Client
	GitCacheDir string
	// contains filtered or unexported fields
}

ReleaserReconciler reconciles a Releaser object

func (*ReleaserReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. the Releaser object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*ReleaserReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type StatusController added in v0.0.14

type StatusController struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

StatusController is responsible for reporting errors to git provider

func (*StatusController) Reconcile added in v0.0.14

func (c *StatusController) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile responsible for reporting the error status of a releaser

func (*StatusController) SetupWithManager added in v0.0.14

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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