mirror of
https://github.com/SigNoz/signoz.git
synced 2026-04-27 06:00:31 +01:00
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
33 lines
697 B
Go
33 lines
697 B
Go
package cloudintegration
|
|
|
|
import (
|
|
"github.com/SigNoz/signoz/pkg/factory"
|
|
)
|
|
|
|
type Config struct {
|
|
// Agent config for cloud integration
|
|
Agent AgentConfig `mapstructure:"agent"`
|
|
}
|
|
|
|
type AgentConfig struct {
|
|
Version string `mapstructure:"version"`
|
|
}
|
|
|
|
func NewConfigFactory() factory.ConfigFactory {
|
|
return factory.NewConfigFactory(factory.MustNewName("cloudintegration"), newConfig)
|
|
}
|
|
|
|
func newConfig() factory.Config {
|
|
return &Config{
|
|
Agent: AgentConfig{
|
|
// we will maintain the latest version of cloud integration agent from here,
|
|
// till we automate it externally or figure out a way to validate it.
|
|
Version: "v0.0.9",
|
|
},
|
|
}
|
|
}
|
|
|
|
func (c Config) Validate() error {
|
|
return nil
|
|
}
|