Documentation
¶
Index ¶
- func GetPrivateIPIfAvailable() net.IP
- func MapToProtoStruct(m map[string]interface{}) (*structpb.Struct, error)
- func MustMapToProtoStruct(m map[string]interface{}) *structpb.Struct
- func TlsConfig(certBytes, keyBytes, caBytes []byte) (*tls.Config, error)
- func TlsConfigFromDir(certDir string) (*tls.Config, error)
- func ValueToStructValue(v interface{}) (*structpb.Value, error)
- type NodeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrivateIPIfAvailable ¶
GetPrivateIPIfAvailable returns a private IP core, or unspecified IP (0.0.0.0) if no IP is available
func MustMapToProtoStruct ¶
func ValueToStructValue ¶
Types ¶
type NodeConfig ¶
type NodeConfig struct { NodeID string // Namespace defaults to 'default' Namespace string // Workload defaults to 'test' Workload string // NodeType defaults to 'sidecar'. 'ingress' and 'router' are also supported. NodeType string // IP is currently the primary key used to locate inbound configs. It is sent by client, // must match a known endpoint IP. Tests can use a ServiceEntry to register fake IPs. IP string // Cluster defaults to 'svc.cluster.local' Cluster string // Metadata includes additional metadata for the node Metadata map[string]interface{} }
NodeConfig for the Client connection.
func (*NodeConfig) ID ¶ added in v0.2.0
func (c *NodeConfig) ID() string
func (*NodeConfig) Meta ¶ added in v0.2.0
func (c *NodeConfig) Meta() *structpb.Struct
Click to show internal directories.
Click to hide internal directories.