Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CidrParser ¶ added in v0.0.4
type CidrParser interface {
Parse(cmd *ResolveCmd, filepath string, onEachCidr func(cidr *CIDR) error) error
}
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
ResolveCmd represents the command to resolve CIDR conflicts.
type CsvCidrParser ¶ added in v0.0.4
type CsvCidrParser struct {
// contains filtered or unexported fields
}
func (CsvCidrParser) Parse ¶ added in v0.0.4
func (p CsvCidrParser) Parse(cmd *ResolveCmd, filePath string, onEachCidr func(cidr *CIDR) error) error
type JsonParser ¶ added in v0.0.4
type JsonParser struct{}
func (JsonParser) Parse ¶ added in v0.0.4
func (_ JsonParser) Parse(cmd *ResolveCmd, filepath string, onEachCidr func(cidr *CIDR) error) error
type JsonWriter ¶ added in v0.0.4
func (*JsonWriter) IsIpV6 ¶ added in v0.0.4
func (w *JsonWriter) IsIpV6(isIpV6 bool) Writer
type ResolveCmd ¶
type ResolveCmd struct { Files []string `arg:"" type:"existingfile" help:"Input file containing CIDRs in CSV or JSON format"` CidrKey string `help:"Key/Colum of the CIDRs in the file" default:"cidr"` PriorityKeys []string `help:"Keys/Columns to be used as CIDRs priorities" default:""` FillEmptyPriority bool `help:"Replace empty/null priority with zero value" default:"true"` FlipRankPriority bool `help:"Make low value priority mean higher priority" default:"false"` Report bool `help:"Report only conflicted CIDRs"` OutputFormat string `enum:"json,csv,tsv" default:"csv" help:"Output file format" default:"csv"` DropKeys []string `help:"Keys/Columns to be dropped" default:""` SplitIpVersions bool `help:"Split the results in to separate files based on the CIDR IP version" default:"false"` Stats Stats `kong:"-"` }
func (*ResolveCmd) Run ¶
func (cmd *ResolveCmd) Run(ctx *Context) error
Run executes the resolve command.
Click to show internal directories.
Click to hide internal directories.