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.
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.
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 ¶
- func CreatePodFromSpec(ctx context.Context, spec *entities.PodSpec) (*entities.PodCreateReport, error)
- func Exists(ctx context.Context, nameOrID string, options *ExistsOptions) (bool, error)
- func Inspect(ctx context.Context, nameOrID string, options *InspectOptions) (*entities.PodInspectReport, error)
- func Kill(ctx context.Context, nameOrID string, options *KillOptions) (*entities.PodKillReport, error)
- func List(ctx context.Context, options *ListOptions) ([]*entities.ListPodsReport, error)
- func Pause(ctx context.Context, nameOrID string, options *PauseOptions) (*entities.PodPauseReport, error)
- func Prune(ctx context.Context, options *PruneOptions) ([]*entities.PodPruneReport, error)
- func Remove(ctx context.Context, nameOrID string, options *RemoveOptions) (*entities.PodRmReport, error)
- func Restart(ctx context.Context, nameOrID string, options *RestartOptions) (*entities.PodRestartReport, error)
- func Start(ctx context.Context, nameOrID string, options *StartOptions) (*entities.PodStartReport, error)
- func Stats(ctx context.Context, namesOrIDs []string, options *StatsOptions) ([]*entities.PodStatsReport, error)
- func Stop(ctx context.Context, nameOrID string, options *StopOptions) (*entities.PodStopReport, error)
- func Top(ctx context.Context, nameOrID string, options *TopOptions) ([]string, error)
- func Unpause(ctx context.Context, nameOrID string, options *UnpauseOptions) (*entities.PodUnpauseReport, error)
- type CreateOptions
- type ExistsOptions
- type InspectOptions
- type KillOptions
- type ListOptions
- type PauseOptions
- type PruneOptions
- type RemoveOptions
- func (o *RemoveOptions) Changed(fieldName string) bool
- func (o *RemoveOptions) GetForce() bool
- func (o *RemoveOptions) GetTimeout() uint
- func (o *RemoveOptions) ToParams() (url.Values, error)
- func (o *RemoveOptions) WithForce(value bool) *RemoveOptions
- func (o *RemoveOptions) WithTimeout(value uint) *RemoveOptions
- type RestartOptions
- type StartOptions
- type StatsOptions
- type StopOptions
- type TopOptions
- type UnpauseOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePodFromSpec ¶
func Inspect ¶
func Inspect(ctx context.Context, nameOrID string, options *InspectOptions) (*entities.PodInspectReport, error)
Inspect returns low-level information about the given pod.
func Kill ¶
func Kill(ctx context.Context, nameOrID string, options *KillOptions) (*entities.PodKillReport, error)
Kill sends a SIGTERM to all the containers in a pod. The optional signal parameter can be used to override SIGTERM.
func List ¶
func List(ctx context.Context, options *ListOptions) ([]*entities.ListPodsReport, error)
List returns all pods in local storage. The optional filters parameter can be used to refine which pods should be listed.
func Pause ¶
func Pause(ctx context.Context, nameOrID string, options *PauseOptions) (*entities.PodPauseReport, error)
Pause pauses all running containers in a given pod.
func Prune ¶
func Prune(ctx context.Context, options *PruneOptions) ([]*entities.PodPruneReport, error)
Prune by default removes all non-running pods in local storage. And with force set true removes all pods.
func Remove ¶
func Remove(ctx context.Context, nameOrID string, options *RemoveOptions) (*entities.PodRmReport, error)
Remove deletes a Pod from from local storage. The optional force parameter denotes that the Pod can be removed even if in a running state.
func Restart ¶
func Restart(ctx context.Context, nameOrID string, options *RestartOptions) (*entities.PodRestartReport, error)
Restart restarts all containers in a pod.
func Start ¶
func Start(ctx context.Context, nameOrID string, options *StartOptions) (*entities.PodStartReport, error)
Start starts all containers in a pod.
func Stats ¶
func Stats(ctx context.Context, namesOrIDs []string, options *StatsOptions) ([]*entities.PodStatsReport, error)
Stats display resource-usage statistics of one or more pods.
func Stop ¶
func Stop(ctx context.Context, nameOrID string, options *StopOptions) (*entities.PodStopReport, error)
Stop stops all containers in a Pod. The optional timeout parameter can be used to override the timeout before the container is killed.
func Top ¶
Top gathers statistics about the running processes in a pod. The nameOrID can be a pod name or a partial/full ID. The descriptors allow for specifying which data to collect from each process.
func Unpause ¶
func Unpause(ctx context.Context, nameOrID string, options *UnpauseOptions) (*entities.PodUnpauseReport, error)
Unpause unpauses all paused containers in a Pod.
Types ¶
type CreateOptions ¶
type CreateOptions struct { }
CreateOptions are optional options for creating pods
func (*CreateOptions) Changed ¶
func (o *CreateOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
type ExistsOptions ¶
type ExistsOptions struct { }
ExistsOptions are optional options for checking if a pod exists
func (*ExistsOptions) Changed ¶
func (o *ExistsOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
type InspectOptions ¶
type InspectOptions struct { }
InspectOptions are optional options for inspecting pods
func (*InspectOptions) Changed ¶
func (o *InspectOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
type KillOptions ¶
type KillOptions struct {
Signal *string
}
KillOptions are optional options for killing pods
func (*KillOptions) Changed ¶
func (o *KillOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
func (*KillOptions) GetSignal ¶
func (o *KillOptions) GetSignal() string
GetSignal returns value of field Signal
func (*KillOptions) ToParams ¶
func (o *KillOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*KillOptions) WithSignal ¶
func (o *KillOptions) WithSignal(value string) *KillOptions
WithSignal set field Signal to given value
type ListOptions ¶
ListOptions are optional options for listing pods
func (*ListOptions) Changed ¶
func (o *ListOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
func (*ListOptions) GetFilters ¶
func (o *ListOptions) GetFilters() map[string][]string
GetFilters returns value of field Filters
func (*ListOptions) ToParams ¶
func (o *ListOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*ListOptions) WithFilters ¶
func (o *ListOptions) WithFilters(value map[string][]string) *ListOptions
WithFilters set field Filters to given value
type PauseOptions ¶
type PauseOptions struct { }
PauseOptions are optional options for pausing pods
func (*PauseOptions) Changed ¶
func (o *PauseOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
type PruneOptions ¶
type PruneOptions struct { }
PruneOptions are optional options for pruning pods
func (*PruneOptions) Changed ¶
func (o *PruneOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
type RemoveOptions ¶
RemoveOptions are optional options for removing pods
func (*RemoveOptions) Changed ¶
func (o *RemoveOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
func (*RemoveOptions) GetForce ¶
func (o *RemoveOptions) GetForce() bool
GetForce returns value of field Force
func (*RemoveOptions) GetTimeout ¶
func (o *RemoveOptions) GetTimeout() uint
GetTimeout returns value of field Timeout
func (*RemoveOptions) ToParams ¶
func (o *RemoveOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*RemoveOptions) WithForce ¶
func (o *RemoveOptions) WithForce(value bool) *RemoveOptions
WithForce set field Force to given value
func (*RemoveOptions) WithTimeout ¶
func (o *RemoveOptions) WithTimeout(value uint) *RemoveOptions
WithTimeout set field Timeout to given value
type RestartOptions ¶
type RestartOptions struct { }
RestartOptions are optional options for restarting pods
func (*RestartOptions) Changed ¶
func (o *RestartOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
type StartOptions ¶
type StartOptions struct { }
StartOptions are optional options for starting pods
func (*StartOptions) Changed ¶
func (o *StartOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
type StatsOptions ¶
type StatsOptions struct {
All *bool
}
StatsOptions are optional options for getting stats of pods
func (*StatsOptions) Changed ¶
func (o *StatsOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
func (*StatsOptions) GetAll ¶
func (o *StatsOptions) GetAll() bool
GetAll returns value of field All
func (*StatsOptions) ToParams ¶
func (o *StatsOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*StatsOptions) WithAll ¶
func (o *StatsOptions) WithAll(value bool) *StatsOptions
WithAll set field All to given value
type StopOptions ¶
type StopOptions struct {
Timeout *int
}
StopOptions are optional options for stopping pods
func (*StopOptions) Changed ¶
func (o *StopOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
func (*StopOptions) GetTimeout ¶
func (o *StopOptions) GetTimeout() int
GetTimeout returns value of field Timeout
func (*StopOptions) ToParams ¶
func (o *StopOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*StopOptions) WithTimeout ¶
func (o *StopOptions) WithTimeout(value int) *StopOptions
WithTimeout set field Timeout to given value
type TopOptions ¶
type TopOptions struct {
Descriptors []string
}
TopOptions are optional options for getting top on pods
func (*TopOptions) Changed ¶
func (o *TopOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
func (*TopOptions) GetDescriptors ¶
func (o *TopOptions) GetDescriptors() []string
GetDescriptors returns value of field Descriptors
func (*TopOptions) ToParams ¶
func (o *TopOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*TopOptions) WithDescriptors ¶
func (o *TopOptions) WithDescriptors(value []string) *TopOptions
WithDescriptors set field Descriptors to given value
type UnpauseOptions ¶
type UnpauseOptions struct { }
UnpauseOptions are optional options for unpausinging pods
func (*UnpauseOptions) Changed ¶
func (o *UnpauseOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
Source Files ¶
- pods.go
- types.go
- types_create_options.go
- types_exists_options.go
- types_inspect_options.go
- types_kill_options.go
- types_list_options.go
- types_pause_options.go
- types_prune_options.go
- types_remove_options.go
- types_restart_options.go
- types_start_options.go
- types_stats_options.go
- types_stop_options.go
- types_top_options.go
- types_unpause_options.go