provider

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Types

type Config

type Config struct {
	// The Pihole URL
	URL string

	// The Pihole admin password
	Password string

	// UserAgent for requests
	UserAgent string
}

Config defines the configuration options for the Pihole client

func (Config) Client

func (c Config) Client(ctx context.Context) (*pihole.Client, error)

Jump to

Keyboard shortcuts

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