Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdExecutor ¶ added in v0.0.2
type CmdExecutor struct{}
type CommandExecutor ¶ added in v0.0.2
CommandExecutor is an interface for running commands.
type TagIt ¶
type TagIt struct {
ServiceID string
Script string
Interval time.Duration
TagPrefix string
// contains filtered or unexported fields
}
TagIt is the main struct for the tagit flow.
func New ¶
func New(consulClient consul.Client, commandExecutor CommandExecutor, serviceID string, script string, interval time.Duration, tagPrefix string, logger *slog.Logger) *TagIt
New creates a new TagIt struct.
func (*TagIt) CleanupTags ¶ added in v0.0.2
CleanupTags removes all tags with the given prefix from the service.
Click to show internal directories.
Click to hide internal directories.