Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalTags ¶
UnmarshalTags parses labels and store the result into v.
Types ¶
type Cloud ¶
type Cloud struct {
Provider string `resource:"provider"`
}
Cloud represents the standard cloud attributes.
type Instance ¶
type Instance struct {
ID string `resource:"id"`
}
Instance represents the standard instance attributes.
type Resource ¶
type Resource struct { Service Service `resource:"service"` Host Host `resource:"host"` Cloud Cloud `resource:"cloud"` }
Resource represents a resource constructed with labels.
func (*Resource) CustomIdentifier ¶
CustomIdentifier returns a proper customIdentifier for the host.
func (*Resource) RoleFullname ¶
RoleFullname returns a full qualified role name.
func (*Resource) ServiceName ¶
ServiceName returns a service name.
Click to show internal directories.
Click to hide internal directories.