cpi

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHandlers

func GetHandlers() map[ConfigType]Handler

func RegisterHandler

func RegisterHandler(h Handler)

Types

type ConfigType

type ConfigType string
const (
	ContainerRegistry ConfigType = "container_registry"
)

type Credential

type Credential interface {
	Name() string
	ConsumerIdentity() cpi.ConsumerIdentity
	Properties() cpi.Credentials
}

type Handler

type Handler interface {
	ConfigType() ConfigType
	ParseConfig(io.Reader) ([]Credential, error)
}

func GetHandler

func GetHandler(configType ConfigType) Handler

Jump to

Keyboard shortcuts

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