store

package
v2.0.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts []NewOptions, globalScopes []string) (ratify.Store, error)

New creates a new ratify.StoreMux instance where each store is registered for its respective scopes.

func Register

func Register(storeType string, create func(NewOptions) (ratify.Store, error))

Register registers a store factory to the system.

Types

type NewOptions

type NewOptions struct {
	// Type represents a specific implementation of a store. Required.
	Type string `json:"type"`

	// Scopes defines the scopes for the store. Optional.
	Scopes []string `json:"scopes,omitempty"`

	// Parameters is additional parameters for the store. Optional.
	Parameters any `json:"parameters,omitempty"`
}

NewOptions defines the options for creating a new ratify.Store.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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