Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶ added in v1.1.0
type Container interface { ContainerInfo() *types.ContainerJSON ID() string IsRunning() bool Name() string ImageID() string ImageName() string Enabled() (bool, bool) IsMonitorOnly() bool Scope() (string, bool) Links() []string ToRestart() bool IsWatchtower() bool StopSignal() string HasImageInfo() bool ImageInfo() *types.ImageInspect GetLifecyclePreCheckCommand() string GetLifecyclePostCheckCommand() string GetLifecyclePreUpdateCommand() string GetLifecyclePostUpdateCommand() string }
Container is a docker container running an image
type Filter ¶
type Filter func(FilterableContainer) bool
A Filter is a prototype for a function that can be used to filter the results from a call to the ListContainers() method on the Client.
type FilterableContainer ¶
type FilterableContainer interface { Name() string IsWatchtower() bool Enabled() (bool, bool) Scope() (string, bool) }
A FilterableContainer is the interface which is used to filter containers.
type Notifier ¶
type Notifier interface { StartNotification() SendNotification() Close() }
Notifier is the interface that all notification services have in common
type RegistryCredentials ¶ added in v1.1.0
type RegistryCredentials struct { Username string Password string // usually a token rather than an actual password }
RegistryCredentials is a credential pair used for basic auth
type TokenResponse ¶ added in v1.1.0
type TokenResponse struct {
Token string `json:"token"`
}
TokenResponse is returned by the registry on successful authentication
Click to show internal directories.
Click to hide internal directories.