Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VxlanPolicyAgent

type VxlanPolicyAgent struct {
	PollInterval                  int    `json:"poll_interval" validate:"nonzero"`
	Datastore                     string `json:"cni_datastore_path" validate:"nonzero"`
	PolicyServerURL               string `json:"policy_server_url" validate:"min=1"`
	VNI                           int    `json:"vni" validate:"nonzero"`
	MetronAddress                 string `json:"metron_address" validate:"nonzero"`
	ServerCACertFile              string `json:"ca_cert_file" validate:"nonzero"`
	ClientCertFile                string `json:"client_cert_file" validate:"nonzero"`
	ClientKeyFile                 string `json:"client_key_file" validate:"nonzero"`
	ClientTimeoutSeconds          int    `json:"client_timeout_seconds" validate:"nonzero"`
	IPTablesLockFile              string `json:"iptables_lock_file" validate:"nonzero"`
	DebugServerHost               string `json:"debug_server_host" validate:"nonzero"`
	DebugServerPort               int    `json:"debug_server_port" validate:"nonzero"`
	LogLevel                      string `json:"log_level"`
	LogPrefix                     string `json:"log_prefix" validate:"nonzero"`
	IPTablesLogging               bool   `json:"iptables_c2c_logging"`
	IPTablesAcceptedUDPLogsPerSec int    `json:"iptables_accepted_udp_logs_per_sec" validate:"min=1"`
}

func New

func New(configFilePath string) (*VxlanPolicyAgent, error)

func (*VxlanPolicyAgent) Validate

func (c *VxlanPolicyAgent) Validate() error

Source Files