client

package
v0.0.0-...-c4a9c40 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MPL-2.0 Imports: 2 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 Client

type Client struct {

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

func (*Client) Logger

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

type Config

type Config struct {
	// here goes top level configuration for your provider
	// This object will be pass filled in depending on user's configuration
	// CHANGEME
	ExampleConfig string `hcl:"example_config"`

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