machinery

package
v0.5.3 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: 23 Imported by: 0

Documentation

Overview

Package machinery contains general-purpose utilities used for integrating functionality between multiple packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureStorageBackend

func ConfigureStorageBackend(ctx context.Context, cfg *v1beta1.StorageSpec) (storage.Backend, error)

func LoadAuthProviders

func LoadAuthProviders(ctx context.Context, objects meta.ObjectList)

func LoadDocuments

func LoadDocuments[T JsonDocument](documents []T) (meta.ObjectList, error)

func LoadPlugins

func LoadPlugins(loader *plugins.PluginLoader, conf v1beta1.PluginsSpec, reattach ...*plugin.ReattachConfig) int

func SetupNoauthServer

func SetupNoauthServer(
	ctx context.Context,
	lg logger.ExtendedSugaredLogger,
	ap *v1beta1.AuthProvider,
)

Types

type JsonDocument

type JsonDocument interface {
	GetJson() []byte
}

Jump to

Keyboard shortcuts

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