options

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCompileOptions = CompileOptions{
	ParseOptions: DefaultParseOptions,
}
View Source
var DefaultParseOptions = ParseOptions{
	VerificationOptions: DefaultVerificationOptions,
	VerifySignatures:    true,
}
View Source
var DefaultSignerOptions = SignerOptions{}
View Source
var DefaultVerificationOptions = VerificationOptions{}
View Source
var ErrUnsupportedOptionsType = errors.New("unsupported options type")

Functions

This section is empty.

Types

type CompileOptions added in v0.2.0

type CompileOptions struct {
	ParseOptions
}

type OptFn added in v0.2.0

type OptFn func(Options) error

func WithIdentityString added in v0.2.0

func WithIdentityString(istrings ...string) OptFn

func WithParseOptions added in v0.2.0

func WithParseOptions(newopts *ParseOptions) OptFn

WithParseOptions replaces all parse options with a new set

func WithPublicKey added in v0.2.0

func WithPublicKey(keys ...key.PublicKeyProvider) OptFn

func WithVerifySignatures added in v0.2.0

func WithVerifySignatures(doVerify bool) OptFn

WithVerifySignatures controls is policy signatures are verified when parsed

type Options added in v0.2.0

type Options any

type ParseOptions added in v0.2.0

type ParseOptions struct {
	VerificationOptions
	VerifySignatures bool
}

ParseOptions control how the parses processes data

type SignerOptFn

type SignerOptFn func(*SignerOptions)

type SignerOptions

type SignerOptions struct{}

type VerificationOptions added in v0.2.0

type VerificationOptions struct {
	PublicKeys      []key.PublicKeyProvider
	IdentityStrings []string
}

Jump to

Keyboard shortcuts

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