Documentation ¶
Index ¶
- func DiskUsage(ctx context.Context, options *DiskOptions) (*entities.SystemDfReport, error)
- func Events(ctx context.Context, eventChan chan entities.Event, cancelChan chan bool, ...) error
- func Info(ctx context.Context, options *InfoOptions) (*define.Info, error)
- func Prune(ctx context.Context, options *PruneOptions) (*entities.SystemPruneReport, error)
- func Version(ctx context.Context, options *VersionOptions) (*entities.SystemVersionReport, error)
- type DiskOptions
- type EventsOptions
- func (o *EventsOptions) Changed(fieldName string) bool
- func (o *EventsOptions) GetFilters() map[string][]string
- func (o *EventsOptions) GetSince() string
- func (o *EventsOptions) GetStream() bool
- func (o *EventsOptions) GetUntil() string
- func (o *EventsOptions) ToParams() (url.Values, error)
- func (o *EventsOptions) WithFilters(value map[string][]string) *EventsOptions
- func (o *EventsOptions) WithSince(value string) *EventsOptions
- func (o *EventsOptions) WithStream(value bool) *EventsOptions
- func (o *EventsOptions) WithUntil(value string) *EventsOptions
- type InfoOptions
- type PruneOptions
- func (o *PruneOptions) Changed(fieldName string) bool
- func (o *PruneOptions) GetAll() bool
- func (o *PruneOptions) GetFilters() map[string][]string
- func (o *PruneOptions) GetVolumes() bool
- func (o *PruneOptions) ToParams() (url.Values, error)
- func (o *PruneOptions) WithAll(value bool) *PruneOptions
- func (o *PruneOptions) WithFilters(value map[string][]string) *PruneOptions
- func (o *PruneOptions) WithVolumes(value bool) *PruneOptions
- type VersionOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiskUsage ¶
func DiskUsage(ctx context.Context, options *DiskOptions) (*entities.SystemDfReport, error)
DiskUsage returns information about image, container, and volume disk consumption
func Events ¶
func Events(ctx context.Context, eventChan chan entities.Event, cancelChan chan bool, options *EventsOptions) error
Events allows you to monitor libdpod related events like container creation and removal. The events are then passed to the eventChan provided. The optional cancelChan can be used to cancel the read of events and close down the HTTP connection.
func Prune ¶
func Prune(ctx context.Context, options *PruneOptions) (*entities.SystemPruneReport, error)
Prune removes all unused system data.
func Version ¶
func Version(ctx context.Context, options *VersionOptions) (*entities.SystemVersionReport, error)
Types ¶
type DiskOptions ¶
type DiskOptions struct { }
DiskOptions are optional options for getting storage consumption
type EventsOptions ¶
EventsOptions are optional options for monitoring events
func (*EventsOptions) GetFilters ¶
func (o *EventsOptions) GetFilters() map[string][]string
GetFilters
func (*EventsOptions) WithFilters ¶
func (o *EventsOptions) WithFilters(value map[string][]string) *EventsOptions
WithFilters
func (*EventsOptions) WithSince ¶
func (o *EventsOptions) WithSince(value string) *EventsOptions
WithSince
func (*EventsOptions) WithStream ¶
func (o *EventsOptions) WithStream(value bool) *EventsOptions
WithStream
func (*EventsOptions) WithUntil ¶
func (o *EventsOptions) WithUntil(value string) *EventsOptions
WithUntil
type InfoOptions ¶
type InfoOptions struct { }
InfoOptions are optional options for getting info about libpod
type PruneOptions ¶
PruneOptions are optional options for pruning
func (*PruneOptions) GetFilters ¶
func (o *PruneOptions) GetFilters() map[string][]string
GetFilters
func (*PruneOptions) WithFilters ¶
func (o *PruneOptions) WithFilters(value map[string][]string) *PruneOptions
WithFilters
func (*PruneOptions) WithVolumes ¶
func (o *PruneOptions) WithVolumes(value bool) *PruneOptions
WithVolumes
type VersionOptions ¶
type VersionOptions struct { }
VersionOptions are optional options for getting version info