Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node interface { // deployment GetPodSpec(ctx context.Context, cr *invv1alpha1.Node, nc *invv1alpha1.NodeConfig, nads []*nadv1.NetworkAttachmentDefinition) (*corev1.Pod, error) GetNetworkAttachmentDefinitions(ctx context.Context, cr *invv1alpha1.Node, nc *invv1alpha1.NodeConfig) ([]*nadv1.NetworkAttachmentDefinition, error) SetInitialConfig(ctx context.Context, cr *invv1alpha1.Node, ips []corev1.PodIP) error ToBeDeployed(ctx context.Context) bool // node configuration GetNodeConfig(ctx context.Context, cr *invv1alpha1.Node) (*invv1alpha1.NodeConfig, error) GetNodeModelConfig(ctx context.Context, nc *invv1alpha1.NodeConfig) *corev1.ObjectReference GetNodeModel(ctx context.Context, nc *invv1alpha1.NodeConfig) (*invv1alpha1.NodeModel, error) GetProviderType(ctx context.Context) ProviderType }
Node is an interface that defines the behavior of a node.
type NodeRegistry ¶
type NodeRegistry interface { Register(provider string, i Initializer) NewNodeOfProvider(provider string, c client.Client, s *runtime.Scheme) (Node, error) }
func NewNodeRegistry ¶
func NewNodeRegistry() NodeRegistry
type ProviderType ¶
type ProviderType string
const ( ProviderTypeServer ProviderType = "server" ProviderTypeNetwork ProviderType = "network" )
Click to show internal directories.
Click to hide internal directories.