node

package
v0.0.0-...-49dbbd6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Initializer

type Initializer func(c client.Client, s *runtime.Scheme) Node

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)
	GetPersistentVolumeClaims(ctx context.Context, cr *invv1alpha1.Node, nc *invv1alpha1.NodeConfig) ([]*corev1.PersistentVolumeClaim, error)
	SetInitialConfig(ctx context.Context, cr *invv1alpha1.Node, ips []corev1.PodIP) error
	// 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"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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