prow/plugins/plugins.go
func NewAgent(configAgent *config.Agent, pluginConfigAgent *ConfigAgent, clientAgent *ClientAgent, logger *logrus.Entry) Agent {
	prowConfig := configAgent.Config()
	pluginConfig := pluginConfigAgent.Config()
	return Agent{
		GitHubClient:     clientAgent.GitHubClient,
		KubernetesClient: clientAgent.KubernetesClient,
		ProwJobClient:    clientAgent.ProwJobClient,
		GitClient:        clientAgent.GitClient,
		SlackClient:      clientAgent.SlackClient,
		OwnersClient:     clientAgent.OwnersClient,
		Config:           prowConfig,
		PluginConfig:     pluginConfig,
		Logger:           logger,
	}
}
func NewAgent(configAgent *config.Agent, pluginConfigAgent *ConfigAgent, clientAgent *ClientAgent, logger *logrus.Entry) Agent {
	prowConfig := configAgent.Config()
	pluginConfig := pluginConfigAgent.Config()
	return Agent{
		GitHubClient:     clientAgent.GitHubClient,
		KubernetesClient: clientAgent.KubernetesClient,
		ProwJobClient:    clientAgent.ProwJobClient,
		GitClient:        clientAgent.GitClient,
		SlackClient:      clientAgent.SlackClient,
		OwnersClient:     clientAgent.OwnersClient,
		Config:           prowConfig,
		PluginConfig:     pluginConfig,
		Logger:           logger,
	}
}
func NewAgent ( configAgent * config . Agent , pluginConfigAgent * ConfigAgent , clientAgent * ClientAgent , logger * logrus . Entry ) Agent { prowConfig := configAgent . Config ( ) pluginConfig := pluginConfigAgent . Config ( ) return Agent { GitHubClient : clientAgent . GitHubClient , KubernetesClient : clientAgent . KubernetesClient , ProwJobClient : clientAgent . ProwJobClient , GitClient : clientAgent . GitClient , SlackClient : clientAgent . SlackClient , OwnersClient : clientAgent . OwnersClient , Config : prowConfig , PluginConfig : pluginConfig , Logger : logger , } }
// NewAgent bootstraps a new config.Agent struct from the passed dependencies.
NewAgent bootstraps a new config . Agent struct from the passed dependencies .