client

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateConfig

func GenerateConfig(configPath string, providers []string, allowAppend bool, force bool) error

GenerateConfig generates or adds provider configurations templates providers - list of providers to generate configuration for allowAppend - if the configuration file already exists, will append missing providers in an existing configuration force - replace the current configuration with a newly generated configuration based on given providers

Types

type Client

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

func New

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

func (*Client) Initialize

func (c *Client) Initialize(cfg *config.Config) error

func (*Client) Run

func (c *Client) Run(cfg *config.Config) error

func (*Client) RunQuery

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

type PolicyConfig

type PolicyConfig struct {
	Views []struct {
		Name  string
		Query string
	}
	Queries []struct {
		Name   string
		Invert bool
		Query  string
	}
}

type QueryResult

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