Documentation ¶
Index ¶
- type Any
- type Link
- func (l Link) Context() string
- func (l *Link) Equal(other Link) bool
- func (l *Link) InMap(m map[string]string) bool
- func (l *Link) KVPairs() []string
- func (l Link) Label() string
- func (l *Link) Map() map[string]string
- func (l Link) Valid() bool
- func (l Link) Value() string
- func (l *Link) WithContext(s string) *Link
- func (l *Link) WriteMap(target map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Any ¶
type Any json.RawMessage
Any is the raw configuration for the plugin
func AnyValueMust ¶
func AnyValueMust(v interface{}) *Any
AnyValueMust returns an Any from a value by marshaling / encoding the input. It panics if there's error.
func (*Any) MarshalJSON ¶
MarshalJSON implements the json Marshaler interface
func (*Any) UnmarshalJSON ¶
UnmarshalJSON implements the json Unmarshaler interface
type Link ¶ added in v0.3.0
type Link struct {
// contains filtered or unexported fields
}
Link is a struct that represents an association between an infrakit managed resource and an entity in some other system. The mechanism of linkage is via labels or tags on both sides.
func NewLinkFromMap ¶ added in v0.3.0
NewLinkFromMap constructs a link from data in the map
func (*Link) Equal ¶ added in v0.3.0
Equal returns true if the links are the same - same value and context
func (*Link) KVPairs ¶ added in v0.3.0
KVPairs returns the link representation as a slice of Key=Value pairs
func (*Link) Map ¶ added in v0.3.0
Map returns a representation that is easily converted to JSON or YAML
func (*Link) WithContext ¶ added in v0.3.0
WithContext sets a context for this link