Help us shape the future of Go! Take the 2026 Go Developer Survey

validation

package
v0.29.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrImageUnavailable = errors.New("required image is not present in registry")

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