Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageChangeMessage ¶
type ImageChangeMessage struct { CreatedAt time.Time `json:"created_at"` // Namespace namespace to listen to. Namespace string `json:"namespace,omitempty"` // Name name of the deployment to listen to. Name string `json:"name,omitempty"` // ImageSHA256 is the SHA-256 of the container Image ID CurrentImage *ImageDescription `json:"current_image,omitempty"` // ImageSHA256 is the SHA-256 of the container Image ID PreviousImage *ImageDescription `json:"previous_image,omitempty"` }
ImageChangeMessage is the message for informing the clients that a images has changed
func NewImageChangeMessage ¶
func NewImageChangeMessage(namespace string, name string, currentImage *ImageDescription, previousImage *ImageDescription) *ImageChangeMessage
NewImageChangeMessage creates a new change image message
type ImageDescription ¶
type ImageDescription struct { // Image is the name of the image ImageName string `json:"name,omitempty"` // SHA-256 of the Docker image ImageSHA256 string `json:"sha256,omitempty"` }
ImageDescription description a Docker Image
Click to show internal directories.
Click to hide internal directories.