serverconfig

package
v0.0.0-...-11e78ec Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	// IP we will try to assign to this host.
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	// Router to announce.
	Router string `protobuf:"bytes,2,opt,name=router,proto3" json:"router,omitempty"`
	// Hostname to give to client.
	Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// DNS to announce.
	Dns []string `protobuf:"bytes,4,rep,name=dns,proto3" json:"dns,omitempty"`
	// NTP servers to announce.
	Ntp                  []string `protobuf:"bytes,5,rep,name=ntp,proto3" json:"ntp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClientConfig) Descriptor

func (*ClientConfig) Descriptor() ([]byte, []int)

func (*ClientConfig) GetDns

func (m *ClientConfig) GetDns() []string

func (*ClientConfig) GetHostname

func (m *ClientConfig) GetHostname() string

func (*ClientConfig) GetIp

func (m *ClientConfig) GetIp() string

func (*ClientConfig) GetNtp

func (m *ClientConfig) GetNtp() []string

func (*ClientConfig) GetRouter

func (m *ClientConfig) GetRouter() string

func (*ClientConfig) ProtoMessage

func (*ClientConfig) ProtoMessage()

func (*ClientConfig) Reset

func (m *ClientConfig) Reset()

func (*ClientConfig) String

func (m *ClientConfig) String() string

func (*ClientConfig) XXX_DiscardUnknown

func (m *ClientConfig) XXX_DiscardUnknown()

func (*ClientConfig) XXX_Marshal

func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientConfig) XXX_Merge

func (m *ClientConfig) XXX_Merge(src proto.Message)

func (*ClientConfig) XXX_Size

func (m *ClientConfig) XXX_Size() int

func (*ClientConfig) XXX_Unmarshal

func (m *ClientConfig) XXX_Unmarshal(b []byte) error

type ServerConfig

type ServerConfig struct {
	// IP&cidr we are responsible for.
	Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	// If set, restricts the range we use for dynamic IP assignment; must be within network.
	DynamicRange string `protobuf:"bytes,2,opt,name=dynamic_range,json=dynamicRange,proto3" json:"dynamic_range,omitempty"`
	// Validity of leases.
	LeaseDuration string `protobuf:"bytes,3,opt,name=lease_duration,json=leaseDuration,proto3" json:"lease_duration,omitempty"`
	// Domain name to announce.
	Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"`
	// Router to announce.
	Router string `protobuf:"bytes,5,opt,name=router,proto3" json:"router,omitempty"`
	// List of DNS to announce.
	Dns []string `protobuf:"bytes,6,rep,name=dns,proto3" json:"dns,omitempty"`
	// List of NTP servers to announce.
	Ntp []string `protobuf:"bytes,7,rep,name=ntp,proto3" json:"ntp,omitempty"`
	// Disable dynamic configuration, only hand out IPs to staticly configured hosts.
	StaticOnly bool `protobuf:"varint,8,opt,name=static_only,json=staticOnly,proto3" json:"static_only,omitempty"`
	// Static hwaddr -> config mapping.
	Client               map[string]*ClientConfig `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*ServerConfig) Descriptor

func (*ServerConfig) Descriptor() ([]byte, []int)

func (*ServerConfig) GetClient

func (m *ServerConfig) GetClient() map[string]*ClientConfig

func (*ServerConfig) GetDns

func (m *ServerConfig) GetDns() []string

func (*ServerConfig) GetDomain

func (m *ServerConfig) GetDomain() string

func (*ServerConfig) GetDynamicRange

func (m *ServerConfig) GetDynamicRange() string

func (*ServerConfig) GetLeaseDuration

func (m *ServerConfig) GetLeaseDuration() string

func (*ServerConfig) GetNetwork

func (m *ServerConfig) GetNetwork() string

func (*ServerConfig) GetNtp

func (m *ServerConfig) GetNtp() []string

func (*ServerConfig) GetRouter

func (m *ServerConfig) GetRouter() string

func (*ServerConfig) GetStaticOnly

func (m *ServerConfig) GetStaticOnly() bool

func (*ServerConfig) ProtoMessage

func (*ServerConfig) ProtoMessage()

func (*ServerConfig) Reset

func (m *ServerConfig) Reset()

func (*ServerConfig) String

func (m *ServerConfig) String() string

func (*ServerConfig) XXX_DiscardUnknown

func (m *ServerConfig) XXX_DiscardUnknown()

func (*ServerConfig) XXX_Marshal

func (m *ServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServerConfig) XXX_Merge

func (m *ServerConfig) XXX_Merge(src proto.Message)

func (*ServerConfig) XXX_Size

func (m *ServerConfig) XXX_Size() int

func (*ServerConfig) XXX_Unmarshal

func (m *ServerConfig) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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