Documentation
¶
Overview ¶
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Index ¶
- func Add(ctx context.Context, name string, options *AddOptions) (string, error)
- func Create(ctx context.Context, names, images []string, options *CreateOptions) (string, error)
- func Exists(ctx context.Context, name string, options *ExistsOptions) (bool, error)
- func Inspect(ctx context.Context, name string, options *InspectOptions) (*manifest.Schema2List, error)
- func Push(ctx context.Context, name, destination string, options *images.PushOptions) (string, error)
- func Remove(ctx context.Context, name, digest string, options *RemoveOptions) (string, error)
- type AddOptions
- func (o *AddOptions) Changed(fieldName string) bool
- func (o *AddOptions) GetAll() bool
- func (o *AddOptions) GetAnnotation() map[string]string
- func (o *AddOptions) GetArch() string
- func (o *AddOptions) GetFeatures() []string
- func (o *AddOptions) GetImages() []string
- func (o *AddOptions) GetOS() string
- func (o *AddOptions) GetOSVersion() string
- func (o *AddOptions) GetVariant() string
- func (o *AddOptions) ToParams() (url.Values, error)
- func (o *AddOptions) WithAll(value bool) *AddOptions
- func (o *AddOptions) WithAnnotation(value map[string]string) *AddOptions
- func (o *AddOptions) WithArch(value string) *AddOptions
- func (o *AddOptions) WithFeatures(value []string) *AddOptions
- func (o *AddOptions) WithImages(value []string) *AddOptions
- func (o *AddOptions) WithOS(value string) *AddOptions
- func (o *AddOptions) WithOSVersion(value string) *AddOptions
- func (o *AddOptions) WithVariant(value string) *AddOptions
- type CreateOptions
- type ExistsOptions
- type InspectOptions
- type RemoveOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add adds a manifest to a given manifest list. Additional options for the manifest can also be specified. The ID of the new manifest list is returned as a string
func Create ¶
Create creates a manifest for the given name. Optional images to be associated with the new manifest can also be specified. The all boolean specifies to add all entries of a list if the name provided is a manifest list. The ID of the new manifest list is returned as a string.
func Inspect ¶
func Inspect(ctx context.Context, name string, options *InspectOptions) (*manifest.Schema2List, error)
Inspect returns a manifest list for a given name.
func Push ¶
func Push(ctx context.Context, name, destination string, options *images.PushOptions) (string, error)
Push takes a manifest list and pushes to a destination. If the destination is not specified, the name will be used instead. If the optional all boolean is specified, all images specified in the list will be pushed as well.
Types ¶
type AddOptions ¶
type AddOptions struct { All *bool Annotation map[string]string Arch *string Features []string Images []string OS *string OSVersion *string Variant *string }
AddOptions are optional options for adding manifests
func (*AddOptions) Changed ¶
func (o *AddOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
func (*AddOptions) GetAnnotation ¶
func (o *AddOptions) GetAnnotation() map[string]string
GetAnnotation returns value of field Annotation
func (*AddOptions) GetArch ¶
func (o *AddOptions) GetArch() string
GetArch returns value of field Arch
func (*AddOptions) GetFeatures ¶
func (o *AddOptions) GetFeatures() []string
GetFeatures returns value of field Features
func (*AddOptions) GetImages ¶
func (o *AddOptions) GetImages() []string
GetImages returns value of field Images
func (*AddOptions) GetOSVersion ¶
func (o *AddOptions) GetOSVersion() string
GetOSVersion returns value of field OSVersion
func (*AddOptions) GetVariant ¶
func (o *AddOptions) GetVariant() string
GetVariant returns value of field Variant
func (*AddOptions) ToParams ¶
func (o *AddOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*AddOptions) WithAll ¶
func (o *AddOptions) WithAll(value bool) *AddOptions
WithAll set field All to given value
func (*AddOptions) WithAnnotation ¶
func (o *AddOptions) WithAnnotation(value map[string]string) *AddOptions
WithAnnotation set field Annotation to given value
func (*AddOptions) WithArch ¶
func (o *AddOptions) WithArch(value string) *AddOptions
WithArch set field Arch to given value
func (*AddOptions) WithFeatures ¶
func (o *AddOptions) WithFeatures(value []string) *AddOptions
WithFeatures set field Features to given value
func (*AddOptions) WithImages ¶
func (o *AddOptions) WithImages(value []string) *AddOptions
WithImages set field Images to given value
func (*AddOptions) WithOS ¶
func (o *AddOptions) WithOS(value string) *AddOptions
WithOS set field OS to given value
func (*AddOptions) WithOSVersion ¶
func (o *AddOptions) WithOSVersion(value string) *AddOptions
WithOSVersion set field OSVersion to given value
func (*AddOptions) WithVariant ¶
func (o *AddOptions) WithVariant(value string) *AddOptions
WithVariant set field Variant to given value
type CreateOptions ¶
type CreateOptions struct {
All *bool
}
CreateOptions are optional options for creating manifests
func (*CreateOptions) Changed ¶
func (o *CreateOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
func (*CreateOptions) GetAll ¶
func (o *CreateOptions) GetAll() bool
GetAll returns value of field All
func (*CreateOptions) ToParams ¶
func (o *CreateOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*CreateOptions) WithAll ¶
func (o *CreateOptions) WithAll(value bool) *CreateOptions
WithAll set field All to given value
type ExistsOptions ¶ added in v3.1.0
type ExistsOptions struct { }
ExistsOptions are optional options for checking if a manifest list exists
func (*ExistsOptions) Changed ¶ added in v3.1.0
func (o *ExistsOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
type InspectOptions ¶
type InspectOptions struct { }
InspectOptions are optional options for inspecting manifests
func (*InspectOptions) Changed ¶
func (o *InspectOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
type RemoveOptions ¶
type RemoveOptions struct { }
RemoveOptions are optional options for removing manifests
func (*RemoveOptions) Changed ¶
func (o *RemoveOptions) Changed(fieldName string) bool
Changed returns true if named field has been set