alias

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAlias

func NewCmdAlias() *cobra.Command

func NewCmdAliasAdd

func NewCmdAliasAdd() *cobra.Command

func NewCmdAliasDelete

func NewCmdAliasDelete() *cobra.Command

func NewCmdAliasList

func NewCmdAliasList() *cobra.Command

Types

type AliasAddOptions

type AliasAddOptions struct {
	// contains filtered or unexported fields
}

func (*AliasAddOptions) Complete

func (opt *AliasAddOptions) Complete(cmd *cobra.Command, args []string) error

func (*AliasAddOptions) Execute

func (opt *AliasAddOptions) Execute() error

func (*AliasAddOptions) Validate

func (opt *AliasAddOptions) Validate() error

type AliasBlockModel

type AliasBlockModel struct {
	Id      int    `json:"id"             yaml:"id"`
	Name    string `json:"name,omitempty" yaml:"name,omitempty"`
	Comment string `json:"-"              yaml:"-"`
}

type AliasDeleteOptions

type AliasDeleteOptions struct {
	// contains filtered or unexported fields
}

func (*AliasDeleteOptions) Complete

func (opt *AliasDeleteOptions) Complete(cmd *cobra.Command, args []string) error

func (*AliasDeleteOptions) Execute

func (opt *AliasDeleteOptions) Execute() error

func (*AliasDeleteOptions) Validate

func (opt *AliasDeleteOptions) Validate() error

type AliasListOptions

type AliasListOptions struct {
	// contains filtered or unexported fields
}

func (*AliasListOptions) Complete

func (opt *AliasListOptions) Complete(cmd *cobra.Command, args []string) error

func (*AliasListOptions) Execute

func (opt *AliasListOptions) Execute() error

func (*AliasListOptions) Validate

func (opt *AliasListOptions) Validate() error

type AliasModel

type AliasModel struct {
	IP      string          `json:"ip"                yaml:"ip"`
	Aliases []string        `json:"aliases"           yaml:"aliases"`
	Comment string          `json:"comment,omitempty" yaml:"comment,omitempty"`
	Block   AliasBlockModel `json:"block,omitempty"   yaml:"block,omitempty"`
}

func NewAliasesModels

func NewAliasesModels(doc *dom.Document, grouping IPGrouping) []*AliasModel

type IPGrouping

type IPGrouping int
const (
	GrpRaw     IPGrouping = iota
	GrpUngroup IPGrouping = iota
	GrpGroup   IPGrouping = iota
)

Jump to

Keyboard shortcuts

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