policytemplates

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server     string
	PolicyRoot string
}

type PolicyTemplates

type PolicyTemplates interface {
	ListRepos(org, tag string) (map[string]*api.RegistryRepoTag, error)
	Load(userRef string) (fs.FS, error)
}

func NewOCI

func NewOCI(ctx context.Context, log *zerolog.Logger, httpTransport *http.Transport, cfg Config) PolicyTemplates

NewOCI returns a new policy template provider for OCI

Jump to

Keyboard shortcuts

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