Documentation ¶
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) GetAnnotation ¶
func (o *AddOptions) GetAnnotation() map[string]string
GetAnnotation
func (*AddOptions) WithAnnotation ¶
func (o *AddOptions) WithAnnotation(value map[string]string) *AddOptions
WithAnnotation
func (*AddOptions) WithFeatures ¶
func (o *AddOptions) WithFeatures(value []string) *AddOptions
WithFeatures
func (*AddOptions) WithImages ¶
func (o *AddOptions) WithImages(value []string) *AddOptions
WithImages
func (*AddOptions) WithOSVersion ¶
func (o *AddOptions) WithOSVersion(value string) *AddOptions
WithOSVersion
func (*AddOptions) WithVariant ¶
func (o *AddOptions) WithVariant(value string) *AddOptions
WithVariant
type CreateOptions ¶
type CreateOptions struct {
All *bool
}
CreateOptions are optional options for creating manifests
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
type InspectOptions ¶
type InspectOptions struct { }
InspectOptions are optional options for inspecting manifests
type RemoveOptions ¶
type RemoveOptions struct { }
RemoveOptions are optional options for removing manifests