scripting

package
v3.22.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZoneTransfer added in v3.22.0

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) 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