scripting

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZoneTransfer

func ZoneTransfer(ctx context.Context, sub, domain, server string) ([]*requests.DNSRequest, error)

ZoneTransfer attempts a DNS zone transfer using the provided server. The returned slice contains all the records discovered from the zone transfer.

Types

type Script

type Script struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

Script is the Service that handles access to the Script data source.

func NewScript

func NewScript(script string, sys systems.System) *Script

NewScript returns the object initialized, but not yet started.

func (*Script) Description

func (s *Script) Description() string

Description implements the Service interface.

func (*Script) HandlesReq

func (s *Script) HandlesReq(req interface{}) bool

HandlesReq implements the Service interface.

func (*Script) OnStart

func (s *Script) OnStart() error

OnStart implements the Service interface.

func (*Script) OnStop

func (s *Script) OnStop() error

OnStop implements the Service interface.

Jump to

Keyboard shortcuts

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