Documentation ¶
Index ¶
- func PlatformKey(os string, arch string, variant string) string
- type ManifestOptions
- func (o *ManifestOptions) Logger() *log.LogContext
- func (o *ManifestOptions) Platforms() []string
- func (o *ManifestOptions) WantsMetadata() bool
- func (o *ManifestOptions) WantsPlatform(os string, arch string, variant string) bool
- func (o *ManifestOptions) WithLogger(logger *log.LogContext) *ManifestOptions
- func (o *ManifestOptions) WithMetadata(val bool) *ManifestOptions
- func (o *ManifestOptions) WithPlatform(os string, arch string, variant string) *ManifestOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ManifestOptions ¶
type ManifestOptions struct {
// contains filtered or unexported fields
}
ManifestOptions define some options when retrieving image manifests
func NewManifestOptions ¶
func NewManifestOptions() *ManifestOptions
NewManifestOptions returns an initialized ManifestOptions struct
func (*ManifestOptions) Logger ¶
func (o *ManifestOptions) Logger() *log.LogContext
Logger gets the configured log context for given manifest options. If logger is nil, returns a default log context.
func (*ManifestOptions) Platforms ¶
func (o *ManifestOptions) Platforms() []string
func (*ManifestOptions) WantsMetadata ¶
func (o *ManifestOptions) WantsMetadata() bool
WantsMetdata returns true if metadata should be requested
func (*ManifestOptions) WantsPlatform ¶
func (o *ManifestOptions) WantsPlatform(os string, arch string, variant string) bool
WantsPlatform returns true if given platform matches the platform set in options
func (*ManifestOptions) WithLogger ¶
func (o *ManifestOptions) WithLogger(logger *log.LogContext) *ManifestOptions
WithLogger sets the log context to use for the given manifest options.
func (*ManifestOptions) WithMetadata ¶
func (o *ManifestOptions) WithMetadata(val bool) *ManifestOptions
WithMetadata sets metadata to be requested
func (*ManifestOptions) WithPlatform ¶
func (o *ManifestOptions) WithPlatform(os string, arch string, variant string) *ManifestOptions
WithPlatform sets a platform filter for options o
Click to show internal directories.
Click to hide internal directories.