dns

package module
v0.0.0-...-84d5ceb Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: BSD-3-Clause, GPL-2.0, MIT, + 1 more Imports: 9 Imported by: 0

Documentation

Overview

Copyright (c) 2018-2019, AT&T Intellectual Property. All rights reserved. SPDX-License-Identifier: GPL-2.0-only

Copyright (c) 2018-2019, AT&T Intellectual Property. All rights reserved. SPDX-License-Identifier: GPL-2.0-only

Copyright (c) 2018-2019, AT&T Intellectual Property. All rights reserved. SPDX-License-Identifier: GPL-2.0-only

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func ConfigNew

func ConfigNew(opts ...ConfigOpt) *Config

func (*Config) Check

func (c *Config) Check(proposedConfig *ConfigData) error

func (*Config) Get

func (c *Config) Get() *ConfigData

func (*Config) Set

func (c *Config) Set(newConfig *ConfigData) error

type ConfigData

type ConfigData struct {
	Service struct {
		DNS struct {
			Forwarding *forwarding.ConfigData `rfc7951:"forwarding,omitempty"`
			Dynamic    *dynamic.ConfigData    `rfc7951:"dynamic,omitempty"`
		} `rfc7951:"vyatta-service-dns-v1:dns,omitempty"`
	} `rfc7951:"vyatta-services-v1:service,omitempty"`
	Routing struct {
		RoutingInstance []struct {
			Name    string `rfc7951:"instance-name"`
			Service struct {
				DNS struct {
					Forwarding *forwarding.ConfigData `rfc7951:"forwarding,omitempty"`
					Dynamic    *dynamic.ConfigData    `rfc7951:"dynamic,omitempty"`
				} `rfc7951:"vyatta-service-dns-routing-instance-v1:dns,omitempty"`
			} `rfc7951:"service,omitempty"`
		} `rfc7951:"routing-instance,omitempty"`
	} `rfc7951:"vyatta-routing-v1:routing,omitempty"`
}

type ConfigOpt

type ConfigOpt func(*Config)

func Cache

func Cache(filename string) ConfigOpt

func VRFHelpers

func VRFHelpers(sub process.VRFSubscriber, chk process.VRFChecker) ConfigOpt

func WhenDone

func WhenDone(done func()) ConfigOpt

type DNSStateData

type DNSStateData struct {
	Forwarding *forwarding.StateData `rfc7951:"forwarding,omitempty"`
	Dynamic    *dynamic.StateData    `rfc7951:"dynamic,omitempty"`
}

type RPC

type RPC struct {
	// contains filtered or unexported fields
}

func RPCNew

func RPCNew(conf *Config) *RPC

func (*RPC) ResetDnsForwarding

func (r *RPC) ResetDnsForwarding(in struct {
	RoutingInstance string `rfc7951:"vyatta-service-dns-routing-instance-v1:routing-instance"`
}) (struct{}, error)

func (*RPC) ResetDnsForwardingCache

func (r *RPC) ResetDnsForwardingCache(in struct {
	RoutingInstance string `rfc7951:"vyatta-service-dns-routing-instance-v1:routing-instance"`
}) (struct{}, error)

func (*RPC) UpdateDynamicDnsInterface

func (r *RPC) UpdateDynamicDnsInterface(
	in struct {
		Interface string `rfc7951:"vyatta-service-dns-v1:interface"`
	},
) (struct{}, error)

type RoutingInstanceData

type RoutingInstanceData struct {
	Name    string `rfc7951:"instance-name"`
	Service struct {
		DNS struct {
			Forwarding *forwarding.StateData `rfc7951:"forwarding,omitempty"`
			Dynamic    *dynamic.StateData    `rfc7951:"dynamic,omitempty"`
		} `rfc7951:"vyatta-service-dns-routing-instance-v1:dns"`
	} `rfc7951:"service"`
}

type RoutingStateData

type RoutingStateData struct {
	RoutingInstance []RoutingInstanceData `rfc7951:"routing-instance,omitempty"`
}

type State

type State struct {
	// contains filtered or unexported fields
}

func StateNew

func StateNew(config *Config) *State

func (*State) Get

func (s *State) Get() *StateData

type StateData

type StateData struct {
	Service struct {
		DNS *DNSStateData `rfc7951:"vyatta-service-dns-v1:dns,omitempty"`
	} `rfc7951:"vyatta-services-v1:service"`
	Routing *RoutingStateData `rfc7951:"vyatta-routing-v1:routing,omitempty"`
}

Directories

Path Synopsis
cmd
internal
log

Jump to

Keyboard shortcuts

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