cpe

package
v0.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cpe ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCpe

func AddCpe(token, outputFile, proxy string) (err error)

AddCpe ...

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 ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL