client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(logger hclog.Logger, config interface{}) (schema.ClientMeta, error)

Types

type Account

type Account struct {
	Name string `hcl:"name,optional"`
	ID   string `hcl:"ID,optional"`
}

type Client

type Client struct {

	// CHANGEME:  Usually you store here your 3rd party clients and use them in the fetcher
	ThirdPartyClient cloudflare.API
	// contains filtered or unexported fields
}

func (*Client) Logger

func (c *Client) Logger() hclog.Logger

type Config

type Config struct {
	CloudflareToken string    `hcl:"cloudflare_token,optional"`
	Account         []Account `hcl:"account,block"`

	// resources that user asked to fetch
	// each resource can have optional additional configurations
	Resources []struct {
		Name  string
		Other map[string]interface{} `hcl:",inline"`
	}
}

func (Config) Example

func (c Config) Example() string

Jump to

Keyboard shortcuts

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