Documentation ¶
Index ¶
- func Load(r io.Reader, data *Data) error
- func LoadDataFrom(from string, data *Data) error
- func LoadDir(f fs.FS, root string, data *Data) error
- func LoadFile(f fs.FS, path string, data *Data) error
- func SortByName[T metav1.Object](objs []T)
- func ValidateFabric(ctx context.Context, kube client.Client, fabricCfg *meta.FabricConfig) error
- type Data
- type NativeData
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadDataFrom ¶
TODO report list of files/sources
func SortByName ¶
func ValidateFabric ¶
Types ¶
type Data ¶
type Data struct { SwitchGroup *Store[*wiringapi.SwitchGroup] Switch *Store[*wiringapi.Switch] Server *Store[*wiringapi.Server] Connection *Store[*wiringapi.Connection] SwitchProfile *Store[*wiringapi.SwitchProfile] ServerProfile *Store[*wiringapi.ServerProfile] IPv4Namespaces *Store[*vpcapi.IPv4Namespace] VLANNamespace *Store[*wiringapi.VLANNamespace] External *Store[*vpcapi.External] ExternalAttachment *Store[*vpcapi.ExternalAttachment] Native *NativeData }
type NativeData ¶
func NewNativeData ¶
func NewNativeData() (*NativeData, error)
type Store ¶
func (*Store[T]) LookupLabel ¶
Click to show internal directories.
Click to hide internal directories.