fileprovider

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 47

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() confmap.Provider

New returns a new confmap.Provider that reads the configuration from a file.

This Provider supports "file" scheme, and can be called with a "uri" that follows:

file-uri		= "file:" local-path
local-path		= [ drive-letter ] file-path
drive-letter	= ALPHA ":"

The "file-path" can be relative or absolute, and it can be any OS supported format.

Examples: `file:path/to/file` - relative path (unix, windows) `file:/path/to/file` - absolute path (unix, windows) `file:c:/path/to/file` - absolute path including drive-letter (windows) `file:c:\path\to\file` - absolute path including drive-letter (windows)

Types

This section is empty.

Jump to

Keyboard shortcuts

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