cloudqueryclient

package
v0.9.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenConfig added in v0.9.0

func GenConfig(providers []string) (string, error)

func Init added in v0.9.0

func Init(configPath string) error

func RegisterRunSelfProvider added in v0.9.4

func RegisterRunSelfProvider(provider sdk.CQProvider)

This is for provider debug purposes (when --runself is passed)

Types

type Client

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

func New

func New(driver string, dsn string, verbose bool, runSelf 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
		Version 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