machinery

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 25 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 BuildTrustStrategy added in v0.6.0

func BuildTrustStrategy(kind v1beta1.TrustStrategyKind, kr keyring.Keyring) (trust.Strategy, error)

func ConfigureAgentUpgrader added in v0.11.0

func ConfigureAgentUpgrader(cfg *v1beta1.AgentUpgradeSpec, lg *zap.SugaredLogger) (update.SyncHandler, error)

func ConfigureOCIFetcher added in v0.11.0

func ConfigureOCIFetcher(providerType string, args ...any) (oci.Fetcher, error)

func ConfigurePluginUpgrader added in v0.11.0

func ConfigurePluginUpgrader(cfg v1beta1.PluginUpgradeSpec, pluginDir string, lg *zap.SugaredLogger) (update.SyncHandler, error)

func ConfigureStorageBackend

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

func LoadAuthProviders

func LoadAuthProviders(ctx context.Context, objects meta.ObjectList) map[string]auth.Middleware

func LoadDocuments

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

func LoadEphemeralKeys added in v0.8.2

func LoadEphemeralKeys(fsys afero.Afero, dirs ...string) ([]*keyring.EphemeralKey, error)

func NewNoauthServer added in v0.6.0

func NewNoauthServer(
	ctx context.Context,
	ap *v1beta1.AuthProvider,
) *noauth.Server

Types

type JsonDocument

type JsonDocument interface {
	GetJson() []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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