Help us shape the future of Go! Take the 2026 Go Developer Survey

block

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: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdBlock

func NewCmdBlock() *cobra.Command

func NewCmdBlockAdd

func NewCmdBlockAdd() *cobra.Command

func NewCmdBlockClear

func NewCmdBlockClear() *cobra.Command

func NewCmdBlockDelete

func NewCmdBlockDelete() *cobra.Command

func NewCmdBlockList

func NewCmdBlockList() *cobra.Command

Types

type BlockAddOptions

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

func (*BlockAddOptions) Complete

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

func (*BlockAddOptions) Execute

func (opt *BlockAddOptions) Execute() error

func (*BlockAddOptions) Validate

func (opt *BlockAddOptions) Validate() error

type BlockClearOptions

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

func (*BlockClearOptions) Complete

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

func (*BlockClearOptions) Execute

func (opt *BlockClearOptions) Execute() error

func (*BlockClearOptions) Validate

func (opt *BlockClearOptions) Validate() error

type BlockDeleteOptions

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

func (*BlockDeleteOptions) Complete

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

func (*BlockDeleteOptions) Execute

func (opt *BlockDeleteOptions) Execute() error

func (*BlockDeleteOptions) Validate

func (opt *BlockDeleteOptions) Validate() error

type BlockListOptions

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

func (*BlockListOptions) Complete

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

func (*BlockListOptions) Execute

func (opt *BlockListOptions) Execute() error

func (*BlockListOptions) Validate

func (opt *BlockListOptions) Validate() error

type BlockModel

type BlockModel struct {
	ID                 int    `json:"id"                yaml:"id"`
	Name               string `json:"name"              yaml:"name"`
	Comment            string `json:"comment,omitempty" yaml:"comment,omitempty"`
	AliasesCount       int    `json:"count,omitempty"   yaml:"count,omitempty"`
	SystemAliasesCount int    `json:"-"                  yaml:"-"`
}

func NewBlocksModels

func NewBlocksModels(doc *dom.Document) []*BlockModel

Jump to

Keyboard shortcuts

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