Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStoreConfig

func CreateStoreConfig(raw []byte, name string, source *configv1beta1.PluginSource) (rc.StorePluginConfig, error)

Returns a store reference from spec

func GetVerifierType

func GetVerifierType(verifierSpec interface{}) string

GetVerifierType returns verifier type and is backward compatible with the deprecated name field

func SpecToKeyManagementProvider

func SpecToKeyManagementProvider(raw []byte, keyManagamentSystemName, resource string) (kmp.KeyManagementProvider, error)

SpecToKeyManagementProvider creates KeyManagementProvider from KeyManagementProviderSpec config

func SpecToPolicyEnforcer

func SpecToPolicyEnforcer(raw []byte, policyType string) (policyprovider.PolicyProvider, error)

func SpecToVerifierConfig

func SpecToVerifierConfig(raw []byte, verifierName, verifierType, artifactTypes string, source *configv1beta1.PluginSource) (vc.VerifierConfig, error)

SpecToVerifierConfig returns a VerifierConfig from VerifierSpec

func UpsertStoreMap

func UpsertStoreMap(version, address, fullname, namespace string, storeConfig rc.StorePluginConfig) error

func UpsertVerifier

func UpsertVerifier(version, address, namespace, objectName string, verifierConfig vc.VerifierConfig) error

UpsertVerifier creates and adds a new verifier based on the provided configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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