radius

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Unlicense Imports: 17 Imported by: 0

Documentation

Overview

Package freeradius is a simple Free Radius management package, which allows you to manage Free Radius servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(
	apiUrl, radiusServerSecret, storageDir string,
) error

Run runs the Radius server.

Types

type RPCAction

type RPCAction string
const (
	GetRouters          RPCAction = "App\\Actions\\Radius\\GetRouters"
	GetServices         RPCAction = "App\\Actions\\Radius\\GetServices"
	AuthenticateService RPCAction = "App\\Actions\\Radius\\AuthenticateService"
)

type RadReply

type RadReply struct {
	Attribute string `json:"attribute"`
	Op        string `json:"op"`
	Value     string `json:"value"`
}

type Radius

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

type ReplyValue

type ReplyValue struct {
	Op    string   `json:"op"`
	Value []string `json:"value"`
}

type Router

type Router struct {
	Id                  string      `json:"id"`
	PointOfPresenceId   string      `json:"point_of_presence_id"`
	VendorId            string      `json:"vendor_id"`
	Name                string      `json:"name"`
	Ip                  string      `json:"ip"`
	Model               string      `json:"model"`
	Serial              string      `json:"serial"`
	RadiusIp            string      `json:"radius_ip"`
	RadiusSecret        string      `json:"radius_secret"`
	AuthorizationType   string      `json:"authorization_type"`
	AccountingType      string      `json:"accounting_type"`
	CreatedAt           time.Time   `json:"created_at"`
	UpdatedAt           time.Time   `json:"updated_at"`
	DeletedAt           *time.Time  `json:"deleted_at"`
	ExternalIdentifiers interface{} `json:"external_identifiers"`
}

type Service

type Service struct {
	Id string `json:"id"`

	RadiusTemplateId string `json:"radius_template_id"`
	ServiceId        string `json:"service_id"`

	Username string `json:"username"`
	Password string `json:"password"`

	Radreply []RadReply `json:"radreply"`

	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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