config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RuntimeBaseConfig baseConfig

Functions

func GetAndWriteConfigFile added in v1.2.0

func GetAndWriteConfigFile(ctx context.Context, configFileName string, assetName string) error

func GetConfigFile added in v1.2.0

func GetConfigFile(ctx context.Context, configID string, assetName string) (string, error)

func ParseAttestationConfig

func ParseAttestationConfig()

func ParseBaseConfig

func ParseBaseConfig(runningCMD string)

func ParseInTotoConfig

func ParseInTotoConfig()

func SetXAssetHeaders

func SetXAssetHeaders(req *http.Request)

func StoreTokenInKeyring

func StoreTokenInKeyring(assetName, token string) error

Types

type AttestationConfig

type AttestationConfig struct {
	PredicateType string `mapstructure:"predicateType"`
}
var RuntimeAttestationConfig AttestationConfig

type InTotoConfig

type InTotoConfig struct {
	Step      string   `mapstructure:"step"`
	Materials []string `mapstructure:"materials"`
	Products  []string `mapstructure:"products"`
	Ignore    []string `mapstructure:"ignore"`

	SupplyChainID          string `mapstructure:"supplyChainId"`
	GenerateSlsaProvenance bool   `mapstructure:"generateSlsaProvenance"`

	LayoutKeyPath string `mapstructure:"layoutKey"`

	Key       toto.Key
	LayoutKey toto.Key

	Disabled bool
}
var RuntimeInTotoConfig InTotoConfig

Jump to

Keyboard shortcuts

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