Documentation ¶
Index ¶
- type HostRecord
- type UpdateEtcHostsTask
- func (_ *UpdateEtcHostsTask) CheckChanges(a, e, changes *UpdateEtcHostsTask) error
- func (e *UpdateEtcHostsTask) Find(c *fi.Context) (*UpdateEtcHostsTask, error)
- func (f *UpdateEtcHostsTask) GetName() *string
- func (_ *UpdateEtcHostsTask) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *UpdateEtcHostsTask) error
- func (_ *UpdateEtcHostsTask) RenderLocal(t *local.LocalTarget, a, e, changes *UpdateEtcHostsTask) error
- func (e *UpdateEtcHostsTask) Run(c *fi.Context) error
- func (e *UpdateEtcHostsTask) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostRecord ¶
type HostRecord struct { fi.NotADependency // Hostname is the "DNS" name that we want to configure. Hostname string // Addresses holds the IP addresses to write. // Other IP addresses for the same Name will be removed. Addresses []string }
HostRecord holds an individual host's addresses.
type UpdateEtcHostsTask ¶
type UpdateEtcHostsTask struct { // Name is a reference for our task Name string // Records holds the records that should be updated Records []HostRecord }
UpdateEtcHostsTask is responsible for updating /etc/hosts to set some DNS records, for gossip.
func (*UpdateEtcHostsTask) CheckChanges ¶
func (_ *UpdateEtcHostsTask) CheckChanges(a, e, changes *UpdateEtcHostsTask) error
func (*UpdateEtcHostsTask) Find ¶
func (e *UpdateEtcHostsTask) Find(c *fi.Context) (*UpdateEtcHostsTask, error)
func (*UpdateEtcHostsTask) GetName ¶
func (f *UpdateEtcHostsTask) GetName() *string
func (*UpdateEtcHostsTask) RenderCloudInit ¶
func (_ *UpdateEtcHostsTask) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *UpdateEtcHostsTask) error
func (*UpdateEtcHostsTask) RenderLocal ¶
func (_ *UpdateEtcHostsTask) RenderLocal(t *local.LocalTarget, a, e, changes *UpdateEtcHostsTask) error
func (*UpdateEtcHostsTask) String ¶
func (e *UpdateEtcHostsTask) String() string
Click to show internal directories.
Click to hide internal directories.