Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigProvider ¶
type ConfigProvider interface { // Provide returns the internal version of the source configuration Provide() (*internalapi.NodeConfig, error) }
ConfigProvider is an interface for providing the node configuration.
func BuildConfigProvider ¶
func BuildConfigProvider(rawConfigSourceURL string) (ConfigProvider, error)
BuildConfigProvider returns a ConfigProvider appropriate for the given source URL. The source URL must have a scheme, and the supported schemes are: - `file`. To use configuration from the filesystem: `file:///path/to/file/or/directory`. - `imds`. To use configuration from the instance's user data: `imds://user-data`.
func NewFileConfigProvider ¶
func NewFileConfigProvider(path string) ConfigProvider
func NewUserDataConfigProvider ¶
func NewUserDataConfigProvider() ConfigProvider
Click to show internal directories.
Click to hide internal directories.