message

package
v0.0.0-...-9e4f63c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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