Documentation ¶
Index ¶
- func Cleanup()
- func GetImage(ctx context.Context, userStr string, options ...Option) (*image.Image, error)
- func GetImageFromSource(ctx context.Context, imgStr string, source image.Source, options ...Option) (*image.Image, error)
- func SetBus(b *eventbus.Bus)
- func SetLogger(logger logger.Logger)
- type Option
- func WithAdditionalMetadata(metadata ...image.AdditionalMetadata) Option
- func WithCredentials(credentials ...image.RegistryCredentials) Option
- func WithInsecureAllowHTTP() Option
- func WithInsecureSkipTLSVerify() Option
- func WithPlatform(platform string) Option
- func WithRegistryOptions(options image.RegistryOptions) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
func Cleanup()
Cleanup deletes all directories created by goscope calls. Deprecated: please use image.Image.Cleanup() over this.
func GetImage ¶
GetImage parses the user provided image string and provides an image object; note: the source where the image should be referenced from is automatically inferred.
Types ¶
type Option ¶
type Option func(*config) error
func WithAdditionalMetadata ¶
func WithAdditionalMetadata(metadata ...image.AdditionalMetadata) Option
func WithCredentials ¶
func WithCredentials(credentials ...image.RegistryCredentials) Option
func WithInsecureAllowHTTP ¶
func WithInsecureAllowHTTP() Option
func WithInsecureSkipTLSVerify ¶
func WithInsecureSkipTLSVerify() Option
func WithPlatform ¶
func WithRegistryOptions ¶
func WithRegistryOptions(options image.RegistryOptions) Option
Click to show internal directories.
Click to hide internal directories.