tagit

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagIt

type TagIt struct {
	ConsulAddr string
	ServiceID  string
	Script     string
	Interval   time.Duration
	Token      string
	TagPrefix  string
	// contains filtered or unexported fields
}

TagIt is the main struct for the tagit flow.

func New

func New(consulAddr string, serviceID string, script string, interval time.Duration, token string, tagPrefix string) (t *TagIt, err error)

New creates a new TagIt struct.

func (*TagIt) CleanupServiceTags

func (t *TagIt) CleanupServiceTags() error

CleanupServiceTags cleans up the service tags added by tagit.

func (*TagIt) Run

func (t *TagIt) Run()

Run will run the tagit flow and tag consul services based on the script output

Jump to

Keyboard shortcuts

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