validation

package
v0.20.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *options)

func UseAuthProvider

func UseAuthProvider(authProvider authn.Authenticator) Option

func WithInsecure added in v0.13.0

func WithInsecure(insecure bool) Option

func WithTLSVerificationSkip added in v0.13.0

func WithTLSVerificationSkip(skipVerifyTLS bool) Option

type RegistryReadAccessValidator

type RegistryReadAccessValidator interface {
	ValidateReadAccessForImage(ctx context.Context, imageTag string, opts ...Option) error
}

type RegistryTagsListingAccessValidator added in v0.13.0

type RegistryTagsListingAccessValidator interface {
	ValidateListAccessForRepo(ctx context.Context, repo string, opts ...Option) error
}

type RegistryWriteAccessValidator

type RegistryWriteAccessValidator interface {
	ValidateWriteAccessForRepo(ctx context.Context, repo string, opts ...Option) error
}

type RemoteRegistryAccessValidator

type RemoteRegistryAccessValidator struct{}

func NewRemoteRegistryAccessValidator

func NewRemoteRegistryAccessValidator() *RemoteRegistryAccessValidator

func (*RemoteRegistryAccessValidator) ValidateListAccessForRepo added in v0.13.0

func (v *RemoteRegistryAccessValidator) ValidateListAccessForRepo(ctx context.Context, repo string, o ...Option) error

func (*RemoteRegistryAccessValidator) ValidateReadAccessForImage

func (v *RemoteRegistryAccessValidator) ValidateReadAccessForImage(ctx context.Context, imageRef string, o ...Option) error

func (*RemoteRegistryAccessValidator) ValidateWriteAccessForRepo

func (v *RemoteRegistryAccessValidator) ValidateWriteAccessForRepo(ctx context.Context, repo string, o ...Option) error

Jump to

Keyboard shortcuts

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