cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

func Check

func Check(cmd *cobra.Command, args []string) (err error)

func New

func New() *cobra.Command

func NewChecker

func NewChecker() *cobra.Command

func NewPull

func NewPull() *cobra.Command

func NewPush

func NewPush() *cobra.Command

func NewServer

func NewServer() *cobra.Command

func PushOrPull

func PushOrPull(cmd *cobra.Command, args []string) error

func Serve

func Serve(cmd *cobra.Command, args []string) error

Types

type Client

type Client struct {
	Name  string
	Peers map[string]*Peer
	Auth  struct {
		PreSharedKey helpers.StringValue
		TLS          helpers.TLS
	}
}

func (*Client) Validate

func (c *Client) Validate() error

type Peer

type Peer struct {
	Address    string
	Authority  string
	PullModels []string              `mapstructure:"pull"`
	PushModels map[string]*PushModel `mapstructure:"push"`
}

type PushModel

type PushModel struct {
	Filters []graph.Filter
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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