Documentation
¶
Index ¶
- func Build(ctx context.Context, containerFiles []string, options entities.BuildOptions) (*entities.BuildReport, error)
- func Diff(ctx context.Context, nameOrID string, options *DiffOptions) ([]archive.Change, error)
- func Exists(ctx context.Context, nameOrID string, options *ExistsOptions) (bool, error)
- func Export(ctx context.Context, nameOrIDs []string, w io.Writer, options *ExportOptions) error
- func GetImage(ctx context.Context, nameOrID string, options *GetOptions) (*entities.ImageInspectReport, error)
- func History(ctx context.Context, nameOrID string, options *HistoryOptions) ([]*handlers.HistoryResponse, error)
- func Import(ctx context.Context, r io.Reader, options *ImportOptions) (*entities.ImageImportReport, error)
- func List(ctx context.Context, options *ListOptions) ([]*entities.ImageSummary, error)
- func Load(ctx context.Context, r io.Reader) (*entities.ImageLoadReport, error)
- func Prune(ctx context.Context, options *PruneOptions) ([]*reports.PruneReport, error)
- func Pull(ctx context.Context, rawImage string, options *PullOptions) ([]string, error)
- func Push(ctx context.Context, source string, destination string, options *PushOptions) error
- func Remove(ctx context.Context, images []string, options *RemoveOptions) (*entities.ImageRemoveReport, []error)
- func Search(ctx context.Context, term string, options *SearchOptions) ([]entities.ImageSearchReport, error)
- func Tag(ctx context.Context, nameOrID, tag, repo string, options *TagOptions) error
- func Tree(ctx context.Context, nameOrID string, options *TreeOptions) (*entities.ImageTreeReport, error)
- func Untag(ctx context.Context, nameOrID, tag, repo string, options *UntagOptions) error
- type BuildOptions
- type DiffOptions
- type ExistsOptions
- type ExportOptions
- func (o *ExportOptions) Changed(fieldName string) bool
- func (o *ExportOptions) GetCompress() bool
- func (o *ExportOptions) GetFormat() string
- func (o *ExportOptions) ToParams() (url.Values, error)
- func (o *ExportOptions) WithCompress(value bool) *ExportOptions
- func (o *ExportOptions) WithFormat(value string) *ExportOptions
- type GetOptions
- type HistoryOptions
- type ImportOptions
- func (o *ImportOptions) Changed(fieldName string) bool
- func (o *ImportOptions) GetChanges() []string
- func (o *ImportOptions) GetMessage() string
- func (o *ImportOptions) GetReference() string
- func (o *ImportOptions) GetURL() string
- func (o *ImportOptions) ToParams() (url.Values, error)
- func (o *ImportOptions) WithChanges(value []string) *ImportOptions
- func (o *ImportOptions) WithMessage(value string) *ImportOptions
- func (o *ImportOptions) WithReference(value string) *ImportOptions
- func (o *ImportOptions) WithURL(value string) *ImportOptions
- type ListOptions
- func (o *ListOptions) Changed(fieldName string) bool
- func (o *ListOptions) GetAll() bool
- func (o *ListOptions) GetFilters() map[string][]string
- func (o *ListOptions) ToParams() (url.Values, error)
- func (o *ListOptions) WithAll(value bool) *ListOptions
- func (o *ListOptions) WithFilters(value map[string][]string) *ListOptions
- type LoadOptions
- type PruneOptions
- func (o *PruneOptions) Changed(fieldName string) bool
- func (o *PruneOptions) GetAll() bool
- func (o *PruneOptions) GetFilters() map[string][]string
- func (o *PruneOptions) ToParams() (url.Values, error)
- func (o *PruneOptions) WithAll(value bool) *PruneOptions
- func (o *PruneOptions) WithFilters(value map[string][]string) *PruneOptions
- type PullOptions
- func (o *PullOptions) Changed(fieldName string) bool
- func (o *PullOptions) GetAllTags() bool
- func (o *PullOptions) GetArch() string
- func (o *PullOptions) GetAuthfile() string
- func (o *PullOptions) GetOS() string
- func (o *PullOptions) GetPassword() string
- func (o *PullOptions) GetQuiet() bool
- func (o *PullOptions) GetSkipTLSVerify() bool
- func (o *PullOptions) GetUsername() string
- func (o *PullOptions) GetVariant() string
- func (o *PullOptions) ToParams() (url.Values, error)
- func (o *PullOptions) WithAllTags(value bool) *PullOptions
- func (o *PullOptions) WithArch(value string) *PullOptions
- func (o *PullOptions) WithAuthfile(value string) *PullOptions
- func (o *PullOptions) WithOS(value string) *PullOptions
- func (o *PullOptions) WithPassword(value string) *PullOptions
- func (o *PullOptions) WithQuiet(value bool) *PullOptions
- func (o *PullOptions) WithSkipTLSVerify(value bool) *PullOptions
- func (o *PullOptions) WithUsername(value string) *PullOptions
- func (o *PullOptions) WithVariant(value string) *PullOptions
- type PushOptions
- func (o *PushOptions) Changed(fieldName string) bool
- func (o *PushOptions) GetAll() bool
- func (o *PushOptions) GetAuthfile() string
- func (o *PushOptions) GetCompress() bool
- func (o *PushOptions) GetFormat() string
- func (o *PushOptions) GetPassword() string
- func (o *PushOptions) GetSkipTLSVerify() bool
- func (o *PushOptions) GetUsername() string
- func (o *PushOptions) ToParams() (url.Values, error)
- func (o *PushOptions) WithAll(value bool) *PushOptions
- func (o *PushOptions) WithAuthfile(value string) *PushOptions
- func (o *PushOptions) WithCompress(value bool) *PushOptions
- func (o *PushOptions) WithFormat(value string) *PushOptions
- func (o *PushOptions) WithPassword(value string) *PushOptions
- func (o *PushOptions) WithSkipTLSVerify(value bool) *PushOptions
- func (o *PushOptions) WithUsername(value string) *PushOptions
- type RemoveOptions
- func (o *RemoveOptions) Changed(fieldName string) bool
- func (o *RemoveOptions) GetAll() bool
- func (o *RemoveOptions) GetForce() bool
- func (o *RemoveOptions) ToParams() (url.Values, error)
- func (o *RemoveOptions) WithAll(value bool) *RemoveOptions
- func (o *RemoveOptions) WithForce(value bool) *RemoveOptions
- type SearchOptions
- func (o *SearchOptions) Changed(fieldName string) bool
- func (o *SearchOptions) GetAuthfile() string
- func (o *SearchOptions) GetFilters() map[string][]string
- func (o *SearchOptions) GetLimit() int
- func (o *SearchOptions) GetListTags() bool
- func (o *SearchOptions) GetNoTrunc() bool
- func (o *SearchOptions) GetSkipTLSVerify() bool
- func (o *SearchOptions) ToParams() (url.Values, error)
- func (o *SearchOptions) WithAuthfile(value string) *SearchOptions
- func (o *SearchOptions) WithFilters(value map[string][]string) *SearchOptions
- func (o *SearchOptions) WithLimit(value int) *SearchOptions
- func (o *SearchOptions) WithListTags(value bool) *SearchOptions
- func (o *SearchOptions) WithNoTrunc(value bool) *SearchOptions
- func (o *SearchOptions) WithSkipTLSVerify(value bool) *SearchOptions
- type TagOptions
- type TreeOptions
- type UntagOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(ctx context.Context, containerFiles []string, options entities.BuildOptions) (*entities.BuildReport, error)
Build creates an image using a containerfile reference
func Exists ¶
Exists a lightweight way to determine if an image exists in local storage. It returns a boolean response.
func Export ¶
Export saves images from local storage as a tarball or image archive. The optional format parameter is used to change the format of the output.
func GetImage ¶
func GetImage(ctx context.Context, nameOrID string, options *GetOptions) (*entities.ImageInspectReport, error)
Get performs an image inspect. To have the on-disk size of the image calculated, you can use the optional size parameter.
func History ¶
func History(ctx context.Context, nameOrID string, options *HistoryOptions) ([]*handlers.HistoryResponse, error)
History returns the parent layers of an image.
func Import ¶
func Import(ctx context.Context, r io.Reader, options *ImportOptions) (*entities.ImageImportReport, error)
Imports adds the given image to the local image store. This can be done by file and the given reader or via the url parameter. Additional metadata can be associated with the image by using the changes and message parameters. The image can also be tagged given a reference. One of url OR r must be provided.
func List ¶
func List(ctx context.Context, options *ListOptions) ([]*entities.ImageSummary, error)
List returns a list of images in local storage. The all boolean and filters parameters are optional ways to alter the image query.
func Prune ¶
func Prune(ctx context.Context, options *PruneOptions) ([]*reports.PruneReport, error)
Prune removes unused images from local storage. The optional filters can be used to further define which images should be pruned.
func Pull ¶
Pull is the binding for libpod's v2 endpoints for pulling images. Note that `rawImage` must be a reference to a registry (i.e., of docker transport or be normalized to one). Other transports are rejected as they do not make sense in a remote context. Progress reported on stderr
func Push ¶
Push is the binding for libpod's v2 endpoints for push images. Note that `source` must be a referring to an image in the remote's container storage. The destination must be a reference to a registry (i.e., of docker transport or be normalized to one). Other transports are rejected as they do not make sense in a remote context.
func Remove ¶
func Remove(ctx context.Context, images []string, options *RemoveOptions) (*entities.ImageRemoveReport, []error)
Remove removes one or more images from the local storage. Use optional force option to remove an image, even if it's used by containers.
func Search ¶
func Search(ctx context.Context, term string, options *SearchOptions) ([]entities.ImageSearchReport, error)
Search is the binding for libpod's v2 endpoints for Search images.
func Tag ¶
func Tag(ctx context.Context, nameOrID, tag, repo string, options *TagOptions) error
Tag adds an additional name to locally-stored image. Both the tag and repo parameters are required.
func Tree ¶
func Tree(ctx context.Context, nameOrID string, options *TreeOptions) (*entities.ImageTreeReport, error)
Tree retrieves a "tree" based representation of the given image
Types ¶
type BuildOptions ¶
type BuildOptions struct {
imagebuildah.BuildOptions
}
BuildOptions are optional options for building images
type ExistsOptions ¶
type ExistsOptions struct { }
ExistsOptions are optional options for checking if an image exists
type ExportOptions ¶
type ExportOptions struct { // Compress the image Compress *bool // Format of the output Format *string }
ExportOptions are optional options for exporting images
func (*ExportOptions) WithCompress ¶
func (o *ExportOptions) WithCompress(value bool) *ExportOptions
WithCompress
func (*ExportOptions) WithFormat ¶
func (o *ExportOptions) WithFormat(value string) *ExportOptions
WithFormat
type GetOptions ¶
type GetOptions struct { // Size computes the amount of storage the image consumes Size *bool }
GetOptions are optional options for inspecting an image
type HistoryOptions ¶
type HistoryOptions struct { }
HistoryOptions are optional options image history
type ImportOptions ¶
type ImportOptions struct { // Changes to be applied to the image Changes *[]string // Message to be applied to the image Message *string // Reference is a tag to be applied to the image Reference *string // Url to option image to import. Cannot be used with the reader URL *string }
ImportOptions are optional options for importing images
func (*ImportOptions) WithChanges ¶
func (o *ImportOptions) WithChanges(value []string) *ImportOptions
WithChanges
func (*ImportOptions) WithMessage ¶
func (o *ImportOptions) WithMessage(value string) *ImportOptions
WithMessage
func (*ImportOptions) WithReference ¶
func (o *ImportOptions) WithReference(value string) *ImportOptions
WithReference
func (*ImportOptions) WithURL ¶
func (o *ImportOptions) WithURL(value string) *ImportOptions
WithURL
type ListOptions ¶
type ListOptions struct { // All lists all image in the image store including dangling images All *bool // filters that can be used to get a more specific list of images Filters map[string][]string }
ListOptions are optional options for listing images
func (*ListOptions) WithFilters ¶
func (o *ListOptions) WithFilters(value map[string][]string) *ListOptions
WithFilters
type LoadOptions ¶
type LoadOptions struct { // Reference is the name of the loaded image Reference *string }
LoadOptions are optional options for loading an image
func (*LoadOptions) WithReference ¶
func (o *LoadOptions) WithReference(value string) *LoadOptions
WithReference
type PruneOptions ¶
type PruneOptions struct { // Prune all images All *bool // Filters to apply when pruning images Filters map[string][]string }
PruneOptions are optional options for pruning images
func (*PruneOptions) GetFilters ¶
func (o *PruneOptions) GetFilters() map[string][]string
GetFilters
func (*PruneOptions) WithFilters ¶
func (o *PruneOptions) WithFilters(value map[string][]string) *PruneOptions
WithFilters
type PullOptions ¶
type PullOptions struct { // AllTags can be specified to pull all tags of an image. Note // that this only works if the image does not include a tag. AllTags *bool // Arch will overwrite the local architecture for image pulls. Arch *string // Authfile is the path to the authentication file. Ignored for remote // calls. Authfile *string // OS will overwrite the local operating system (OS) for image // pulls. OS *string // Password for authenticating against the registry. Password *string // Quiet can be specified to suppress pull progress when pulling. Ignored // for remote calls. Quiet *bool // SkipTLSVerify to skip HTTPS and certificate verification. SkipTLSVerify *bool // Username for authenticating against the registry. Username *string // Variant will overwrite the local variant for image pulls. Variant *string }
PullOptions are optional options for pulling images
func (*PullOptions) GetSkipTLSVerify ¶
func (o *PullOptions) GetSkipTLSVerify() bool
GetSkipTLSVerify
func (*PullOptions) WithAllTags ¶
func (o *PullOptions) WithAllTags(value bool) *PullOptions
WithAllTags
func (*PullOptions) WithAuthfile ¶
func (o *PullOptions) WithAuthfile(value string) *PullOptions
WithAuthfile
func (*PullOptions) WithPassword ¶
func (o *PullOptions) WithPassword(value string) *PullOptions
WithPassword
func (*PullOptions) WithSkipTLSVerify ¶
func (o *PullOptions) WithSkipTLSVerify(value bool) *PullOptions
WithSkipTLSVerify
func (*PullOptions) WithUsername ¶
func (o *PullOptions) WithUsername(value string) *PullOptions
WithUsername
func (*PullOptions) WithVariant ¶
func (o *PullOptions) WithVariant(value string) *PullOptions
WithVariant
type PushOptions ¶
type PushOptions struct { // All indicates whether to push all images related to the image list All *bool // Authfile is the path to the authentication file. Ignored for remote // calls. Authfile *string // Compress tarball image layers when pushing to a directory using the 'dir' transport. Compress *bool // Manifest type of the pushed image Format *string // Password for authenticating against the registry. Password *string // SkipTLSVerify to skip HTTPS and certificate verification. SkipTLSVerify *bool // Username for authenticating against the registry. Username *string }
PushOptions are optional options for importing images
func (*PushOptions) GetSkipTLSVerify ¶
func (o *PushOptions) GetSkipTLSVerify() bool
GetSkipTLSVerify
func (*PushOptions) WithAuthfile ¶
func (o *PushOptions) WithAuthfile(value string) *PushOptions
WithAuthfile
func (*PushOptions) WithCompress ¶
func (o *PushOptions) WithCompress(value bool) *PushOptions
WithCompress
func (*PushOptions) WithFormat ¶ added in v3.1.0
func (o *PushOptions) WithFormat(value string) *PushOptions
WithFormat
func (*PushOptions) WithPassword ¶
func (o *PushOptions) WithPassword(value string) *PushOptions
WithPassword
func (*PushOptions) WithSkipTLSVerify ¶
func (o *PushOptions) WithSkipTLSVerify(value bool) *PushOptions
WithSkipTLSVerify
func (*PushOptions) WithUsername ¶
func (o *PushOptions) WithUsername(value string) *PushOptions
WithUsername
type RemoveOptions ¶
type RemoveOptions struct { // All removes all images All *bool // Forces removes all containers based on the image Force *bool }
RemoveOptions are optional options for image removal
func (*RemoveOptions) WithForce ¶
func (o *RemoveOptions) WithForce(value bool) *RemoveOptions
WithForce
type SearchOptions ¶
type SearchOptions struct { // Authfile is the path to the authentication file. Ignored for remote // calls. Authfile *string // Filters for the search results. Filters map[string][]string // Limit the number of results. Limit *int // NoTrunc will not truncate the output. NoTrunc *bool // SkipTLSVerify to skip HTTPS and certificate verification. SkipTLSVerify *bool // ListTags search the available tags of the repository ListTags *bool }
SearchOptions are optional options for searching images on registries
func (*SearchOptions) GetFilters ¶
func (o *SearchOptions) GetFilters() map[string][]string
GetFilters
func (*SearchOptions) GetSkipTLSVerify ¶
func (o *SearchOptions) GetSkipTLSVerify() bool
GetSkipTLSVerify
func (*SearchOptions) WithAuthfile ¶
func (o *SearchOptions) WithAuthfile(value string) *SearchOptions
WithAuthfile
func (*SearchOptions) WithFilters ¶
func (o *SearchOptions) WithFilters(value map[string][]string) *SearchOptions
WithFilters
func (*SearchOptions) WithLimit ¶
func (o *SearchOptions) WithLimit(value int) *SearchOptions
WithLimit
func (*SearchOptions) WithListTags ¶
func (o *SearchOptions) WithListTags(value bool) *SearchOptions
WithListTags
func (*SearchOptions) WithNoTrunc ¶
func (o *SearchOptions) WithNoTrunc(value bool) *SearchOptions
WithNoTrunc
func (*SearchOptions) WithSkipTLSVerify ¶
func (o *SearchOptions) WithSkipTLSVerify(value bool) *SearchOptions
WithSkipTLSVerify
type TreeOptions ¶
type TreeOptions struct { // WhatRequires ... WhatRequires *bool }
TreeOptions are optional options for a tree-based representation of the image
func (*TreeOptions) WithWhatRequires ¶
func (o *TreeOptions) WithWhatRequires(value bool) *TreeOptions
WithWhatRequires
type UntagOptions ¶
type UntagOptions struct { }
UntagOptions are optional options for untagging images
Source Files
¶
- build.go
- diff.go
- images.go
- pull.go
- rm.go
- types.go
- types_diff_options.go
- types_exists_options.go
- types_export_options.go
- types_get_options.go
- types_history_options.go
- types_import_options.go
- types_list_options.go
- types_load_options.go
- types_prune_options.go
- types_pull_options.go
- types_push_options.go
- types_remove_options.go
- types_search_options.go
- types_tag_options.go
- types_tree_options.go
- types_untag_options.go