Documentation
¶
Index ¶
Constants ¶
View Source
const ( Ipv4Attr = "AWS_INSTANCE_IPV4" PortAttr = "AWS_INSTANCE_PORT" )
Variables ¶
This section is empty.
Functions ¶
func EndpointIdFromIPAddress ¶
EndpointIdFromIPAddress converts an IP address to human readable identifier.
Types ¶
type Endpoint ¶
Endpoint holds basic values and attributes for an endpoint.
func NewEndpointFromInstance ¶
func NewEndpointFromInstance(inst *types.InstanceSummary) (*Endpoint, error)
NewEndpointFromInstance converts a Cloud Map InstanceSummary to an endpoint.
func (*Endpoint) Equals ¶
Equals evaluates if two Endpoints are "deeply equal" (including all fields).
func (*Endpoint) GetCloudMapAttributes ¶ added in v0.1.1
GetCloudMapAttributes extracts endpoint attributes for Cloud Map service instance registration.
type Namespace ¶ added in v0.1.1
type Namespace struct { Id string Name string Type NamespaceType }
Namespace hold namespace attributes
type NamespaceType ¶ added in v0.1.1
type NamespaceType string
const ( HttpNamespaceType NamespaceType = "HTTP" DnsPrivateNamespaceType NamespaceType = "DNS_PRIVATE" // UnsupportedNamespaceType Placeholder NamespaceType to denote not supported values UnsupportedNamespaceType NamespaceType = "" )
func ConvertNamespaceType ¶ added in v0.1.1
func ConvertNamespaceType(nsType types.NamespaceType) (namespaceType NamespaceType)
func (*NamespaceType) IsUnsupported ¶ added in v0.1.1
func (namespaceType *NamespaceType) IsUnsupported() bool
type Plan ¶
type Plan struct { // List of current instances Current []*Endpoint // List of desired instances Desired []*Endpoint }
func (*Plan) CalculateChanges ¶
CalculateChanges returns list of Changes that need to applied
Click to show internal directories.
Click to hide internal directories.