model

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package model provides entities like Image which are decoupled from third-party libraries like aws-sdk-go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteImagesResult

type DeleteImagesResult struct {
	Deletions []ImageID
	Failures  []ImageFailure
}

type DeleteImagesResult holds the success and failure details of a BatchDeleteImage operation.

type Image

type Image struct {
	Digest   string
	PushedAt time.Time
	Tags     []string
}

type Image provides the attributes of an ECR image required to decide upon and execute deletion.

type ImageFailure

type ImageFailure struct {
	ID     ImageID
	Code   string
	Reason string
}

type ImageFailure represents a failure to perform an operation on an image.

type ImageID

type ImageID struct {
	Digest string
	Tag    string
}

type ImageID represents the identity of an image, either by tag or digest.

type Images

type Images []Image

type Images is a slice of Image capable of providing a sorted copy.

func (Images) CopyNewestFirst

func (images Images) CopyNewestFirst() Images

NewestFirst returns a copy of images sorted most recently pushed first.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL