Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentHostsFile ¶
type ConcurrentHostsFile struct {
// contains filtered or unexported fields
}
func NewConcurrentHostsFile ¶
func NewConcurrentHostsFile() *ConcurrentHostsFile
func (*ConcurrentHostsFile) Lock ¶
func (chfptr *ConcurrentHostsFile) Lock()
func (*ConcurrentHostsFile) RemoveHostsEntry ¶
func (chfptr *ConcurrentHostsFile) RemoveHostsEntry(objectId string) bool
func (*ConcurrentHostsFile) SetHostsEntry ¶
func (chfptr *ConcurrentHostsFile) SetHostsEntry(objectId string, he HostsEntry) bool
func (*ConcurrentHostsFile) String ¶
func (chfptr *ConcurrentHostsFile) String() string
func (*ConcurrentHostsFile) Unlock ¶
func (chfptr *ConcurrentHostsFile) Unlock()
type HostsEntry ¶
type HostsEntry struct {
// contains filtered or unexported fields
}
func NewHostsEntry ¶
func NewHostsEntry(ip string, hosts []string) *HostsEntry
func (*HostsEntry) Equals ¶
func (he *HostsEntry) Equals(other *HostsEntry) bool
func (*HostsEntry) String ¶
func (he *HostsEntry) String() string
type HostsFile ¶
type HostsFile struct {
// contains filtered or unexported fields
}
func NewHostsFile ¶
func NewHostsFile() *HostsFile
func (*HostsFile) RemoveHostsEntry ¶
func (*HostsFile) SetHostsEntry ¶
func (hf *HostsFile) SetHostsEntry(objectId string, entry HostsEntry) bool
type IHostsFile ¶
Click to show internal directories.
Click to hide internal directories.