provider

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProjectFilter string   `yaml:"project_filter"`
	ProjectIDs    []string `yaml:"project_ids"`
	Resources     []struct {
		Name  string
		Other map[string]interface{} `yaml:",inline"`
	}
}

type NewResourceFunc

type NewResourceFunc func(db *database.Database, log hclog.Logger,
	projectID string) (resource.ClientInterface, error)

type Provider

type Provider struct {
	Logger hclog.Logger
	// contains filtered or unexported fields
}

func (*Provider) Fetch

func (p *Provider) Fetch(data []byte) error

func (*Provider) GenConfig

func (p *Provider) GenConfig() (string, error)

func (*Provider) Init

func (p *Provider) Init(driver string, dsn string, verbose bool) error

Jump to

Keyboard shortcuts

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