Documentation ¶
Index ¶
- Constants
- type Container
- func (c *Container) CleanImageId() string
- func (c *Container) HasRepoDigest(digest digest.Digest) bool
- func (c *Container) IsOutdated() (bool, error)
- func (c *Container) IsRunning() bool
- func (c *Container) IsYacu() bool
- func (c *Container) RepositoryFamiliarized() string
- func (c *Container) ShouldScan(all, stopped bool) bool
- func (c *Container) Start(ctx context.Context, client *client.Client) error
- func (c *Container) Stop(ctx context.Context, client *client.Client) error
- type Containers
- type DependantContainer
- type DependantContainers
- type DependencyType
Constants ¶
View Source
const ( LABEL_ENABLE string = "yacu.enable" LABEL_IMAGE_AGE string = "yacu.image_age" LABEL_STOP_TIMEOUT string = "yacu.stop_timeout" LABEL_DEPENDS_ON string = "com.docker.compose.depends_on" DEPENDENCY_STARTED DependencyType = "service_started" DEPENDENCY_COMPLETED DependencyType = "service_completed_successfully" DEPENDENCY_HEALTHY DependencyType = "service_healthy" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Raw *types.ContainerJSON ID string Name string Labels map[string]string Image *image.ImageData Repository reference.NamedTagged StopTimeout int MinImageAge int }
func (*Container) CleanImageId ¶
func (*Container) HasRepoDigest ¶
func (*Container) IsOutdated ¶
func (*Container) RepositoryFamiliarized ¶
func (*Container) ShouldScan ¶
type Containers ¶
type Containers []*Container
type DependantContainer ¶
type DependantContainer struct { Data *types.Container Name string // Data.Names[0] StopTimeout int DependsOn *types.ContainerJSON DependencyType DependencyType }
func NewDependant ¶
func NewDependant(data *types.Container, stopTimeout int, dependsOn *types.ContainerJSON, dependencyType DependencyType) *DependantContainer
type DependantContainers ¶
type DependantContainers []*DependantContainer
type DependencyType ¶
type DependencyType string
Click to show internal directories.
Click to hide internal directories.