Documentation
¶
Index ¶
- func ResolveTargetMapYAML(ctx context.Context, b bus.Bus, data []byte) (map[string]*target.Target, error)
- func ResolveYAML(ctx context.Context, b bus.Bus, data []byte) (*target.Target, error)
- type Target
- func (c *Target) MarshalJSON() ([]byte, error)
- func (c *Target) MarshalYAML() ([]byte, error)
- func (c *Target) ResolveProto(ctx context.Context, b bus.Bus) (*target.Target, error)
- func (c *Target) SetTarget(ctx context.Context, b bus.Bus, pb *target.Target) error
- func (c *Target) UnmarshalJSON(data []byte) error
- func (c *Target) UnmarshalYAML(data []byte) error
- type TargetMap
- func (c *TargetMap) MarshalJSON() ([]byte, error)
- func (c *TargetMap) MarshalYAML() ([]byte, error)
- func (c *TargetMap) ResolveProto(ctx context.Context, b bus.Bus) (map[string]*target.Target, error)
- func (c *TargetMap) SetTargetMap(ctx context.Context, b bus.Bus, pb map[string]*target.Target) error
- func (c *TargetMap) UnmarshalJSON(data []byte) error
- func (c *TargetMap) UnmarshalYAML(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
Target implements the JSON unmarshaling and marshaling logic for a Target. Resolve constructs the controller configs, looking up the types from the bus.
func UnmarshalYAML ¶
UnmarshalYAML unmarshals YAML to a Target.
func (*Target) MarshalJSON ¶
MarshalJSON marshals a target JSON blob.
func (*Target) MarshalYAML ¶
MarshalYAML marshals the container contents to yaml.
func (*Target) ResolveProto ¶
ResolveProto constructs the protobuf representation from the JSON parse data.
func (*Target) UnmarshalJSON ¶
UnmarshalJSON unmarshals a target JSON blob pushing the data into the pending parse buffers.
func (*Target) UnmarshalYAML ¶
UnmarshalYAML unmarshals the yaml to the target container.
type TargetMap ¶
type TargetMap struct {
// contains filtered or unexported fields
}
TargetMap implements the JSON unmarshaling and marshaling logic for a map of targets. Resolve constructs the controller configs, looking up the types.
func UnmarshalTargetMapYAML ¶
UnmarshalYAML unmarshals YAML to a TargetMap.
func (*TargetMap) MarshalJSON ¶
MarshalJSON marshals a target JSON blob.
func (*TargetMap) MarshalYAML ¶
MarshalYAML marshals the container contents to yaml.
func (*TargetMap) ResolveProto ¶
ResolveProto constructs the protobuf representation from the JSON parse data.
func (*TargetMap) SetTargetMap ¶
func (c *TargetMap) SetTargetMap(ctx context.Context, b bus.Bus, pb map[string]*target.Target) error
SetTargetMap sets the target to marshal, resolving the controller config.
func (*TargetMap) UnmarshalJSON ¶
UnmarshalJSON unmarshals a target JSON blob pushing the data into the pending parse buffers.
func (*TargetMap) UnmarshalYAML ¶
UnmarshalYAML unmarshals the yaml to the target container.