bastion_controller

package
v0.0.0-...-2e8aeb9 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package bastion_controller groups the functionalities related to the Bastion controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizedKeysEntry

type AuthorizedKeysEntry struct {
	Algo, Key, ID string
}

AuthorizedKeysEntry is a structure containing the three different fields of an entry of the .ssh/authorized_keys file.

func Create

func Create(entry, id string) (AuthorizedKeysEntry, error)

Create converts a string and an id into an AuthorizedKeysEntry object.

func Decompose

func Decompose(entry string) (AuthorizedKeysEntry, error)

Decompose converts a string into an AuthorizedKeysEntry object.

func (*AuthorizedKeysEntry) Compose

func (e *AuthorizedKeysEntry) Compose() string

Compose an AuthorizedKeysEntry object into a string.

type BastionReconciler

type BastionReconciler struct {
	client.Client
	Scheme             *runtime.Scheme
	AuthorizedKeysPath string

	// This function, if configured, is deferred at the beginning of the Reconcile.
	// Specifically, it is meant to be set to GinkgoRecover during the tests,
	// in order to lead to a controlled failure in case the Reconcile panics.
	ReconcileDeferHook func()
}

BastionReconciler reconciles a Bastion object.

func (*BastionReconciler) Reconcile

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

Reconcile reconciles the SSH keys of a Tenant resource.

func (*BastionReconciler) SetupWithManager

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

SetupWithManager registers a new controller for Tenant resources.

Jump to

Keyboard shortcuts

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