Documentation
¶
Index ¶
- Variables
- func HttpReq(ctx context.Context, method, url string, headers map[string]string) (string, error)
- func ParseInstanceOutput(buff *bytes.Buffer) (map[string]string, error)
- func ParsePdshOutput(buff *bytes.Buffer, direct bool) (map[string]string, error)
- func ReadFile(path string) (string, error)
- type Config
- type Loader
- type NamedLoader
- type Provider
- type Registry
- type SimulationParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAPIError = errors.New("API error")
View Source
var ErrUnsupportedProvider = errors.New("unsupported provider")
Functions ¶
func ParsePdshOutput ¶
Types ¶
type NamedLoader ¶
type NamedLoader = component.NamedLoader[Provider, Config]
type Registry ¶
func NewRegistry ¶
func NewRegistry(namedLoaders ...NamedLoader) Registry
type SimulationParams ¶
type SimulationParams struct {
ModelPath string `mapstructure:"model_path"`
APIError int `mapstructure:"api_error"`
}
func GetSimulationParams ¶
func GetSimulationParams(params map[string]any) (*SimulationParams, error)
Click to show internal directories.
Click to hide internal directories.