Documentation ¶
Index ¶
- Variables
- func DNSUpdateEntry(domain string, hostname string, ip4 net.IP, ip6 net.IP) error
- func HashPassword(pw []byte) (string, error)
- func LoadConfig()
- func NFTUpdateSetsCmd(tableName string, set4name string, ip4 net.IP, set6name string, ip6 net.IP) error
- func SetConfigDefaults()
- type NFTUpdate
- type NFTUpdateSet
- type NFTUpdateTable
- type UnauthorizedError
- type UpdateRequest
- type UserConfig
- type UserConfigNFT
- type UserConfigOther
- type UserConfigRouter
Constants ¶
This section is empty.
Variables ¶
View Source
var C config
Functions ¶
func DNSUpdateEntry ¶
func HashPassword ¶
func LoadConfig ¶
func LoadConfig()
func NFTUpdateSetsCmd ¶
func SetConfigDefaults ¶
func SetConfigDefaults()
Types ¶
type NFTUpdate ¶
type NFTUpdate struct {
Tables map[string]*NFTUpdateTable
}
func NewNFTUpdate ¶
func NewNFTUpdate() *NFTUpdate
func (*NFTUpdate) FindOrAddTable ¶
func (nu *NFTUpdate) FindOrAddTable(TableName string) *NFTUpdateTable
func (*NFTUpdate) PrettyPrint ¶
type NFTUpdateSet ¶
type NFTUpdateTable ¶
type NFTUpdateTable struct { TableName string Sets map[string]*NFTUpdateSet // contains filtered or unexported fields }
func (*NFTUpdateTable) FindOrAddSet ¶
func (nut *NFTUpdateTable) FindOrAddSet(SetName string, IP6 bool) (*NFTUpdateSet, error)
type UnauthorizedError ¶
type UnauthorizedError string
func (UnauthorizedError) Error ¶
func (uae UnauthorizedError) Error() string
type UpdateRequest ¶
type UpdateRequest struct { IPv4 net.IP IPv6 net.IP UserName string Password string `json:"-"` IPv6Net *net.IPNet Config *UserConfig `json:"-"` }
func LoadStateFile ¶
func LoadStateFile(uc *UserConfig) (*UpdateRequest, error)
func (*UpdateRequest) MergeOldStateFile ¶
func (ur *UpdateRequest) MergeOldStateFile()
func (*UpdateRequest) PrettyPrint ¶
func (ur *UpdateRequest) PrettyPrint() string
func (*UpdateRequest) Process ¶
func (ur *UpdateRequest) Process() error
func (*UpdateRequest) SaveStateFile ¶
func (ur *UpdateRequest) SaveStateFile() error
func (*UpdateRequest) String ¶
func (ur *UpdateRequest) String() string
type UserConfig ¶
type UserConfig struct { UserName string PassWord string Domain string Router UserConfigRouter Others []UserConfigOther // contains filtered or unexported fields }
func LoadConfigFile ¶
func LoadConfigFile(configFile string) (*UserConfig, error)
func LoadConfigForUser ¶
func LoadConfigForUser(username string, password string) (*UserConfig, error)
func (*UserConfig) Authenticate ¶
func (uc *UserConfig) Authenticate(pwToCheck string) error
func (*UserConfig) GetStateFileName ¶
func (uc *UserConfig) GetStateFileName() string
func (*UserConfig) PrettyPrint ¶
func (uc *UserConfig) PrettyPrint() string
func (*UserConfig) Validate ¶
func (uc *UserConfig) Validate() error
type UserConfigNFT ¶
func (*UserConfigNFT) ValidateSetNames ¶
func (ucn *UserConfigNFT) ValidateSetNames() error
type UserConfigOther ¶
type UserConfigOther struct { Hostname string V6IID string RegisterV4 bool NFT UserConfigNFT }
func (*UserConfigOther) ConvertIIDToAddress ¶
func (uco *UserConfigOther) ConvertIIDToAddress(localNet *net.IPNet) net.IP
type UserConfigRouter ¶
type UserConfigRouter struct { Hostname string NFT UserConfigNFT }
Click to show internal directories.
Click to hide internal directories.