watchables

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: ISC Imports: 3 Imported by: 0

Documentation

Overview

Package watchables provides functionality for the watchables file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(path string, watchables *Watchables) error

Write writes the provided watchables object to the watchables file.

Types

type Watchable

type Watchable struct {
	Image        string `yaml:"image"`
	Repository   string `yaml:"repository"`
	DeployKey    string `yaml:"deploy_key"`
	CachedDigest string `yaml:"cached_digest"`
}

Watchable contains information of an image to be watched.

type Watchables

type Watchables map[string]Watchable

Watchables is a collection of Watchable objects.

func Read

func Read(path string) (*Watchables, error)

Read returns the contents of the watchables file.

Jump to

Keyboard shortcuts

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