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

validation

package
v0.11.17 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 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 SkipTLSVerification

func SkipTLSVerification() Option

func UseAuthProvider

func UseAuthProvider(authProvider authn.Authenticator) Option

func UsePlainHTTP

func UsePlainHTTP() Option

type RegistryReadAccessValidator

type RegistryReadAccessValidator interface {
	ValidateReadAccessForImage(ctx context.Context, imageTag 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) ValidateReadAccessForImage

func (v *RemoteRegistryAccessValidator) ValidateReadAccessForImage(ctx context.Context, imageTag 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