manifests

package
v3.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context, name string, options *AddOptions) (string, error)

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

func Create(ctx context.Context, names, images []string, options *CreateOptions) (string, error)

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 Exists added in v3.1.0

func Exists(ctx context.Context, name string, options *ExistsOptions) (bool, error)

Exists returns true if a given maifest list exists

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.

func Remove

func Remove(ctx context.Context, name, digest string, options *RemoveOptions) (string, error)

Remove deletes a manifest entry from a manifest list. Both name and the digest to be removed are mandatory inputs. The ID of the new manifest list is returned as a string.

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

func (*AddOptions) GetAll

func (o *AddOptions) GetAll() bool

GetAll

func (*AddOptions) GetAnnotation

func (o *AddOptions) GetAnnotation() map[string]string

GetAnnotation

func (*AddOptions) GetArch

func (o *AddOptions) GetArch() string

GetArch

func (*AddOptions) GetFeatures

func (o *AddOptions) GetFeatures() []string

GetFeatures

func (*AddOptions) GetImages

func (o *AddOptions) GetImages() []string

GetImages

func (*AddOptions) GetOS

func (o *AddOptions) GetOS() string

GetOS

func (*AddOptions) GetOSVersion

func (o *AddOptions) GetOSVersion() string

GetOSVersion

func (*AddOptions) GetVariant

func (o *AddOptions) GetVariant() string

GetVariant

func (*AddOptions) ToParams

func (o *AddOptions) ToParams() (url.Values, error)

ToParams

func (*AddOptions) WithAll

func (o *AddOptions) WithAll(value bool) *AddOptions

WithAll

func (*AddOptions) WithAnnotation

func (o *AddOptions) WithAnnotation(value map[string]string) *AddOptions

WithAnnotation

func (*AddOptions) WithArch

func (o *AddOptions) WithArch(value string) *AddOptions

WithArch

func (*AddOptions) WithFeatures

func (o *AddOptions) WithFeatures(value []string) *AddOptions

WithFeatures

func (*AddOptions) WithImages

func (o *AddOptions) WithImages(value []string) *AddOptions

WithImages

func (*AddOptions) WithOS

func (o *AddOptions) WithOS(value string) *AddOptions

WithOS

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

func (*CreateOptions) Changed

func (o *CreateOptions) Changed(fieldName string) bool

Changed

func (*CreateOptions) GetAll

func (o *CreateOptions) GetAll() bool

GetAll

func (*CreateOptions) ToParams

func (o *CreateOptions) ToParams() (url.Values, error)

ToParams

func (*CreateOptions) WithAll

func (o *CreateOptions) WithAll(value bool) *CreateOptions

WithAll

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

func (*ExistsOptions) ToParams added in v3.1.0

func (o *ExistsOptions) ToParams() (url.Values, error)

ToParams

type InspectOptions

type InspectOptions struct {
}

InspectOptions are optional options for inspecting manifests

func (*InspectOptions) Changed

func (o *InspectOptions) Changed(fieldName string) bool

Changed

func (*InspectOptions) ToParams

func (o *InspectOptions) ToParams() (url.Values, error)

ToParams

type RemoveOptions

type RemoveOptions struct {
}

RemoveOptions are optional options for removing manifests

func (*RemoveOptions) Changed

func (o *RemoveOptions) Changed(fieldName string) bool

Changed

func (*RemoveOptions) ToParams

func (o *RemoveOptions) ToParams() (url.Values, error)

ToParams

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL