com.github.estuaryoss.agent.configuration.BeanConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agent Show documentation
Show all versions of agent Show documentation
RestAPI service which runs shell commands via REST API
package com.github.estuaryoss.agent.configuration;
import com.github.estuaryoss.agent.component.About;
import com.github.estuaryoss.agent.model.api.CommandParallel;
import com.github.estuaryoss.agent.service.Fluentd;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class BeanConfig {
@Autowired
private About about;
@Bean
public CommandParallel getCommandParallel() {
return new CommandParallel();
}
@Bean
public Fluentd getFluentdService() {
return new Fluentd(about);
}
@Bean
public GroupedOpenApi publicApi() {
return GroupedOpenApi.builder()
.group("agent")
.packagesToScan("com.github.estuaryoss.agent.api")
.build();
}
}