cloudqueryclient

package
v0.8.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderMap = map[string]func(*database.Database, *zap.Logger) (provider.Interface, error){
	"aws":   aws.NewProvider,
	"gcp":   gcp.NewProvider,
	"okta":  okta.NewProvider,
	"azure": azure.NewProvider,
	"k8s":   k8s.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, outputPath 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 {
	Views []struct {
		Name  string
		Query string
	}
	Queries []struct {
		Name   string
		Invert bool
		Query  string
	}
}

type QueryResult added in v0.7.6

type QueryResult struct {
	Name          string
	CheckPassed   bool
	ResultHeaders []string
	ResultRows    [][]string
}

Jump to

Keyboard shortcuts

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