Help us shape the future of Go! Take the 2026 Go Developer Survey

targetgroup

package
v0.313.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 2,063

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	// Targets is a list of targets identified by a label set. Each target is
	// uniquely identifiable in the group by its address label.
	Targets []model.LabelSet
	// Labels is a set of labels that is common across all targets in the group.
	Labels model.LabelSet

	// Source is an identifier that describes a group of targets.
	Source string
}

Group is a set of targets with a common label set(production , test, staging etc.).

func (Group) MarshalJSON

func (tg Group) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (Group) MarshalYAML

func (tg Group) MarshalYAML() (any, error)

MarshalYAML implements the yaml.Marshaler interface.

func (Group) String

func (tg Group) String() string

func (*Group) UnmarshalJSON

func (tg *Group) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*Group) UnmarshalYAML

func (tg *Group) UnmarshalYAML(unmarshal func(any) error) error

UnmarshalYAML implements the yaml.Unmarshaler interface.

Jump to

Keyboard shortcuts

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