Documentation
¶
Index ¶
- func GetExternalEntityKeyFromSource(source ExternalEntitySource) client.ObjectKey
- func GetExternalEntityLabelKind(obj runtime.Object) string
- func GetExternalNodeKeyFromSource(source ExternalNodeSource) client.ObjectKey
- func NewExternalEntityFrom(source ExternalEntitySource, name, namespace string, cl client.Client) *antreatypes.ExternalEntity
- func NewExternalNodeFrom(source ExternalNodeSource, name, namespace string, cl client.Client) *antreav1alpha1.ExternalNode
- func PatchExternalEntityFrom(source ExternalEntitySource, patch *antreatypes.ExternalEntity, ...) (*antreatypes.ExternalEntity, bool)
- func PatchExternalNodeFrom(source ExternalNodeSource, patch *antreav1alpha1.ExternalNode, ...) (*antreav1alpha1.ExternalNode, bool)
- type ExternalEntitySource
- type ExternalNodeSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExternalEntityKeyFromSource ¶ added in v0.2.0
func GetExternalEntityKeyFromSource(source ExternalEntitySource) client.ObjectKey
func GetExternalEntityLabelKind ¶
GetExternalEntityLabelKind returns value of ExternalEntity kind label.
func GetExternalNodeKeyFromSource ¶ added in v0.2.0
func GetExternalNodeKeyFromSource(source ExternalNodeSource) client.ObjectKey
func NewExternalEntityFrom ¶
func NewExternalEntityFrom( source ExternalEntitySource, name, namespace string, cl client.Client) *antreatypes.ExternalEntity
NewExternalEntityFrom generate a new ExternalEntity from source.
func NewExternalNodeFrom ¶ added in v0.2.0
func NewExternalNodeFrom( source ExternalNodeSource, name, namespace string, cl client.Client) *antreav1alpha1.ExternalNode
NewExternalNodeFrom generate a new ExternalNode from source.
func PatchExternalEntityFrom ¶
func PatchExternalEntityFrom( source ExternalEntitySource, patch *antreatypes.ExternalEntity, cl client.Client) (*antreatypes.ExternalEntity, bool)
PatchExternalEntityFrom generate a patch for existing ExternalEntity from source.
func PatchExternalNodeFrom ¶ added in v0.2.0
func PatchExternalNodeFrom( source ExternalNodeSource, patch *antreav1alpha1.ExternalNode, cl client.Client) (*antreav1alpha1.ExternalNode, bool)
PatchExternalNodeFrom generate a patch for existing ExternalNode from source.
Types ¶
type ExternalEntitySource ¶
type ExternalEntitySource interface { client.Object // GetEndPointAddresses returns IP addresses of ExternalEntitySource. // Passing client in case there are references needs to be retrieved from local cache. GetEndPointAddresses() ([]string, error) // GetEndPointPort returns port and port name, if applicable, of ExternalEntitySource. GetEndPointPort(client client.Client) []antreatypes.NamedPort // GetTags returns tags of ExternalEntitySource. GetTags() map[string]string // GetLabelsFromClient returns labels specific to ExternalEntitySource. GetLabelsFromClient(client client.Client) map[string]string // GetExternalNodeName returns controller associated with VirtualMachine. GetExternalNodeName(client client.Client) string // Copy return a duplicate of current ExternalEntitySource. Copy() (duplicate interface{}) // EmbedType returns the underlying ExternalEntitySource source resource. EmbedType() client.Object }
type ExternalNodeSource ¶ added in v0.2.0
type ExternalNodeSource interface { client.Object // GetEndPointAddresses returns IP addresses of ExternalNodeSource. // Passing client in case there are references needs to be retrieved from local cache. GetEndPointAddresses() ([]string, error) // GetNetworkInterfaces returns list of NetworkInterfaces of ExternalNodeSource. GetNetworkInterfaces() ([]runtimev1alpha1.NetworkInterface, error) // GetTags returns tags of ExternalNodeSource. GetTags() map[string]string // GetLabelsFromClient returns labels specific to ExternalNodeSource. GetLabelsFromClient(client client.Client) map[string]string // Copy return a duplicate of current ExternalNodeSource. Copy() (duplicate interface{}) // EmbedType returns the underlying ExternalNodeSource source resource. EmbedType() client.Object }
Click to show internal directories.
Click to hide internal directories.