target

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func GetExternalEntityLabelKind(obj runtime.Object) string

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL