cloudqueryclient

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderMap = map[string]func(*gorm.DB, *zap.Logger) (provider.Interface, error){
	"aws":  aws.NewProvider,
	"gcp":  gcp.NewProvider,
	"okta": okta.NewProvider,
}

Functions

func NewLogger added in v0.3.5

func NewLogger(verbose bool, options ...zap.Option) (*zap.Logger, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(driver string, dsn string, verbose bool) (*Client, error)

func (*Client) Run

func (c *Client) Run(path string) error

func (*Client) RunQuery added in v0.4.1

func (c *Client) RunQuery(path string) error

type Config

type Config struct {
	Providers []struct {
		Name string
		Rest map[string]interface{} `yaml:",inline"`
	}
}

type PolicyConfig added in v0.4.1

type PolicyConfig struct {
	Queries []struct {
		Name  string
		Query string
	}
}

Jump to

Keyboard shortcuts

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