controllers

package
v0.0.0-...-8de3194 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIManagerReconciler

type APIManagerReconciler struct {
	client.Client
	*rest.Config
	APIExportName   string
	SPWorkspacePath string
	ChartPath       string
	// contains filtered or unexported fields
}

APIManagerReconciler reconciles a APIManager object

func (*APIManagerReconciler) Reconcile

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

Reconcile creates/updates apibidings in users workspaces.

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

func (*APIManagerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type TempAPIBinding

type TempAPIBinding struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name string `yaml:"name"`
	} `yaml:"metadata"`
	Spec struct {
		Reference struct {
			Workspace struct {
				Path       string `yaml:"path"`
				ExportName string `yaml:"exportName"`
			} `yaml:"workspace"`
		} `yaml:"reference"`
	} `yaml:"spec"`
}

TempAPIBinding maps the template of an APIBinding to Go structs.

Jump to

Keyboard shortcuts

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