cloudnet

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MeshNetworkActionRealizeOptions

type MeshNetworkActionRealizeOptions struct {
	ID string `json:"-"`
}

type MeshNetworkCreateOptions

type MeshNetworkCreateOptions struct {
	NAME string
}

type MeshNetworkDeleteOptions

type MeshNetworkDeleteOptions struct {
	ID string `json:"-"`
}

type MeshNetworkGetOptions

type MeshNetworkGetOptions struct {
	ID string `json:"-"`
}

type MeshNetworkListOptions

type MeshNetworkListOptions struct {
	options.BaseListOptions
}

type MeshNetworkUpdateOptions

type MeshNetworkUpdateOptions struct {
	ID   string `json:"-"`
	Name string
}

type RouteCreateOptions

type RouteCreateOptions struct {
	NAME string

	Iface   string `required:"true"`
	Network string
	Gateway string
}

type RouteDeleteOptions

type RouteDeleteOptions struct {
	ID string `json:"-"`
}

type RouteGetOptions

type RouteGetOptions struct {
	ID string `json:"-"`
}

type RouteListOptions

type RouteListOptions struct {
	options.BaseListOptions

	Iface   string
	Network string
	Gateway string
}

type RouteUpdateOptions

type RouteUpdateOptions struct {
	ID   string `json:"-"`
	Name string

	Network string
	Gateway string
}

type RouterActionJoinMeshNetworkOptions

type RouterActionJoinMeshNetworkOptions struct {
	ID string `json:"-"`

	MeshNetwork      string
	AdvertiseSubnets string `help:"cidr concatenated by comma"`
}

type RouterActionLeaveMeshNetworkOptions

type RouterActionLeaveMeshNetworkOptions struct {
	ID string `json:"-"`

	MeshNetwork string
}

type RouterActionRealizeOptions

type RouterActionRealizeOptions struct {
	ID string `json:"-"`
}

type RouterActionRegisterIfnameOptions

type RouterActionRegisterIfnameOptions struct {
	ID string `json:"-"`

	Ifname string
}

type RouterActionUnregisterIfnameOptions

type RouterActionUnregisterIfnameOptions struct {
	ID string `json:"-"`

	Ifname string
}

type RouterCreateOptions

type RouterCreateOptions struct {
	NAME       string
	User       string
	Host       string
	Port       int
	PrivateKey string

	RealizeWgIfaces string `choices:"on|off" default:"on" help:"apply wg ifaces config on realization"`
	RealizeRoutes   string `choices:"on|off" default:"on" help:"apply routes config on realization"`
	RealizeRules    string `choices:"on|off" default:"on" help:"apply firewall rules on realization"`
}

func (*RouterCreateOptions) Params

func (opts *RouterCreateOptions) Params() (jsonutils.JSONObject, error)

type RouterDeleteOptions

type RouterDeleteOptions struct {
	ID string `json:"-"`
}

type RouterGetOptions

type RouterGetOptions struct {
	ID string `json:"-"`
}

type RouterListOptions

type RouterListOptions struct {
	options.BaseListOptions
}

type RouterUpdateOptions

type RouterUpdateOptions struct {
	ID   string `json:"-"`
	Name string

	User       string
	Host       string
	Port       int `json:",omitzero"`
	PrivateKey string

	RealizeWgIfaces string `json:",omitzero" choices:"on|off" help:"apply wg ifaces config on realization"`
	RealizeRoutes   string `json:",omitzero" choices:"on|off" help:"apply routes config on realization"`
	RealizeRules    string `json:",omitzero" choices:"on|off" help:"apply firewall rules on realization"`
}

func (*RouterUpdateOptions) Params

func (opts *RouterUpdateOptions) Params() (jsonutils.JSONObject, error)

type RuleCreateOptions

type RuleCreateOptions struct {
	NAME string

	Router string `required:"true"`

	MatchSrcNet    string
	MatchDestNet   string
	MatchProto     string
	MatchSrcPort   int `json:",omitzero"`
	MatchDestPort  int `json:",omitzero"`
	MatchInIfname  string
	MatchOutIfname string

	Action        string
	ActionOptions string
}

type RuleDeleteOptions

type RuleDeleteOptions struct {
	ID string `json:"-"`
}

type RuleGetOptions

type RuleGetOptions struct {
	ID string `json:"-"`
}

type RuleListOptions

type RuleListOptions struct {
	options.BaseListOptions

	Router string

	MatchSrcNet    string
	MatchDestNet   string
	MatchProto     string
	MatchSrcPort   int `json:",omitzero"`
	MatchDestPort  int `json:",omitzero"`
	MatchInIfname  string
	MatchOutIfname string

	Action        string
	ActionOptions string
}

type RuleUpdateOptions

type RuleUpdateOptions struct {
	ID   string `json:"-"`
	Name string

	MatchSrcNet    string
	MatchDestNet   string
	MatchProto     string
	MatchSrcPort   int `json:",omitzero"`
	MatchDestPort  int `json:",omitzero"`
	MatchInIfname  string
	MatchOutIfname string

	Action        string
	ActionOptions string
}

Jump to

Keyboard shortcuts

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