Add Rocket.Chat notifier (#44)

This commit is contained in:
CrazyMax
2020-03-01 17:09:22 +01:00
committed by GitHub
parent 8a49f41fdd
commit 08cd3d90b8
17 changed files with 321 additions and 82 deletions

View File

@@ -1,4 +1,3 @@
// Source: https://github.com/genuinetools/reg/blob/f3a9b00ec86f334702381edf842f03b3a9243a0a/registry/image.go
package registry
import (
@@ -8,6 +7,8 @@ import (
digest "github.com/opencontainers/go-digest"
)
// Source: https://github.com/genuinetools/reg/blob/f3a9b00ec86f334702381edf842f03b3a9243a0a/registry/image.go
// Image holds information about an image.
type Image struct {
Domain string

View File

@@ -7,6 +7,7 @@ import (
"github.com/opencontainers/go-digest"
)
// Manifest is the Docker image manifest information
type Manifest struct {
Name string
Tag string

View File

@@ -5,6 +5,7 @@ import (
"github.com/crazy-max/diun/pkg/utl"
)
// Tags holds information about image tags.
type Tags struct {
List []string
NotIncluded int
@@ -12,6 +13,7 @@ type Tags struct {
Total int
}
// TagsOptions holds docker tags image options
type TagsOptions struct {
Image Image
Max int