Documentation ¶
Overview ¶
Package cpe ...
Index ¶
- func AddCpe(token, outputFile, proxy string) (err error)
- type AddCpeConfig
- func (c *AddCpeConfig) AddCpeToFvuls(ctx context.Context, needAddCpes config.DiscoverToml) (config.DiscoverToml, error)
- func (c *AddCpeConfig) AddServerToFvuls(ctx context.Context, needAddServers map[string]config.ServerSetting) (addedServers config.DiscoverToml)
- func (c *AddCpeConfig) LoadAndCheckTomlFile(ctx context.Context) (needAddServers, needAddCpes config.DiscoverToml, err error)
- func (c *AddCpeConfig) WriteDiscoverToml() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddCpeConfig ¶
type AddCpeConfig struct { Token string Proxy string DiscoverTomlPath string OriginalDiscoverToml config.DiscoverToml }
AddCpeConfig ...
func (*AddCpeConfig) AddCpeToFvuls ¶
func (c *AddCpeConfig) AddCpeToFvuls(ctx context.Context, needAddCpes config.DiscoverToml) (config.DiscoverToml, error)
AddCpeToFvuls ...
func (*AddCpeConfig) AddServerToFvuls ¶
func (c *AddCpeConfig) AddServerToFvuls(ctx context.Context, needAddServers map[string]config.ServerSetting) (addedServers config.DiscoverToml)
AddServerToFvuls ...
func (*AddCpeConfig) LoadAndCheckTomlFile ¶
func (c *AddCpeConfig) LoadAndCheckTomlFile(ctx context.Context) (needAddServers, needAddCpes config.DiscoverToml, err error)
LoadAndCheckTomlFile ...
func (*AddCpeConfig) WriteDiscoverToml ¶
func (c *AddCpeConfig) WriteDiscoverToml() error
WriteDiscoverToml ...
Click to show internal directories.
Click to hide internal directories.