dnstasks

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 (*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) Run

func (e *UpdateEtcHostsTask) Run(c *fi.Context) error

func (*UpdateEtcHostsTask) String

func (e *UpdateEtcHostsTask) String() string

Jump to

Keyboard shortcuts

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