machinery

package
v0.9.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 26 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 BuildKeyringStoreBroker added in v0.6.0

func BuildKeyringStoreBroker(ctx context.Context, conf v1beta1.StorageSpec) (storage.KeyringStoreBroker, error)

func BuildTrustStrategy added in v0.6.0

func BuildTrustStrategy(kind v1beta1.TrustStrategyKind, kr keyring.Keyring) (trust.Strategy, 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