manifests

package
v3.4.7 Latest Latest
Warning

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

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

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

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 manifest 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 returns true if named field has been set

func (*AddOptions) GetAll

func (o *AddOptions) GetAll() bool

GetAll returns value of field All

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) GetOS

func (o *AddOptions) GetOS() string

GetOS returns value of field OS

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

func (*ExistsOptions) ToParams added in v3.1.0

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

ToParams formats struct fields to be passed to API service

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

func (*InspectOptions) ToParams

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

ToParams formats struct fields to be passed to API service

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

func (*RemoveOptions) ToParams

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

ToParams formats struct fields to be passed to API service

Jump to

Keyboard shortcuts

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