Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MaxConcurrentGenerations int64 `envconfig:"MAX_CONCURRENT_NMSTATECTL_GENERATIONS" default:"30"`
}
Config is the configuration for the nmstatectl runner.
type StaticNetworkConfig ¶
type StaticNetworkConfig interface { GenerateStaticNetworkConfigData(ctx context.Context, hostsYAMLS string) ([]StaticNetworkConfigData, error) FormatStaticNetworkConfigForDB(staticNetworkConfig []*models.HostStaticNetworkConfig) (string, error) ValidateStaticConfigParams(ctx context.Context, staticNetworkConfig []*models.HostStaticNetworkConfig) error ValidateNMStateYaml(ctx context.Context, networkYaml string) error }
StaticNetworkConfig is the interface for converting NMState.
func New ¶
func New(log logrus.FieldLogger, cfg Config) StaticNetworkConfig
New returns a new network config generator.
type StaticNetworkConfigData ¶
StaticNetworkConfigData represents a NetworkManager keyfile.
Click to show internal directories.
Click to hide internal directories.